document.ckslio = document.cookie.match(/mmbdat\s*=([^;]+)/i)


var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
  xmlhttp = new XMLHttpRequest();
}

/////////////////////    The Main Man
function doreq (url){
	if (!xmlhttp) {
		  alert("No magic in this browser, sorry")
		  return (0);
	}
	else{

		c = 0
		resp = ""
	//alert(url)
		xmlhttp.open("GET",url ,true);
		 xmlhttp.onreadystatechange=function() {
			  if (xmlhttp.readyState==4) {
				  // alert("doreq return\n" + xmlhttp.responseText)//
				   eval(xmlhttp.responseText)
				   //resp = xmlhttp.responseText
			  }
		 }
		 t = new Date()
		 xmlhttp.send(null)
		 return(1);
	}
}

function chkloginout() {
	doreq("bkend.php?hmec=1");
}

function notsess() {
	document.ckslio = false;
	document.getElementById("loginouthr").href = "lady-golfer-login.html";
	document.getElementById("loginoutimg").src = "assets/alg-mb-08-n.gif";	
	main08on.src = "assets/alg-mb-08-r.gif";
	main08off.src = "assets/alg-mb-08-n.gif";
}

function issess() {
	if (document.ckslio) {
		document.getElementById("loginouthr").href = "lady-golfer-personal-home-page.html";
		document.getElementById("loginoutimg").src = "assets/alg-mb-10-n.gif";
		main08on.src = "assets/alg-mb-10-r.gif";
		main08off.src = "assets/alg-mb-10-n.gif";
	}

}
