    function fValidate(vHost, vChHost)
    {  
      var vCust, vId, vUrl, vParam

      vCust = document.fForm.vCust.value; 
      if (vCust == "") 
      {
        alert("Please enter your Campus Id.");
        document.fForm.vCust.focus();
        return;
      }

      vId = document.fForm.vId.value; 
      if (vId == "") 
      {
        alert("Please enter your E-mail Address.");
        document.fForm.vId.focus();
        return;
      }

      vUrl = "wsWorkSmart.asp";
      vParam = "vFunction=WorkSmart_SignIn&vCust=" + escape(document.fForm.vCust.value) + "&vId=" + escape(document.fForm.vId.value);
      vWs = WebService(vUrl, vParam);


      if (vWs == "error")
      {
        alert("We are unable to provide this service, please contact support.");
        return (false);
      }

      if (vWs == "invalid cust")
      {
        alert("Please enter the correct Campus ID.");
        document.fForm.vCust.focus();
        return;
      }

      if (vWs == "invalid id")
      {
        alert("That Email Address is not on file. Please click 'Enroll' and follow instructions to register.");
        document.fForm.vId.focus();
        return;
      }

      vUrl = "http://" + vHost + "/Default.asp";
      vUrl += "?vCust=MEVT2747";
      vUrl += "&vId=" + vId;
      vUrl += "&vSource=http://" + vChHost + "/Worksmart/Default.asp";

//    alert(vUrl);

      document.fForm.action = vUrl;
      document.fForm.submit();
    }
 
