function show_privacy() {
window.open('/showprivacy.asp','privacy','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function show_termsofuse() {
window.open('/showtermsofuse.asp','termsofuse','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function show_copyright() {
window.open('/showcopyright.asp','copyright','scrollbars=yes,width=650,height=465,top=50,left=50');
}
function show_aboutus() {
window.open('/showaboutus.asp','aboutus','scrollbars=yes,width=650,height=430,top=50,left=50');
}
function open_others(ourl) {
window.open(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(){
window.open('/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() {
window.open('/showcommunity.asp','community','scrollbars=yes,width=650,height=440,top=50,left=50');
}

function logout(useremail){
 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("useremail="+useremail);

 xmlhttp.onreadystatechange=function()
 {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
   {
   document.getElementById('logout').style.display = 'none';
   document.getElementById('login').style.display = 'inline';
   }
  }

}
