var funsequence = 0;
var _1 = navigator.userAgent.toLowerCase();
var ___ = (_1.indexOf("msie") != -1);
var ___5 = (_1.indexOf("msie 5") != -1);
var _io = (_1.indexOf("opera") != -1);
var _im = (_1.indexOf("mac") != -1);
var ____gi = (_1.indexOf("gecko") != -1);
var i____s = (_1.indexOf("safari") != -1);
var o = null;
var oo = null;
var r = null;

function c(r) {
  if (___) {
    var t = (___5) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP";
    try {
      o = new ActiveXObject(t);
      o.onreadystatechange = r;
    } catch (ex) {
      alert("You need to enable active scripting and activeX ts.." + ex );  
    }
  } else {
    o = new XMLHttpRequest();
    o.onload = r;
    o.onerror = r;
  }
  return o;
}
function oGET(oo, url) {
  try {
    oo.open("GET", url, true);	
    oo.send(null);
  } catch (ex) {
  }
}
function writeSelect(){
   if (o.readyState != 4 || o.status != 200) { 
      return;
   }
   document.getElementById("status").innerHTML = ''+o.responseText;
}
function chkmail(){
	var email = document.forms[0].username.value;
	if(email == "" ){
		alert("Input your Email, in proper format please!!!");
		document.forms[0].username.focus();
	}
	else{
		o = c(writeSelect);
		oGET(o,'chkmail.jsp?email=' + email + '&d='+ new Date());
	}
}