﻿function RegisterDoctor() 
{
    if (IsEmptyText("ctl00_content_txtName")) 
    {
        alert("Please enter your name");
        return false;
    }

    if (IsEmptyText("ctl00_content_txtContactAddress")) 
    {
        alert("Please enter your contact address");
        return false;
    }

    if (!IsEmailText("ctl00_content_txtEmail")) 
    {
        alert("Please enter a valid email address");
        return false;
    }
    /*
    if (IsEmptyText("ctl00_content_txtPassword")) 
    {
        alert("Please enter the password");
        return false;
    }

    if (!CompareText("ctl00_content_txtPassword", "ctl00_content_txtConfirmPassword")) 
    {
        alert("Confirm password is not matching");
        return false;
    }
    */
    return true;
}

function RegisterNurse() 
{
    if (IsEmptyText("ctl00_content_txtName")) 
    {
        alert("Please enter your name");
        return false;
    }

    if (IsEmptyText("ctl00_content_txtContactAddress"))
    {
        alert("Please enter your contact address");
        return false;
    }

    if (!IsEmailText("ctl00_content_txtEmail")) 
    {
        alert("Please enter a valid email address");
        return false;
    }

    return true;
}

function RegisterJob() 
{
    if (IsEmptyText("ctl00_content_txtName")) 
    {
        alert("Please enter your name");
        return false;
    }

    if (IsEmptyText("ctl00_content_txtQualification")) 
    {
        alert("Please enter your qualification");
        return false;
    }

    if (!IsEmailText("ctl00_content_txtEmail")) 
    {
        alert("Please enter a valid email address");
        return false;
    }

    if (IsEmptyText("ctl00_content_filCV")) 
    {
        alert("Please enter your CV");
        return false;
    }

    return true;
}

function Enquiry() 
{
    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtName")) 
    {
        alert("Please enter your name");
        return false;
    }

    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtContactAddress")) 
    {
        alert("Please enter your address");
        return false;
    }

//    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtArea")) 
//    {
//        alert("Please enter your location");
//        return false;
//    }

    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtPhone")) 
    {
        alert("Please enter your phone number");
        return false;
    }

    if (!IsEmailText("ctl00_ContentPlaceHolder1_txtEmail")) 
    {
        alert("Please enter a valid email address");
        return false;
    }
    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtEnquiry")) 
    {
        alert("Please enter your enquiry");
        return false;
    }
     if (IsEmptyText("ctl00_ContentPlaceHolder1_txtComplaints")) 
    {
        alert("Please enter your comments");
        return false;
    }

    return true;
}
function Referral() 
{
    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtName")) 
    {
        alert("Please enter the name of client/patient");
        return false;
    }

    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtContactAddress")) 
    {
        alert("Please enter the address");
        return false;
    }
  
    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtArea")) 
    {
        alert("Please enter Phone Number");
        return false;
    }
     if (IsEmptyText("ctl00_ContentPlaceHolder1_txtPhone")) 
    {
        alert("Please enter email");
        return false;
    }

    if (!IsEmailText("ctl00_ContentPlaceHolder1_txtPhone")) 
    {
        alert("Please enter a valid email address");
        return false;
    }

    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtEmail")) 
    {
        alert("Please enter the contact details of the referrer");
        return false;
    }
    if (IsEmptyText("ctl00_ContentPlaceHolder1_txtEnquiry")) 
    {
        alert("Please enter the presenting problems");
        return false;
    }
     if (IsEmptyText("ctl00_ContentPlaceHolder1_txtComplaints")) 
    {
        alert("Please enter the comments");
        return false;
    }

    return true;
}
function PatientDetails() 
{
    if (IsEmptyText("ctl00_content_txtDoctorName")) 
    {
        alert("Please enter doctor name");
        return false;
    }

    if (IsEmptyText("ctl00_content_txtPatientName")) 
    {
        alert("Please enter patient name");
        return false;
    }
}

