function Validate(obj) {
        //Validate name
       if (isEmpty(document.form1.name.value)) {
                alert("Please enter Name.");
                document.form1.name.focus();
                return false;
        }        
        if (! isAlpha(document.form1.name.value)) {
                alert("Invalid name entered.");
                document.form1.name.focus();
                return false;
        }
        
        if (isEmpty(document.form1.mobile.value)) {
                alert("Please enter Mobile.");
                document.form1.mobile.focus();
                return false;
        }
        if (! isValidPhoneNo(document.form1.mobile.value)) {
                alert("Invalid mobile entered.");
                document.form1.mobile.focus();
                return false;
        }

        return true;
}        


