
var xmlhttp;
xmlhttp=GetXmlHttpObject();
function CLT_chkAlreadyRegistered(str){
	if (xmlhttp==null){		alert ("Browser does not support HTTP Request");  		return;  	}
	
	if(str==""){		alert ("Please insert email");  		return;	}
	var url="webinar_funcs.php?trigger=SRV_chkAlreadyRegistered&param="+str;
	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4){
			document.getElementById("lblAvailabilty").innerHTML=xmlhttp.responseText;	
			if(xmlhttp.responseText=="You are a subcriber"){			document.frm_sendpassword.btn_sendlink.disabled=false;		}
		}else{		
			document.getElementById("lblAvailabilty").innerHTML="<img src='images/loading1.gif' height='8' width='33'>";	
		}
	};
	
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}





function GetXmlHttpObject(){
	if (window.XMLHttpRequest){
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
  	}
	if (window.ActiveXObject){
		return new ActiveXObject("Microsoft.XMLHTTP");
  	}
	return null;
}
