function ajaxRequest(a,b){xmlHttp=GetXmlHttpObject(b);xmlHttp.open("GET",a,true);xmlHttp.send(null)}function GetXmlHttpObject(b){var a=null;try{a=new XMLHttpRequest();a.onreadystatechange=b;return a}catch(c){try{a=new ActiveXObject("Msxml2.XMLHTTP");a.onreadystatechange=b;return a}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP");a.onreadystatechange=b;return a}catch(c){return false}}}return false}function ajaxNotificationEmailAdd(){if(document.getElementById("sucessId")){document.getElementById("sucessId").style.display="none"}if(document.getElementById("errorId")){document.getElementById("errorId").style.display="none"}if(emailValidation()){url="../Ajax.php?notification=1&notifyMail="+document.forms.notifyMailForm.mailId.value;ajaxRequest(url,handelNotification)}}function handelNotification(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){res=xmlHttp.responseText;if(res==0||res==""){if(document.getElementById("sucessId")){document.getElementById("sucessId").style.display="block"}document.forms.notifyMailForm.mailId.value=""}else{if(document.getElementById("errorId")){document.getElementById("errorId").style.display="block"}}}};