function show_privacy(thispath) {
window.open(thispath + '/showprivacy.asp','privacy','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function show_termsofuse(thispath) {
window.open(thispath + '/showtermsofuse.asp','termsofuse','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function show_copyright(thispath) {
window.open(thispath + '/showcopyright.asp','copyright','scrollbars=yes,width=650,height=465,top=50,left=50');
}
function show_aboutus(thispath) {
window.open(thispath + '/showaboutus.asp','aboutus','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function open_others(thispath,ourl) {
window.open(thispath + ourl,'other_popup','width=483,height=280,top=0,left=0');
}
function link_win(wurl) {
llwin = window.open(wurl,'locallife','status=yes,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0');
if (window.focus) {llwin.focus()}
}
function show_newcatshelp(thispath){
window.open(thispath + '/newcatshelp.asp','newcatshelp','width=420,height=300,top=50,left=50');
}
function show_jobs(){
window.open('/jobs.asp','jobs','width=770,height=640,top=50,left=50');
}
function show_community(thispath) {
window.open(thispath + '/showcommunity.asp','community','scrollbars=yes,width=650,height=440,top=50,left=50');
}

function logout(ptype,sfolder){
 if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
 else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

 xmlhttp.open("POST","/logout.asp",true);
 xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
 xmlhttp.send("");

 xmlhttp.onreadystatechange=function()
 {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
   {
   document.getElementById('logout').style.display = 'none';
   document.getElementById('login').style.display = '';
   if(ptype == 'membership')
    {
    window.location.href = '/' + sfolder + '/?justsignedout=yes'
    }
   if(document.getElementById('welcome') != undefined)
    {
     document.getElementById('welcome').style.display = 'none';
    }
   }
  }

}
