﻿// JScript File

 function ValidateFields()
    {
   
        var str="";     
        if (document.getElementById('ctl00_cphContent_txtEmail').value.replace(/^\s+|\s+$/,'')=="" )
        {
            str += " Email,";
        }         
        if (document.getElementById('ctl00_cphContent_txtpassword').value.replace(/^\s+|\s+$/,'') == "")
        {
           str += " Password,"
        }
                   
        if (str!= "")
        {
            str = str.substring(0,str.length-1)
           
            document.getElementById('ctl00_cphContent_lblErrorMessage').innerHTML = "The following field(s) have invalid value(s):" + str+ "." ;
            location.href = "#ctl00_cphContent_lblErrorMessage";                      
            return false;
        }
    }     



