function doLogin(oButton)
{
   oButton.disabled = true;
   var strUser = document.getElementById('email').value;
   var strPword= document.getElementById('password').value;
   var strURL = 'http://autobidapp.autobid.com/Login.aspx'
   //var strURL = 'http://autobidapp.autobid.com/Login.aspx?uid='+strUser+'&pwd='+strPword;
   window.location.replace(strURL);
}

function doReset(oButton)
{
   document.getElementById('email').value = '';
   document.getElementById('password').value = '';
}

function emailPW(oButton,oEmail)
{
   tdFeedback.style.color='red';
   tdFeedback.style.fontWeight='bold';

   if (oEmail.value.length < 7)
   {
      tdFeedback.innerText = 'Please enter a valid Email Address';
      return;
   }

   oButton.disabled = true;
   var strURL = '../valuation/emailPW.asp?email='+oEmail.value;

   var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   xmlhttp.Open("POST",strURL,true);

   xmlhttp.onreadystatechange = function() 
   {
      if (xmlhttp.readyState == 4) 
      {
         oButton.disabled = false;
         tdFeedback.style.display='';

         var strResult = xmlhttp.responseText;
         tdFeedback.innerHTML = strResult;
      }
   }
   xmlhttp.send();
}

function requestAccess()
{
   location.replace('../valuation/NewCustomer.asp');
}
