// JavaScript Document
var url_jtype3= "/ajax/ajax_update_jobtype3.php?id="; 

		function handleHttpResponse_update_jobtype3() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
					document.getElementById('j_id3').innerHTML= results;
              }
           }
        }
		
		function update_jobtype3(id) {
            http.open("GET", url_jtype3 + escape(id) + '&sid='+Math.random() , true);
            http.onreadystatechange = handleHttpResponse_update_jobtype3;
            http.send(null);
        }
		
var url_jtype= "/ajax/ajax_update_jobtype.php?id="; 

		function handleHttpResponse_update_jobtype() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
					document.getElementById('j_id').innerHTML= results;
              }
           }
        }
		
		function update_jobtype(id) {
            http.open("GET", url_jtype + escape(id) + '&sid='+Math.random() , true);
            http.onreadystatechange = handleHttpResponse_update_jobtype;
            http.send(null);
        }
		
var url_mail = "/ajax/ajax_mail.php?email="; 

		function sendemail() {
		    var email = document.getElementById("email_1").value;
			//document.getElementById('ss_email').innerHTML = "<img src='/images/ajax-loader.gif' />";		

			http.open("GET", url_mail + escape(email) +'&sid='+ Math.random(), true);
				http.onreadystatechange = handleHttpResponse_email;
				http.send(null);
        }
		function handleHttpResponse_email() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
				// alert(results);
				 document.getElementById('ss_email').innerHTML = results;
				 //document.getElementById('email_vis').innerHTML = "";
				 //document.getElementById('s_email').innerHTML = "";
			 
              }
           }
        }
var url_jtype2= "/ajax/ajax_update_jobtype2.php?id="; 
	
		function handleHttpResponse_update_jobtype2() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
					document.getElementById('j_id2').innerHTML= results;
              }
           }
        }
		
		function update_jobtype2(id) {
            http.open("GET", url_jtype2 + escape(id) + '&sid='+Math.random() , true);
            http.onreadystatechange = handleHttpResponse_update_jobtype2;
            http.send(null);
        }

var url_forgot = "/ajax/ajax_forgot_password.php?email="; 

		function forgot_password() {
		    var email = document.getElementById("for_email").value;
			http.open("GET", url_forgot + escape(email) +'&sid='+ Math.random(), true);
				http.onreadystatechange = handleHttpResponse_forgot_password;
				http.send(null);
        }
		function handleHttpResponse_forgot_password() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
				// alert(results);
				 document.getElementById('sforgot').innerHTML = results;
				 //document.getElementById('email_vis').innerHTML = "";
				 //document.getElementById('s_email').innerHTML = "";
			 
              }
           }
        }
var url_pass = "/ajax/ajax_password.php?id="; 

		function change_password() {
		    var pass = document.getElementById("currentpassword").value;
		    var newpass = document.getElementById("newpassword").value;
			invis('changepass');
		    document.getElementById('password').value = newpass;
		    var id = document.getElementById("ijobseeker_id").value;
			http.open("GET", url_pass + escape(id) +'&pass='+ escape(pass) +'&newpass='+ escape(newpass)+'&sid='+ Math.random(), true);
				http.onreadystatechange = handleHttpResponse_password;
				http.send(null);
        }
		function handleHttpResponse_password() {   
        if (http.readyState == 4) {
              if(http.status==200) {
                  var results=http.responseText;
				// alert(results);
				 document.getElementById('passwordupdate1').innerHTML = results;
			     document.getElementById("currentpassword").value = "";
			     document.getElementById("newpassword").value="";
			     document.getElementById("confirmpassword").value="";		 
              }
           }
        }
			
var url_login = "/ajax/ajax_verifylogin.php?pid="; 
		
		function VerifyLogin() {    
            var pId = document.getElementById("loginemail").value;
            var pw = document.getElementById("Password").value;	
            http.open("GET", url_login + escape(pId) + "&pw=" + escape(pw) + '&sid='+Math.random(), true);
            http.onreadystatechange = handleHttpResponse_login;
            http.send(null);
        }
		 function handleHttpResponse_login() {   
			if (http.readyState == 4) {
				  if(http.status==200) {
					  var results=http.responseText;
					  if((results.length)<5)
					  {
						document.frm.submit();
					  }
					  else
					  {
						document.getElementById('sloginemail').innerHTML = results;
					  }
	
				  }
			   }
			}

var url_login1 = "/ajax/ajax_verifylogin.php?pid="; 
		
		function VerifyLogin1() {    
            var pId = document.getElementById("loginemail1").value;
            var pw = document.getElementById("Password1").value;	
            http.open("GET", url_login1 + escape(pId) + "&pw=" + escape(pw) + '&sid='+Math.random(), true);
            http.onreadystatechange = handleHttpResponse_login1;
            http.send(null);
        }
		 function handleHttpResponse_login1() {   
			if (http.readyState == 4) {
				  if(http.status==200) {
					  var results=http.responseText;
					  if((results.length)<5)
					  {
						window.location.href='/my-account.php';
					  }
					  else
					  {
						document.getElementById('sloginemail').innerHTML = results;
					  }
	
				  }
			   }
			}
			
		function InnerVerifyLogin() {    
            var pId = document.getElementById("loginemail_1").value;
            var pw = document.getElementById("Password_1").value;	
            http.open("GET", url_login  + escape(pId) + "&pw=" + escape(pw) + '&sid='+Math.random(), true);
            http.onreadystatechange = handleHttpResponse_inner_login;
            http.send(null);
        }
		 function handleHttpResponse_inner_login() {   
			if (http.readyState == 4) {
				  if(http.status==200) {
					  var results=http.responseText;
					  if((results.length)<5)
					  {
						document.frm1.submit();
					  }
					  else
					  {
						document.getElementById('Message_1').innerHTML = results;
					  }
				  }
			   }
			}			
			


function getHTTPObject() {
  var xmlhttp;
  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
}
  return xmlhttp;
}

var http = getHTTPObject(); // We create the HTTP Object
