function GetMyLogin()
{
    
    var email = document.getElementById("loginemail").value.toString();
    var password = document.getElementById("loginpassword").value.toString();    
    
    if(email == "" || password == "") {
        alert('We need your email and password!');
    }
    else {
        if (window.XMLHttpRequest) {
           // code for IE7+, Firefox, Chrome, Opera, Safari
           xmlhttp=new XMLHttpRequest();
        }
        else {
           // code for IE6, IE5
           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }

        xmlhttp.onreadystatechange=function()
        {
            if (xmlhttp.readyState==4 ) {   //}&& xmlhttp.status==200) {
                var resp = xmlhttp.responseText;
                if(resp.substr(0,2) != "NO") {  
                    location.replace("https://cl110.justhost.com/~rollied1/univoil.com/orderoil.php?pid="+resp);
                    //location.replace("orderoil.php?pid="+resp);     
                }
                else {
                    alert('Email or Password doesn\'t match.');    
                }
            }
        }
      
        //xmlhttp.open("GET","checklogin.php?email="+email+"&password="+password);
        xmlhttp.open("GET","checklogin.php?email="+email+"&password="+password);
        xmlhttp.send();  
    }     
    
} 

function GetEditLogin()
{
   
    var email = document.getElementById("loginemail").value.toString();
    var password = document.getElementById("loginpassword").value.toString();    
    
    if(email == "" || password == "") {
        alert('We need your email and password!');
    }
    else {
        if (window.XMLHttpRequest) {
           // code for IE7+, Firefox, Chrome, Opera, Safari
           xmlhttp=new XMLHttpRequest();
        }
        else {
           // code for IE6, IE5
           xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }

        xmlhttp.onreadystatechange=function()
        {
            if (xmlhttp.readyState==4 ) {   //}&& xmlhttp.status==200) {
                var resp = xmlhttp.responseText;
                if(resp.substr(0,2) != "NO") {  
                    
                    location.replace("https://cl110.justhost.com/~rollied1/univoil.com/newedit.php?pid="+resp); 
                    //location.replace("newedit.php?pid="+resp);
                      
                }
                else {
                    alert('Email or Password doesn\'t match.');    
                }
            }
        }
      
        xmlhttp.open("GET","checklogin.php?email="+email+"&password="+password);
        xmlhttp.send();  
    }     
    
} 
