function populatediv(urlval,divval){ populate(urlval,divval,''); } function populate(urlval,divval,loading){ try{ var xmlhttp=false; var status=0; if(loading != 'no'){ var str_temp = '



Loading.....
'; str_temp = str_temp + ''; document.getElementById(divval).innerHTML = str_temp;} xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById(divval).innerHTML=xmlhttp.responseText; } else if (xmlhttp.status==404) status=0 else status=0}} xmlhttp.open("GET",urlval,true); xmlhttp.send(null); }}catch (e){xmlhttp = false; }} function switchtabcomm1(act,type){ var arrayofTab = act.split('#'); var arrlen = arrayofTab.length-1; for(i=arrlen;i>=0;i--){ if(i == 0){ if(type==1){ document.getElementById(arrayofTab[i]+"Data").style.visibility='visible'; document.getElementById(arrayofTab[i]+"Data").style.display='inline';} document.getElementById(arrayofTab[i]).className="current"; }else { if(type==1){document.getElementById(arrayofTab[i]+"Data").style.visibility='hidden'; document.getElementById(arrayofTab[i]+"Data").style.display='none';} document.getElementById(arrayofTab[i]).className=""; }}} function populate_wf(urlval,divval,loading,fncname){ try{ var xmlhttp=false; var status=0; if(loading != 'no'){ var str_temp = ''; str_temp = str_temp + '
Loading.....'; '
'; document.getElementById(divval).innerHTML = str_temp; } xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById(divval).innerHTML=xmlhttp.responseText; if(fncname != ''){eval(fncname);} } else if (xmlhttp.status==404) status=0 else status=0 }} xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } }catch (e){ xmlhttp = false; }}