var xmlHttp;
var publ;
var mnu;
var mnu="ss1";
function getXMLHttpRequest(){
var xmlHttp=null;
try{// Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}catch(e){
try{ // Internet Explorer
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}


function loadpage(url){
document.getElementById("tbl_content").innerHTML="<iframe width=100% frameborder=0 height=400px src=" +url +">" + "</iframe>";
}

function tswp2(curpage){
xmlHttp=getXMLHttpRequest();
if(xmlHttp==null){
alert("Your browser dose not support Ajax \n Try viewing this page with Internet Explorer \n or browsers with Ajax functionality");
return;}
var mod = "setpageurl";
var url="createsession.php";
url=url+"?curpage="+curpage+"&mod="+mod;
xmlHttp.onreadystatechange=function(){ 
if (xmlHttp.readyState==4){ 
sd=xmlHttp.responseText;
window.location = "userprofile.php";
}else if(xmlHttp.readyState==3){
//DAB("dstat").innerHTML="<img src='Themes/loader.gif' />Loading...";
}}
xmlHttp.open("GET",url,true);	
xmlHttp.send(null);}


function tswp3(curappid,curpage){
xmlHttp=getXMLHttpRequest();
if(xmlHttp==null){
alert("Your browser dose not support Ajax \n Try viewing this page with Internet Explorer \n or browsers with Ajax functionality");
return;}
var mod = "setpageurlapp";
var url="createsession.php";
url=url+"?curappid="+curappid+"&curpage="+curpage+"&mod="+mod;
xmlHttp.onreadystatechange=function(){ 
if (xmlHttp.readyState==4){ 
sd=xmlHttp.responseText;
window.location = "userprofile.php";
}else if(xmlHttp.readyState==3){
//DAB("dstat").innerHTML="<img src='Themes/loader.gif' />Loading...";
}}
xmlHttp.open("GET",url,true);	
xmlHttp.send(null);}



