function $1(id){
return document.getElementById(id)}
function JSstats(activity,collegeId,countryId,secId,extraText,profileId,externalKey,searchHeaderId,object,qualcode,reqURL,refURL,suborderitem){
var contextPath='/study'
var url=contextPath+"/jsstats.html?activity="+activity+"&collegeId="+collegeId+"&countryId="+countryId+"&secId="+secId+"&extraText="+extraText+"&profileId="+profileId+"&externalKey="+externalKey+"&searchHeader="+searchHeaderId+"&qualcode="+qualcode+"&reqURL="+reqURL+"&refURL="+refURL+"&suborderitem="+suborderitem
var ajax=new sack()
ajax.requestFile=url
ajax.runAJAX()}
function CallJSstats(logId){
var contextPath='/study'
var url=contextPath+"/caljsstats.html?logId="+logId
var ajax=new sack()
ajax.requestFile=url
ajax.runAJAX()}
var confirmDiv
function addToShortList(sourceId,sourceType,event){
var e=(window.event)?event:event
if(sourceId !=null&&sourceType !=null){
var ajaxObj=new sack()
ajaxObj.requestFile="/study/addshortlist.html?sid="+sourceId+"&action="+sourceType
ajaxObj.onCompletion=function(){updateResponse(ajaxObj,sourceId,sourceType,e)}
ajaxObj.runAJAX()
}}
var t,firstTime=true
function getTopPosition(inputObj){
var returnValue=inputObj.offsetTop
while((inputObj=inputObj.offsetParent)!=null){returnValue+=inputObj.offsetTop;}
return returnValue}
function getLeftPosition(inputObj){
var returnValue=inputObj.offsetLeft
while((inputObj=inputObj.offsetParent)!=null){returnValue+=inputObj.offsetLeft;}
return returnValue}
function getShortList(){
clearTimeout(t)
getBasketCount()
if(ShrotlistCount!=initialShrotlistCount || firstTime){
var element=$1("positionDiv")
var newLeft=getLeftPosition(element)+element.offsetWidth
var newTop=getTopPosition(element)
$1("shrpop").style.position="absolute"
$1("shrpop").innerHTML='<img src="http://images2.content-hca.com/int-cont/img/icons/nloading.gif" />'
var ajaxObj=new sack()
ajaxObj.requestFile="/study/navbasketdata.html"
ajaxObj.onCompletion=function(){showBasket(ajaxObj)}
ajaxObj.runAJAX()
firstTime=false
initialShrotlistCount=ShrotlistCount}
else{
$1("shrpop").style.display="block"
}}
function showBasket(ajaxObj){
var element=$1("positionDiv")
var newLeft=getLeftPosition(element)+element.offsetWidth
var newTop=getTopPosition(element)
$1("shrpop").innerHTML=ajaxObj.response
$1("shrpop").style.display="block"
$1("shrpop").style.position="absolute"}
function stop(){
t=setTimeout('hide()',500)}
function hide(){
$1("shrpop").style.display="none"}
function updateResponse(ajaxObj,sourceId,sourceType,e){
responseText=ajaxObj.response
if(responseText==''){
alert(ajaxObj.response)
}else if(responseText=='DUPLICATE_ITEM_ADDED'){
alert("Your choice is already in your shortlist. Please add a different one.")
}else if(responseText=='MAX_LIMIT_REACHED'){
alert("Your have reached your maximum shortlist limit.")
}else{
var count=responseText.split("-")
$1("shortlistcount").innerHTML="&nbsp;("+count[1]+")"
ShrotlistCount++
showshortlistConfitmmessage(sourceType,sourceId,e)
}}
function showshortlistConfitmmessage(sourceType,sourceId,e){
confirmDiv="shortConfirm"+sourceType
$1(confirmDiv).style.display="block"
var element=$1("Bas"+sourceId)
var newLeft=getLeftPosition(element)+element.offsetWidth
var newTop=getTopPosition(element)
$1(confirmDiv).style.display="block"
$1(confirmDiv).style.position="absolute"
$1(confirmDiv).style.left=newLeft-160+"px"
$1(confirmDiv).style.top=newTop-100+"px"}
function closeShortList(){
if($1(confirmDiv)){
$1(confirmDiv).style.display="none"
}}
function sack(file){
this.xmlhttp=null
this.resetData=function(){
this.method="POST"
this.queryStringSeparator="?"
this.argumentSeparator="&"
this.URLString=""
this.encodeURIString=true
this.execute=false
this.element=null
this.elementObj=null
this.requestFile=file
this.vars=new Object()
this.responseStatus=new Array(2)}
this.resetFunctions=function(){
this.onLoading=function(){}
this.onLoaded=function(){}
this.onInteractive=function(){}
this.onCompletion=function(){}
this.onError=function(){}
this.onFail=function(){}}
this.reset=function(){
this.resetFunctions()
this.resetData()}
this.createAJAX=function(){
try{
this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
}catch(e1){
try{
this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}catch(e2){
this.xmlhttp=null}}
if(! this.xmlhttp){
if(typeof XMLHttpRequest !="undefined"){
this.xmlhttp=new XMLHttpRequest()
}else{
this.failed=true}}}
this.setVar=function(name,value){
this.vars[name]=Array(value,false)}
this.encVar=function(name,value,returnvars){
if(true==returnvars){
return Array(encodeURIComponent(name),encodeURIComponent(value))
}else{
this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}}
this.processURLString=function(string,encode){
encoded=encodeURIComponent(this.argumentSeparator)
regexp=new RegExp(this.argumentSeparator+"|"+encoded)
varArray=string.split(regexp)
for(i=0;i<varArray.length;i++){
urlVars=varArray[i].split("=")
if(true==encode){
this.encVar(urlVars[0],urlVars[1])
}else{
this.setVar(urlVars[0],urlVars[1])}}}
this.createURLString=function(urlstring){
if(this.encodeURIString&&this.URLString.length){
this.processURLString(this.URLString,true)}
if(urlstring){
if(this.URLString.length){
this.URLString+=this.argumentSeparator+urlstring
}else{
this.URLString=urlstring}}
this.setVar("rndval",new Date().getTime())
urlstringtemp=new Array()
for(key in this.vars){
if(false==this.vars[key][1]&&true==this.encodeURIString){
encoded=this.encVar(key,this.vars[key][0],true)
delete this.vars[key]
this.vars[encoded[0]]=Array(encoded[1],true)
key=encoded[0]}
urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}
if(urlstring){
this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)
}else{
this.URLString+=urlstringtemp.join(this.argumentSeparator)}}
this.runResponse=function(){
eval(this.response)}
this.runAJAX=function(urlstring,x){
if(this.failed){
this.onFail()
}else{
if(x!=false)
this.createURLString(urlstring)
if(this.element){
this.elementObj=$1(this.element)}
if(this.xmlhttp){
var self=this
if(this.method=="GET"){
totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString
this.xmlhttp.open(this.method,totalurlstring,true)
}else{
this.xmlhttp.open(this.method,this.requestFile,true)
try{
this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
}catch(e){alert("error");}}
this.xmlhttp.onreadystatechange=function(){
switch(self.xmlhttp.readyState){
case 1:
self.onLoading()
break
case 2:
self.onLoaded()
break
case 3:
self.onInteractive()
break
case 4:
self.response=self.xmlhttp.responseText
self.responseXML=self.xmlhttp.responseXML
self.responseStatus[0]=self.xmlhttp.status
self.responseStatus[1]=self.xmlhttp.statusText
if(self.execute){
self.runResponse()}
if(self.elementObj){
elemNodeName=self.elementObj.nodeName
elemNodeName.toLowerCase()
if(elemNodeName=="input"
|| elemNodeName=="select"
|| elemNodeName=="option"
|| elemNodeName=="textarea"){
self.elementObj.value=self.response
}else{
self.elementObj.innerHTML=self.response}}
if(self.responseStatus[0]=="200"){
self.onCompletion()
}else{
self.onError()}
self.URLString=""
break}}
this.xmlhttp.send(this.URLString)}}}
this.reset()
this.createAJAX()}
function autocompleteOff(element,objectposition){self.focus();var form=$1(element);if(form){form.setAttribute("autocomplete","off");}}
var ajaxBox_offsetX=0
var ajaxBox_offsetY=0
var ajax_list_externalFile='/study/jsp/autocomplete/autoComplete.jsp'
var minimumLettersBeforeLookup=3
var ajax_list_objects=new Array()
var ajax_list_cachedLists=new Array()
var ajax_list_activeInput=false
var ajax_list_activeItem
var ajax_list_optionDivFirstItem=false
var ajax_list_currentLetters=new Array()
var ajax_optionDiv=false
var ajax_optionDiv_iframe=false
var ajax_list_MSIE=false
if(navigator.userAgent.indexOf('MSIE')>=0&&navigator.userAgent.indexOf('Opera')<0)ajax_list_MSIE=true
var currentListIndex=0
function ajax_getTopPos(inputObj){
var returnValue=inputObj.offsetTop
while((inputObj=inputObj.offsetParent)!=null){
returnValue+=inputObj.offsetTop}
return returnValue}
function ajax_list_cancelEvent(){
return false}
function ajax_getLeftPos(inputObj){
var returnValue=inputObj.offsetLeft
while((inputObj=inputObj.offsetParent)!=null)returnValue+=inputObj.offsetLeft
return returnValue}
function ajax_option_setValue(e,inputObj){
if(!inputObj)inputObj=this
var tmpValue=inputObj.innerHTML
if(ajax_list_MSIE)tmpValue=inputObj.innerText;else tmpValue=inputObj.textContent
if(!tmpValue)tmpValue=inputObj.innerHTML
ajax_list_activeInput.value=tmpValue
if($1(ajax_list_activeInput.name+'_hidden'))$1(ajax_list_activeInput.name+'_hidden').value=inputObj.id
ajax_options_hide()
if(inputObj.id.indexOf('$$$$')!=-1){
urlcollegename(inputObj.id,this)
}else{}}
function ajax_options_hide(){
if(ajax_optionDiv)ajax_optionDiv.style.display='none'
if(ajax_optionDiv_iframe)ajax_optionDiv_iframe.style.display='none'}
function ajax_options_rollOverActiveItem(item,fromKeyBoard){
if(ajax_list_activeItem)ajax_list_activeItem.className='optionDiv'
item.className='optionDivSelected'
ajax_list_activeItem=item
if(fromKeyBoard){
if(ajax_list_activeItem.offsetTop>ajax_optionDiv.offsetHeight){
ajax_optionDiv.scrollTop=ajax_list_activeItem.offsetTop-ajax_optionDiv.offsetHeight+ajax_list_activeItem.offsetHeight+2}
if(ajax_list_activeItem.offsetTop<ajax_optionDiv.scrollTop){
ajax_optionDiv.scrollTop=0}}}
function ajax_option_list_buildList(letters,paramToExternalFile){
ajax_optionDiv.innerHTML=''
ajax_list_activeItem=false
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length<=1){
ajax_options_hide()
return}
ajax_list_optionDivFirstItem=false
var optionsAdded=false
for(var no=0;no<ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length;no++){
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()][no].length==0)continue
optionsAdded=true
var div=document.createElement('DIV')
var items=ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()][no].split(/###/gi)
if(ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()].length==1&&ajax_list_activeInput.value==items[0]){
ajax_options_hide()
return}
div.innerHTML=items[items.length-1]
div.id=items[0]
div.className='optionDiv'
div.onmouseover=function(){ajax_options_rollOverActiveItem(this,false)}
div.onclick=ajax_option_setValue
if(!ajax_list_optionDivFirstItem)ajax_list_optionDivFirstItem=div
ajax_optionDiv.appendChild(div)}
if(optionsAdded){
ajax_optionDiv.style.display='block'
if(ajax_optionDiv_iframe)ajax_optionDiv_iframe.style.display=''
ajax_options_rollOverActiveItem(ajax_list_optionDivFirstItem,true)}}
function ajax_option_list_showContent(ajaxIndex,inputObj,paramToExternalFile,whichIndex){
if(whichIndex!=currentListIndex)return
var letters=inputObj.value
var content=ajax_list_objects[ajaxIndex].response
var elements=content.split('|')
ajax_list_cachedLists[paramToExternalFile][letters.toLowerCase()]=elements
ajax_option_list_buildList(letters,paramToExternalFile)}
function ajax_option_resize(inputObj){
ajax_optionDiv.style.top=(ajax_getTopPos(inputObj)+inputObj.offsetHeight+ajaxBox_offsetY)+'px'
ajax_optionDiv.style.left=(ajax_getLeftPos(inputObj)+ajaxBox_offsetX)+'px'
if(ajax_optionDiv_iframe){
ajax_optionDiv_iframe.style.left=ajax_optionDiv.style.left
ajax_optionDiv_iframe.style.top=ajax_optionDiv.style.top}}
function ajax_showOptions(inputObj,paramToExternalFile,e,extraParamList,from){
if(e.keyCode==13 || e.keyCode==9)return
if(ajax_list_currentLetters[inputObj.name]==inputObj.value)return
ajax_list_cachedLists[paramToExternalFile]=new Array()
ajax_list_currentLetters[inputObj.name]=inputObj.value
if(!ajax_optionDiv){
ajax_optionDiv=document.createElement('DIV')
ajax_optionDiv.id='ajax_listOfOptions'
ajax_optionDiv.className='autocomplete'
ajax_optionDiv.style.width=inputObj.offsetWidth+"px"
document.body.appendChild(ajax_optionDiv)
if(ajax_list_MSIE){
ajax_optionDiv_iframe=document.createElement('IFRAME')
ajax_optionDiv_iframe.border='0'
ajax_optionDiv_iframe.style.width=ajax_optionDiv.clientWidth+'px'
ajax_optionDiv_iframe.style.height=ajax_optionDiv.clientHeight+'px'
ajax_optionDiv_iframe.id='ajax_listOfOptions_iframe'
ajax_optionDiv_iframe.style.width=inputObj.offsetWidth+"px"
document.body.appendChild(ajax_optionDiv_iframe)}
var allInputs=document.getElementsByTagName('INPUT')
for(var no=0;no<allInputs.length;no++){
if(!allInputs[no].onkeyup)allInputs[no].onfocus=ajax_options_hide}
var allSelects=document.getElementsByTagName('SELECT')
for(var no=0;no<allSelects.length;no++){
allSelects[no].onfocus=ajax_options_hide}
var oldonkeydown=document.body.onkeydown
if(typeof oldonkeydown!='function'){
document.body.onkeydown=ajax_option_keyNavigation
}else{
document.body.onkeydown=function(){
oldonkeydown()
ajax_option_keyNavigation();}}
var oldonresize=document.body.onresize
if(typeof oldonresize!='function'){
document.body.onresize=function(){ajax_option_resize(inputObj);}
}else{
document.body.onresize=function(){oldonresize()
ajax_option_resize(inputObj);}}}
else{
ajax_optionDiv.style.width=inputObj.offsetWidth+"px"
if(ajax_list_MSIE){
ajax_optionDiv_iframe.style.width=inputObj.offsetWidth+"px"}}
if(inputObj.value.length<minimumLettersBeforeLookup){
ajax_options_hide()
return}
ajax_optionDiv.style.top=(ajax_getTopPos(inputObj)+inputObj.offsetHeight+ajaxBox_offsetY)+'px'
ajax_optionDiv.style.left=(ajax_getLeftPos(inputObj)+ajaxBox_offsetX)+'px'
if(ajax_optionDiv_iframe){
ajax_optionDiv_iframe.style.left=ajax_optionDiv.style.left
ajax_optionDiv_iframe.style.top=ajax_optionDiv.style.top}
ajax_list_activeInput=inputObj
ajax_optionDiv.onselectstart=ajax_list_cancelEvent
currentListIndex++
if(ajax_list_cachedLists[paramToExternalFile][inputObj.value.toLowerCase()]){
ajax_option_list_buildList(inputObj.value,paramToExternalFile,currentListIndex)
}else{
var tmpIndex=currentListIndex/1
ajax_optionDiv.innerHTML=''
var ajaxIndex=ajax_list_objects.length
ajax_list_objects[ajaxIndex]=new sack()
if(extraParamList!="null"){
var divList=extraParamList.split(",")
for(i=0;i<divList.length;i++){
var values=divList[i].split(":")
extraParameter+=values[0]+"="+$1(values[1]).value+"&"}}
var extraParameter=""
var cid=""
if(inputObj.id=='collegeName'){
cid=$1('cName').value
}else if(inputObj.id=='college'){
if($1('unicountryStyleId')!=null){
cid=$1('unicountryStyleId').value
}else{
cid=$1('countrySeId').value}}
else if(inputObj.id=='courseTitle'){
cid=$1('countryHidden').value}
if(from !=null&&from=='category'){
var url=ajax_list_externalFile+'?'+paramToExternalFile+'=1&catname='+escape(encodeURIComponent(inputObj.value))+'&lang='+minimumLettersBeforeLookup+'&from='+from
}else{
var url=ajax_list_externalFile+'?'+paramToExternalFile+'=1&letters='+inputObj.value.replace(" ","+")+'&'+extraParameter+'&from='+from+'&id='+cid}
ajax_list_objects[ajaxIndex].requestFile=url
ajax_list_objects[ajaxIndex].onCompletion=function(){ajax_option_list_showContent(ajaxIndex,inputObj,paramToExternalFile,tmpIndex);}
ajax_list_objects[ajaxIndex].runAJAX()}}
function ajax_option_keyNavigation(e){
if(document.all)e=event
if(!ajax_optionDiv)return
if(ajax_optionDiv.style.display=='none')return
if(e.keyCode==38){
if(!ajax_list_activeItem)return
if(ajax_list_activeItem&&!ajax_list_activeItem.previousSibling)return
ajax_options_rollOverActiveItem(ajax_list_activeItem.previousSibling,true)}
if(e.keyCode==40){
if(!ajax_list_activeItem){
ajax_options_rollOverActiveItem(ajax_list_optionDivFirstItem,true)
}else{
if(!ajax_list_activeItem.nextSibling)return
ajax_options_rollOverActiveItem(ajax_list_activeItem.nextSibling,true)}}
if(e.keyCode==13 || e.keyCode==9){
if(ajax_list_activeItem&&ajax_list_activeItem.className=='optionDivSelected')ajax_option_setValue(false,ajax_list_activeItem)
if(e.keyCode==13)return false;else return true}
if(e.keyCode==27){
ajax_options_hide()}}
document.documentElement.onclick=autoHideList
function autoHideList(e){
if(document.all)e=event
if(e.target)source=e.target
else if(e.srcElement)source=e.srcElement
if(source.nodeType==3)
source=source.parentNode
if(source.tagName.toLowerCase()!='input'&&source.tagName.toLowerCase()!='textarea')ajax_options_hide()}
function show_town_dropdown(inputObj,paramToExternalFile,e,divid,from){
if(e.keyCode==13 || e.keyCode==9)return
ajax_list_currentLetters[inputObj.name]=inputObj.value
if(from !=null&&from=='agent'){
var url=ajax_list_externalFile+'?'+paramToExternalFile+'=1&from='+from+'&letters='+inputObj.value}
var ajaxIndex=ajax_list_objects.length
ajax_list_objects[ajaxIndex]=new sack()
currentListIndex++
var tmpIndex=currentListIndex/1
ajax_list_objects[ajaxIndex].requestFile=url
ajax_list_objects[ajaxIndex].onCompletion=function(){ajax_option_list_Content(ajaxIndex,inputObj,divid,tmpIndex);}
ajax_list_objects[ajaxIndex].runAJAX()}
function ajax_option_list_Content(ajaxIndex,inputObj,divid,whichIndex){
if(whichIndex!=currentListIndex)return
var content=ajax_list_objects[ajaxIndex].response
var elements=content.split('|')
var count=1
if(elements.length>0){
for(var i=0;i<elements.length-1;i++){
document.getElementById(divid).options[count]=new Option(elements[i],elements[i].toLowerCase())
count++
}}}
function show_town_fromscript(countryid,paramToExternalFile,divid,from){
ajax_list_currentLetters['countryid']=countryid
if(from !=null&&from=='agent'){
var url=ajax_list_externalFile+'?'+paramToExternalFile+'=1&from='+from+'&letters='+countryid}
var ajaxIndex=ajax_list_objects.length
ajax_list_objects[ajaxIndex]=new sack()
currentListIndex++
var tmpIndex=currentListIndex/1
ajax_list_objects[ajaxIndex].requestFile=url
ajax_list_objects[ajaxIndex].onCompletion=function(){ajax_option_list_Content(ajaxIndex,'',divid,tmpIndex);}
ajax_list_objects[ajaxIndex].runAJAX()}
function selectDropdownValue(dropid,index){
for(var lpcnt=0;lpcnt<$1(dropid).options.length;lpcnt++){
if($1(dropid).options[lpcnt].value==index){
$1(dropid).selectedIndex=lpcnt
break}}}
function trimString(str){str=this !=window? this : str;return str.replace(/^\s+/g,'').replace(/\s+$/g,'');}
function loadcategory(studylevel,paramToExternalFile,e,divid,from,cid,subjprof,courseid,suborderitemid){
var url=ajax_list_externalFile+'?'+paramToExternalFile+'=1&from='+from+'&studylvl='+studylevel+'&cid='+cid+'&subjprof='+subjprof+'&courseid='+courseid+'&suborderitem='+suborderitemid
var ajaxIndex=ajax_list_objects.length
ajax_list_objects[ajaxIndex]=new sack()
currentListIndex++
var tmpIndex=currentListIndex/1
ajax_list_objects[ajaxIndex].requestFile=url
ajax_list_objects[ajaxIndex].onCompletion=function(){ajax_subject_list_Content(ajaxIndex,'',divid,tmpIndex);}
ajax_list_objects[ajaxIndex].runAJAX()}
function ajax_subject_list_Content(ajaxIndex,inputObj,divid,whichIndex){
if(whichIndex!=currentListIndex)return
var content=ajax_list_objects[ajaxIndex].response
var elements=content.split('|')
var count=1
if(elements.length>0){
$1("enquirySubjectId").disabled=false
for(var i=0;i<elements.length-1;i=i+2){
document.getElementById(divid).options[count]=new Option(trimString(elements[i+1]),trimString(elements[i]))
if(elements.length==3){
document.getElementById(divid).options[1].selected=true}
count++}}}
function urlcollegename(id,obj){
var cnameid=id.split('$$$$')
var countryId=$1('unicountryStyleId').value
var contryname=cpeCountryname(obj,countryId)
if(contryname=='usa'){
contryname='us-usa'}
var url='/study/'+contryname+'/school-college-university/'+cnameid[1]+'/'+cnameid[0]+'/international.html'
location.href=url}
function setfunct(obj,sb2,cid,defaultText,catname){
var curcid=cid;
if($1('sflflag')!=null){
if(cid=='sfl'){
$1('sflflag').className='sfl';
$1('sb_1').style.display="none";
}else{ 
if(cid>0){
$1('sflflag').className='sfl-'+cid;
}
if($1('country-'+cid)!=null){
$1('sflflag').innerHTML=$1('country-'+cid).innerHTML;
if(catname!=null && catname!=undefined){
 $1('catnamecid').innerHTML=$1(catname+'-'+cid).innerHTML;
}

}

if(catname!=null){}else{
 $1('catnamecid').innerHTML=defaultText;
 }
 if(sb2=='sb_1'){
var	tabarray=new Array("9","114","131","134","154","168","189","210","211");
for (var i=0;i<tabarray.length;i++)
{
document.getElementById('sb_2-'+tabarray[i]).style.display="none";
}
}
}
}
}
function accordianPanelClose(id,tId,cid){
  
  if(cid=="cid"){
cid=$1('sflflag').className.replace("sfl-","")
document.getElementById(id+'-'+cid).style.display="none";
}else{
document.getElementById(id).style.display="none";
}
}
function accordianPanel(id,tId,cid){
if(tId=="mn_1"){
if (document.getElementById(id).style.display=="none") {
  document.getElementById(id).style.display="block";	
  }else{
  document.getElementById(id).style.display="none";
  }
  
}else{

if(cid=="cid"){
cid=$1('sflflag').className.replace("sfl-","")
}
if(document.getElementById(id+'-'+cid)!=null){
  if (document.getElementById(id+'-'+cid).style.display=="none") {
  document.getElementById(id+'-'+cid).style.display="block";	
  }else{
  document.getElementById(id+'-'+cid).style.display="none";
  }
  }
}
if(document.getElementById(tId).className !=null){
classname=document.getElementById(tId).className;
if(classname=='brdlst' || classname=='brdlst1'){
document.getElementById(tId).className =document.getElementById(tId).className+" active";
}
}
}

