// JavaScript Document
//============================================================================================================
//~ Checks to see if a required field is blank.  If so, an error message is displayed.
function ForceDataEntry(objField, strFieldName)
{
	// To find out the Value of the control
	var strFieldValue=trimAll(objField.value);
	if (IsEmpty(strFieldValue))
	{
		alert("You need to enter " + strFieldName);
		objField.focus();
		return false;
	}
	return true;
}
//==============================================================================================================

//~ Checks to see if a DropDownList is empty. If so, an error message is displayed.
function ForceComboItems(ddlName, strDdlName)
{
	// To find out the Value of the control
	var ItemCount=ddlName.value;
	if (IsComboEmpty(ItemCount))
		{
			alert("First Select the " + strDdlName);
			ddlName.focus();
			return false;
		}
	return true;
}
//===============================================================================================================
//================================================================================================================
//~ Check whether a given string is empty or not.
function IsEmpty(strTxtBoxValue)
{   if ((strTxtBoxValue == null) || (strTxtBoxValue.length == 0))
	{
		return true;			//^ Returning True, if Empty Text Box found
	}	
}

//=====================================================================================================
//================================================================================================================
//~ Check whether a given DropDown value is empty or not.

function IsComboEmpty(ddlValue)
{ 
    if( (ddlValue =="--Select--")|| (ddlValue=="0"))
    {
    return true; //^ Returning True, if Empty Text Box found
    } 
}



function CheckKeyCode()

{
if((event.keyCode >= 96 && event.keyCode <= 105) ||

(event.keyCode > 32 && event.keyCode < 48) ||

(event.keyCode > 57 && event.keyCode < 65) ||

(event.keyCode > 90 && event.keyCode < 96) ||

(event.keyCode == 189 || event.keyCode == 109))


{

return true; }

else {

return false;

}

}

function noCopyKey(e) 

{

var forbiddenKeys = new Array('c','x','v');

var isCtrl;

if(window.event) {

if(window.event.ctrlKey)

isCtrl = true;

else

isCtrl = false;

}

else {

if(e.ctrlKey)

isCtrl = true;

else

isCtrl = false; }

if(isCtrl) {

for(i=0; i < forbiddenKeys.length; i++) {

if(forbiddenKeys[i] == String.fromCharCode(window.event.keyCode).toLowerCase()) {

alert('You can not copy and paste here');

return false;

}

}

}

return true;

}


function noCopyMouse(e) 

{

//debugger;

var message="";

if (event.button == 2 || event.button == 3) 

{

//this.focus();

alert('You can not copy and paste here');

return false;

}

return true;

}
	
//===============================================================================================================
//================================================================================================================
//~ Check whether a given Email is Valid or not.
function IsEmailValid(objField, strFieldName)
{
	// To find out the Value of the control
	var strFieldValue=objField.value;
	if (IsEmpty(strFieldValue))
	{
		return true;
	}
	else
	{
	    var at="@"
		var dot="."
		var lat=strFieldValue.indexOf(at)
		var lstr=strFieldValue.length
		var ldot=strFieldValue.indexOf(dot)
		
		if (strFieldValue.indexOf(at)==-1)
		{
		    alert("Email should be in abc@xyz.com format");
		   objField.focus();
		   return false;
		}
		if (strFieldValue.indexOf(at) == -1 || strFieldValue.indexOf(at) == 0 || strFieldValue.indexOf(at) == lstr)
        {
		   alert("Email should be in abc@xyz.com format");
		   objField.focus();
		   return false;
		}
		if (strFieldValue.indexOf(dot)== lstr || strFieldValue.indexOf(dot)== -1 || strFieldValue.indexOf(dot)== 0  )
        {
		   alert("Email should be in abc@xyz.com format");
		   objField.focus();
		   return false
		}
		if ((ldot+1)  == lstr   )
        {
        
		    alert("Email should be in abc@xyz.com format");
		    objField.focus();
		    return false
		}
		 if (strFieldValue.indexOf(at,(lat+1))!= -1)
         {
		    alert("Email should be in abc@xyz.com format");
		    objField.focus();
		    return false;
		 }
		 if (strFieldValue.substring(lat-1,lat) == dot || strFieldValue.substring(lat+1,lat+2)== dot)
         {
		   alert("Email should be in abc@xyz.com format");
		   objField.focus();
		   return false;
		 }

		 if (strFieldValue.indexOf(dot,(lat+2))== -1)
         {
		    alert("Email should be in abc@xyz.com format");
		    objField.focus();
		    return false;
		 }
		 
		 if (lstr == strFieldValue.indexOf(dot)+2 || lstr == strFieldValue.indexOf(dot)+5)
          {
		       alert("Email should be in abc@xyz.com format");
		       objField.focus();
		       return false;
		       
		      }
		 if (strFieldValue.indexOf(" ")!= -1)
         {
		     alert("Email should be in abc@xyz.com format");
		     objField.focus();
		     return false;
		 }
		return true;
		}
	
	
}
//--------------------------------------------------------------------------------------------------------------------
 //===============================================================================================================
//~ Returns true if the string passed is a valid number
//~ no characters except a -ve sign at the begining is accepted
//~ otherwise, it displays an error message
function ForceNumericEntry(objField, strFieldName)
{
	var strFieldValue = new String(objField.value);
    var intLoopCounter = 0;

	for (intLoopCounter = 0; intLoopCounter < strFieldValue.length; intLoopCounter++)
		//if ((strFieldValue.charAt(intLoopCounter) < '0' || strFieldValue.charAt(intLoopCounter) > '9') && (strFieldValue.charAt(0) != '-'))
		
		if  ((strFieldValue.charAt(intLoopCounter) > '9') && (strFieldValue.charAt(0) != '-'))
		{
			alert(strFieldName + " must be a valid No ");
			objField.focus();
			return false;
		}
	return true;
}

function ForceNumericEntryDate(objField, strFieldName)
{
	var strFieldValue = new String(objField.value);
    var intLoopCounter = 0;

	for (intLoopCounter = 0; intLoopCounter < strFieldValue.length; intLoopCounter++)
		//if ((strFieldValue.charAt(intLoopCounter) < '0' || strFieldValue.charAt(intLoopCounter) > '9') && (strFieldValue.charAt(0) != '-'))
		
		if  ((strFieldValue.charAt(intLoopCounter) > '9') && (strFieldValue.charAt(0) != '/'))
		{
			alert(strFieldName + " must be a valid Date, Valid Date Format is : dd/mm/yyyy");
			objField.focus();
			return false;
		}
	return true;
}
//================================================================================

//==========================================================================================================
// Validates a Date Entered by User 
// Also Forces the User to stick to either "dd/MMM/yyyy" or "dd-MMM-yyyy" Date Formats.

	function isValidDate(objField,strDateName)
	{
     var strDateValue=trimAll(objField.value)
    
    // If Date is Blank, Don't Validate
    if (IsEmpty(strDateValue)) return true;
     
       
     var arr = [];
     arr['JAN'] = 0;
     arr['FEB'] = 1;
     arr['MAR'] = 2;
     arr['APR'] = 3;
     arr['MAY'] = 4;
     arr['JUN'] = 5;
     arr['JUL'] = 6;
     arr['AUG'] = 7;
     arr['SEP'] = 8;
     arr['OCT'] = 9;
     arr['NOV'] = 10;
     arr['DEC'] = 11;
     
     //^ Splitting the date using the divider "/"
     var arrDate = strDateValue.split('/');
     
     //^ If user did not use the divider "/" then,
     if (arrDate.length!=3)
     {
        //^ Splitting the date using the divider "-"
         arrDate = strDateValue.split('-');
     }
     
     // if splitting occured using the correct divider
     if (arrDate.length==3 && strDateValue.length==11)
     {
       //^ d stores date entered by user in Javascript Internal Date Format
       var d = new Date(arrDate[2], arr[arrDate[1].toUpperCase()], arrDate[0]);
     
       //Checking if the date entered is a valid Date or not
       if (!isNaN(d) && d.getFullYear()==arrDate[2] && d.getMonth()==arr[arrDate[1].toUpperCase()] && d.getDate()==arrDate[0])
       {
             return true;
       }
       else
       {
            alert(strDateName + " Valid Date Formats Are : DD-MMM-YYYY");
            objField.focus();
            return false;
       }
     }
     else
     {
        alert("Valid Date Formats Are :DD-MMM-YYYY");
        objField.focus();
        return false;
     }
}

//=============================================================================================================
//=============================================================================================================

// Function for trim any string
function trimAll( strValue )
			 {				
				var objRegExp = /^(\s*)$/;
					      //check for all spaces
					if(objRegExp.test(strValue))
					 {
					strValue = strValue.replace(objRegExp, '');
					if( strValue.length == 0)
						return strValue;
					 }
				        //check for leading & trailing spaces
				    objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/;
				    if(objRegExp.test(strValue)) 
				     {
					//remove leading and trailing whitespace characters
					strValue = strValue.replace(objRegExp, '$2');
				     }
				return strValue;
			 }


//==================================
function isDecimalValue(fieldName, fieldLabel)
{
    decallowed = 2;  // how many decimals are allowed?
    fieldValue = fieldName.value;
    
    if (isNaN(fieldValue) || fieldValue == "") 
    {
        alert(fieldLabel + " is not a valid number.");
        fieldName.select();
        fieldName.focus();
        return false;
    }
    else 
    {
        if (fieldValue.indexOf('.') == -1) fieldValue += ".";
            dectext = fieldValue.substring(fieldValue.indexOf('.')+1, fieldValue.length);
    
        if (dectext.length > decallowed)
        {
            alert (fieldLabel + " allows up to " + decallowed + " decimal places only.");
            fieldName.select();
            fieldName.focus();
            return false;
        }
        else 
        {
            return true;
        }
    }
}

// Check to see if input is alphabetic
function ForceAlphabetic(objField, strFieldName)
{
	if (objField.value.match(/^[.a-zA-Z\s]+$/))
	{
		return true;
	}
	else
	{
		alert(strFieldName + " must have only Alphabetic values");
		objField.focus();
		return false;
	} 
}

function roundNumber(num, dec) 
{
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}

//================================================================================================================================================================
function ValidateFeedback()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.Feedback.txtNameComp,'Name of the Company')) return false;
	
		//# Validating Company Name for blank
	if (!ForceDataEntry(document.Feedback.txtContactPerson,'Name of Contact Person ')) return false;
	
    //# Validating Contact Person for blank
	if (!ForceDataEntry(document.Feedback.txtDesignation,'Designation')) return false;
		
    //# Validating Contact Person for blank
	if (!ForceDataEntry(document.Feedback.txtAddress,'Address')) return false;
		
	//# Drop Down Products should be selected
	if (!ForceComboItems(document.Feedback.ddlCountry,'Country')) return false; 
	
	//# Drop Down Packing Standard should be selected
	if (!ForceComboItems(document.Feedback.ddlCountry,'Country')) return false; 
	
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.Feedback.txtPhoneNo,'Phone No')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntry(document.Feedback.txtPhoneNo,'Phone No')) return false;

	//# Validating Email Address for Blank
	if (!ForceDataEntry(document.Feedback.txtEmailId, 'Email ID')) return false;
	
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.Feedback.txtEmailId,'Enter proper Email ID')) return false;
			
    //# Validating Contact Person for blank
	if (!ForceDataEntry(document.Feedback.txtRequirementsDetails,'Requirements Details')) return false;



}


//================================================================================================================================================================

function ValidateContactUs()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.ContactUs.name,'name')) return false;
	//# Validating Email Address for Blank
	if (!ForceDataEntry(document.ContactUs.address,'address')) return false;
	
	if (!ForceDataEntry(document.ContactUs.Email, 'Email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.ContactUs.Email,'Enter proper Email')) return false;
	
	if (!ForceDataEntry(document.ContactUs.Phone,'Phone')) return false;
	if (!ForceNumericEntry(document.ContactUs.Phone,'Phone No')) return false;
	
}
function ValidateContactUs1()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.Mice.name,'name')) return false;
	if (!ForceDataEntry(document.Mice.address,'address')) return false;
	
	//# Validating Email Address for Blank
	if (!ForceDataEntry(document.Mice.email, 'email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.Mice.email,'Enter proper email')) return false;

	if (!ForceDataEntry(document.Mice.Phone,'Phone')) return false;
    if (!ForceNumericEntry(document.Mice.Phone,'Phone No')) return false;
    
    if (document.Mice.FromDate.value != "")
    {
        //  if (!ForceDataEntry(document.Mice.FromDate,'From Date')) return false;
	    if (!ForceNumericEntryDate(document.Mice.FromDate,'From Date')) return false;
	    if (!ForceValidDateValue(document.Mice.FromDate,document.Mice.FromDate.value,"From Date")) return false;
    }
    
     if (document.Mice.ToDate.value != "")
    {
        //  if (!ForceDataEntry(document.Mice.ToDate,'To Date')) return false;
	    if (!ForceNumericEntryDate(document.Mice.ToDate,'To Date')) return false;
	    if (!ForceValidDateValue(document.Mice.ToDate,document.Mice.ToDate.value,"To Date")) return false;
    }
    
    if (document.Mice.AreaReq.value != "")
    {
	    if (!ForceNumericEntry(document.Mice.AreaReq,'Area Required')) return false;
    }
    
    if (document.Mice.NoofGuests.value != "")
    {
	    if (!ForceNumericEntry(document.Mice.NoofGuests,'No. of Guests')) return false;
    }
    
     if (document.Mice.Expectedbudget.value != "")
    {
	    if (!ForceNumericEntry(document.Mice.Expectedbudget,'Expected budget in INR')) return false;
    }
	
}

function ValidateContactUs2()
{
    //debugger;
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.Railway.name,'name')) return false;
	if (!ForceDataEntry(document.Railway.address,'address')) return false;
	
	//# Validating Email Address for Blank
	if (!ForceDataEntry(document.Railway.email, 'email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.Railway.email,'Enter proper email')) return false;
    if (!ForceDataEntry(document.Railway.Phone,'Phone')) return false;
    if (!ForceNumericEntry(document.Railway.Phone,'Phone No')) return false;
    
    if (document.Railway.JourneyDate.value != "")
    {
        //  if (!ForceDataEntry(document.Railway.JourneyDate,'Journey Date')) return false;
	    if (!ForceNumericEntryDate(document.Railway.JourneyDate,'Journey Date')) return false;
	    if (!ForceValidDateValue(document.Railway.JourneyDate,document.Railway.JourneyDate.value,"Journey Date")) return false;
    }
    
     if (document.Railway.ReturnDate.value != "")
    {
        //  if (!ForceDataEntry(document.Railway.ReturnDate,'Journey Date')) return false;
	    if (!ForceNumericEntryDate(document.Railway.ReturnDate,'Return Date')) return false;
	    if (!ForceValidDateValue(document.Railway.ReturnDate,document.Railway.ReturnDate.value,"Return Date")) return false;
    }
	

}


function ValidateContactUs3()
{
	if (!ForceDataEntry(document.Flight.name,'name')) return false;
    if (!ForceDataEntry(document.Flight.address,'address')) return false;
	
	if (!ForceDataEntry(document.Flight.email, 'email')) return false;
	if (!IsEmailValid(document.Flight.email,'Enter proper email')) return false;

    if (!ForceDataEntry(document.Flight.Phone,'Phone No')) return false;
    if (!ForceNumericEntry(document.Flight.Phone,'Phone No')) return false;
    
    if (document.Flight.JourneyDate.value != "")
    {
        //  if (!ForceDataEntry(document.Flight.JourneyDate,'Journey Date')) return false;
	    if (!ForceNumericEntryDate(document.Flight.JourneyDate,'Journey Date')) return false;
	    if (!ForceValidDateValue(document.Flight.JourneyDate,document.Flight.JourneyDate.value,"Journey Date")) return false;
    }
    
     if (document.Flight.ReturnDate.value != "")
    {
        //  if (!ForceDataEntry(document.Flight.ReturnDate,'Journey Date')) return false;
	    if (!ForceNumericEntryDate(document.Flight.ReturnDate,'Return Date')) return false;
	    if (!ForceValidDateValue(document.Flight.ReturnDate,document.Flight.ReturnDate.value,"Return Date")) return false;
    }
}

function ValidateContactUs4()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.Car.name,'name')) return false;
    if (!ForceDataEntry(document.Car.address,'address')) return false;
	
	//# Validating Email Address for Numeric
	if (!ForceDataEntry(document.Car.email, 'E-mail')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.Car.email,'Enter proper E-mail')) return false;
	
	if (!ForceDataEntry(document.Car.Phone,'Phone')) return false;
	if (!ForceNumericEntry(document.Car.Phone,'Phone No')) return false;

	

}

function Validatebookingform()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.booking.name,'name')) return false;
	//if (!ForceDataEntry(document.booking.address,'address')) return false;
	
	//# Validating Address for Blank
	if (!ForceDataEntry(document.booking.email, 'email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.booking.email,'Enter proper email')) return false;
	
	
	
	//# Validating Mobile No for blank
	//if (!ForceDataEntry(document.booking.PhoneNo,'Phone No')) return false;
			
	//# Validating Mobile No for Numeric
	//if (!ForceNumericEntry(document.booking.PhoneNo,'Phone No')) return false;
	
	
	if (!ForceDataEntry(document.booking.NameofPackages, 'Name of Packages')) return false;
		//# Validating Check in date Numeric
		
	if (!ForceDataEntry(document.booking.CheckinDate,'Check in date')) return false;
	if (!ForceNumericEntryDate(document.booking.CheckinDate,'Check in Date')) return false;
	if (!ForceValidDateValue(document.booking.CheckinDate,document.booking.CheckinDate.value,"Check in Date")) return false;
	
	if (!ForceDataEntry(document.booking.CheckoutDate,'Check out date')) return false;
	if (!ForceNumericEntryDate(document.booking.CheckoutDate,'Check out date')) return false;
	if (!ForceValidDateValue(document.booking.CheckoutDate,document.booking.CheckoutDate.value,"Check out date")) return false;
	
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.booking.Noofadults,'No of adults')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntry(document.booking.Noofadults,'No of adults')) return false;
	
		//# Validating Mobile No for blank
	if (!ForceDataEntry(document.booking.Amount,'Amount')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntry(document.booking.Amount,'Amount')) return false;
	if (document.booking.Amount.value <= 0)
	{
	    alert("Amount cannot be less than or equal to 0");
	    return false;
	}
}



function ValidateCustExpform()
{
    //debugger;
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.CustExp.name,'name')) return false;
	//if (!ForceDataEntry(document.CustExp.address,'address')) return false;
	
	//# Validating Address for Blank
	if (!ForceDataEntry(document.CustExp.email, 'email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.CustExp.email,'Enter proper email')) return false;
	
	
	
	//# Validating Mobile No for blank
	//if (!ForceDataEntry(document.CustExp.PhoneNo,'Phone No')) return false;
			
	//# Validating Mobile No for Numeric
	//f (!ForceNumericEntry(document.CustExp.PhoneNo,'Phone No')) return false;
	
	
	if (!ForceDataEntry(document.CustExp.NameofPackages, 'Name of Packages')) return false;
		//# Validating Check in date Numeric
		
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.CustExp.CheckinDate,'Check in date')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntryDate(document.CustExp.CheckinDate,'Check in Date')) return false;
	
	if (!ForceValidDateValue(document.CustExp.CheckinDate,document.CustExp.CheckinDate.value,"Check in Date")) return false;
	
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.CustExp.CheckoutDate,'Check out date')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntryDate(document.CustExp.CheckoutDate,'Check out date')) return false;
	
	if (!ForceValidDateValue(document.CustExp.CheckoutDate,document.CustExp.CheckoutDate.value,"Check out date")) return false;
	
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.CustExp.CustomerExperience,'Customer Experience')) return false;
	
}


function ValidatePhotoGallery()
{
	//# Validating Company Name for blank
	if (!ForceDataEntry(document.PhotoGallery.name,'name')) return false;
	//if (!ForceDataEntry(document.PhotoGallery.address,'address')) return false;
	
	//# Validating Address for Blank
	if (!ForceDataEntry(document.PhotoGallery.email, 'email')) return false;
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.PhotoGallery.email,'Enter proper email')) return false;
	
	
	
	//# Validating Mobile No for blank
	//if (!ForceDataEntry(document.PhotoGallery.PhoneNo,'Phone No')) return false;
			
	//# Validating Mobile No for Numeric
	//if (!ForceNumericEntry(document.PhotoGallery.PhoneNo,'Phone No')) return false;
	
	
	if (!ForceDataEntry(document.PhotoGallery.NameofPackages, 'Name of Packages')) return false;

	if (!ForceDataEntry(document.PhotoGallery.upload_ImgLarge,'Photo 1')) return false;
	
}

function photogallery()
{
alert("Photo Gallery Not Available");
}

function ValidRegistration()
{
	if(!ForceDataEntry(document.Registration.txtEmailId,'Email ID')) return false;
    if(!IsEmailValid(document.Registration.txtEmailId,'Email ID','T') )return false;
    if(!ForceDataEntry(document.Registration.txtPassword,'Password')) return false;
    if(document.Registration.txtPassword.value.length<8)
    {
        alert("Password should be of min. 8 characters.");
        document.Registration.txtPassword.focus();
        return false;
    }
    if(!ForceDataEntry(document.Registration.txtRePassword,'Confirm Password')) return false;
    if(document.Registration.txtPassword.value != document.Registration.txtRePassword.value)
    {
        alert("Password & Confirm Password should be exactly same.");
        document.Registration.txtPassword.focus();
        return false;
    }
    
    if(!ForceComboItems(document.Registration.ddlSalutation,"Salutation")) return false;
    if(!ForceDataEntry(document.Registration.txtClientName,"Name")) return false;
    if (!ForceAlphabetic(document.Registration.txtClientName,"Name")) return false;
    if(!ForceDataEntry(document.Registration.txtAddress1,"Address1")) return false;
    if(!ForceDataEntry(document.Registration.txtCity,"City")) return false;
    if(!ForceComboItems(document.Registration.country,"Country")) return false;
    
    if(!ForceDataEntry(document.Registration.txtPincode,"Pin Code")) return false;
    
    var DOBDate =document.Registration.txtDOB_dd.value + '/' + document.Registration.txtDOB_mm.value + '/' + document.Registration.txtDOB_yyyy.value;
    if (trimAll(DOBDate).length > 2)
    {
		if (!ForceValidDateValue(document.Registration.txtDOB_dd,DOBDate,"Date of Birth")) return false;
	}
    if(!ForceDataEntry(document.Registration.txtMobile,"Mobile No.")) return false;
    if(!ForceNumericEntry(document.Registration.txtMobile, 'Mobile No.','T')) return false;
	if(!ForceNumericEntry(document.Registration.txtContactNo, 'Alt. Contact No.','F')) return false;
    
    if(!ForceComboItems(document.Registration.ddlSecretQuestion,'Secret Question')) return false;    
    if(!ForceDataEntry(document.Registration.txtYourAnswer,"Your Answer")) return false;
 
 }
 
 function ValidMemberLogin()
{
	if(!ForceDataEntry(document.Registration.txtEmailId,'Email ID')) return false;
    if(!IsEmailValid(document.Registration.txtEmailId,'Email ID','T') )return false;
    if(!ForceDataEntry(document.Registration.txtPassword,'Password')) return false;
    if(document.Registration.txtPassword.value.length<8)
    {
        alert("Password should be of min. 8 characters.");
        document.Registration.txtPassword.focus();
        return false;
    }
    if(!ForceDataEntry(document.Registration.txtRePassword,'Confirm Password')) return false;
    if(document.Registration.txtPassword.value != document.Registration.txtRePassword.value)
    {
        alert("Password & Confirm Password should be exactly same.");
        document.Registration.txtPassword.focus();
        return false;
    }
    
    if(!ForceComboItems(document.Registration.ddlSalutation,"Salutation")) return false;
    if(!ForceDataEntry(document.Registration.txtClientName,"Name")) return false;
    if (!ForceAlphabetic(document.Registration.txtClientName,"Name")) return false;
   //// if(!ForceDataEntry(document.Registration.txtAddress1,"Address1")) return false;
   //// if(!ForceDataEntry(document.Registration.txtMobile,"Mobile No.")) return false;
    if(!ForceNumericEntry(document.Registration.txtMobile, 'Mobile No.','T')) return false;
    if(!ForceNumericEntry(document.Registration.txtContactNo, 'Phone no.','F')) return false;
 }
 
 
 function ValidEditProfile()
{
    if(!ForceComboItems(document.Registration.ddlSalutation,"Salutation")) return false;
    if(!ForceDataEntry(document.Registration.txtClientName,"Name")) return false;
    if (!ForceAlphabetic(document.Registration.txtClientName,"Name")) return false;
    ////if(!ForceDataEntry(document.Registration.txtAddress1,"Address1")) return false;
    
    ////if(!ForceDataEntry(document.Registration.txtMobile,"Mobile No.")) return false;
    if(!ForceNumericEntry(document.Registration.txtMobile, 'Mobile No.','T')) return false;
	if(!ForceNumericEntry(document.Registration.txtContactNo, 'Phone No.','F')) return false;
 }
 
 function ValidEditMemberProfile()
{
	
    
    if(!ForceComboItems(document.Registration.ddlSalutation,"Salutation")) return false;
    if(!ForceDataEntry(document.Registration.txtClientName,"Name")) return false;
    if (!ForceAlphabetic(document.Registration.txtClientName,"Name")) return false;
   // if(!ForceDataEntry(document.Registration.txtAddress1,"Address1")) return false;
    //if(!ForceDataEntry(document.Registration.txtCity,"City")) return false;
   // if(!ForceComboItems(document.Registration.country,"Country")) return false;
    
  //  if(!ForceDataEntry(document.Registration.txtPincode,"Pin Code")) return false;
    
  //  var DOBDate =document.Registration.txtDOB_dd.value + '/' + document.Registration.txtDOB_mm.value + '/' + document.Registration.txtDOB_yyyy.value;
  //  if (trimAll(DOBDate).length > 2)
  //  {
	//	if (!ForceValidDateValue(document.Registration.txtDOB_dd,DOBDate,"Date of Birth")) return false;
	//}
   // if(!ForceDataEntry(document.Registration.txtMobile,"Mobile No.")) return false;
    if(!ForceNumericEntry(document.Registration.txtMobile, 'Mobile No.','T')) return false;
	if(!ForceNumericEntry(document.Registration.txtContactNo, 'Alt. Contact No.','F')) return false;
    
 //   if(!ForceComboItems(document.Registration.ddlSecretQuestion,'Secret Question')) return false;    
  //  if(!ForceDataEntry(document.Registration.txtYourAnswer,"Your Answer")) return false;
 
 }
 
 function setCountryCode()
{
    country =document.getElementById("country").value;
    document.getElementById("txtcode").value = setCountryCode1(country);
}

function setCountryCode1(country)
{
    country_id_to_phone = new Array();
	country_id_to_phone["310"] = ""
	country_id_to_phone["321"] = ""
	country_id_to_phone["322"] = ""
	country_id_to_phone["323"] = ""
	country_id_to_phone["324"] = ""
	country_id_to_phone["326"] = ""
	country_id_to_phone["327"] = ""
	country_id_to_phone["328"] = ""
	country_id_to_phone["329"] = ""
	country_id_to_phone["330"] = ""
	country_id_to_phone["331"] = ""
	country_id_to_phone["333"] = ""
	country_id_to_phone["336"] = ""
	country_id_to_phone["334"] = "0000"
	country_id_to_phone["22"] = "1"
	country_id_to_phone["45"] = "1"
	country_id_to_phone["105"] = "1"
	country_id_to_phone["238"] = "1"
	country_id_to_phone["274"] = "1"
	country_id_to_phone["284"] = "001"
	country_id_to_phone["314"] = "1"
	country_id_to_phone["19"] = "1242"
	country_id_to_phone["6"] = "1264"
	country_id_to_phone["9"] = "1268"
	country_id_to_phone["37"] = "1284"
	country_id_to_phone["297"] = "1340"
	country_id_to_phone["47"] = "1345"
	country_id_to_phone["29"] = "1441"
	country_id_to_phone["103"] = "1473"
	country_id_to_phone["278"] = "1649"
	country_id_to_phone["189"] = "1664"
	country_id_to_phone["207"] = "1670"
	country_id_to_phone["235"] = "1758"
	country_id_to_phone["337"] = "1767"
	country_id_to_phone["237"] = "1784"
	country_id_to_phone["225"] = "1787"
	country_id_to_phone["73"] = "1809"
	country_id_to_phone["234"] = "1869"
	country_id_to_phone["147"] = "1876"
	country_id_to_phone["77"] = "20"
	country_id_to_phone["190"] = "212"
	country_id_to_phone["3"] = "213"
	country_id_to_phone["275"] = "216"
	country_id_to_phone["164"] = "218"
	country_id_to_phone["94"] = "220"
	country_id_to_phone["242"] = "221"
	country_id_to_phone["181"] = "222"
	country_id_to_phone["177"] = "223"
	country_id_to_phone["109"] = "224"
	country_id_to_phone["146"] = "225"
	country_id_to_phone["40"] = "226"
	country_id_to_phone["203"] = "227"
	country_id_to_phone["271"] = "228"
	country_id_to_phone["28"] = "229"
	country_id_to_phone["182"] = "230"
	country_id_to_phone["163"] = "231"
	country_id_to_phone["244"] = "232"
	country_id_to_phone["98"] = "233"
	country_id_to_phone["204"] = "234"
	country_id_to_phone["49"] = "235"
	country_id_to_phone["48"] = "236"
	country_id_to_phone["44"] = "237"
	country_id_to_phone["46"] = "238"
	country_id_to_phone["240"] = "239"
	country_id_to_phone["79"] = "240"
	country_id_to_phone["93"] = "241"
	country_id_to_phone["57"] = "242"
	country_id_to_phone["58"] = "243"
	country_id_to_phone["318"] = "244"
	country_id_to_phone["110"] = "245"
	country_id_to_phone["70"] = "246"
	country_id_to_phone["13"] = "247"
	country_id_to_phone["243"] = "248"
	country_id_to_phone["257"] = "249"
	country_id_to_phone["232"] = "250"
	country_id_to_phone["312"] = "251"
	country_id_to_phone["251"] = "252"
	country_id_to_phone["71"] = "253"
	country_id_to_phone["153"] = "254"
	country_id_to_phone["268"] = "255"
	country_id_to_phone["304"] = "255"
	country_id_to_phone["280"] = "256"
	country_id_to_phone["41"] = "257"
	country_id_to_phone["192"] = "258"
	country_id_to_phone["303"] = "260"
	country_id_to_phone["315"] = "261"
	country_id_to_phone["227"] = "262"
	country_id_to_phone["305"] = "263"
	country_id_to_phone["194"] = "264"
	country_id_to_phone["171"] = "265"
	country_id_to_phone["162"] = "266"
	country_id_to_phone["33"] = "267"
	country_id_to_phone["259"] = "268"
	country_id_to_phone["56"] = "269"
	country_id_to_phone["183"] = "269"
	country_id_to_phone["252"] = "27"
	country_id_to_phone["68"] = "279"
	country_id_to_phone["233"] = "290"
	country_id_to_phone["80"] = "291"
	country_id_to_phone["319"] = "297"
	country_id_to_phone["83"] = "298"
	country_id_to_phone["102"] = "299"
	country_id_to_phone["100"] = "30"
	country_id_to_phone["197"] = "31"
	country_id_to_phone["25"] = "32"
	country_id_to_phone["86"] = "33"
	country_id_to_phone["253"] = "34"
	country_id_to_phone["338"] = "34"
	country_id_to_phone["99"] = "350"
	country_id_to_phone["223"] = "351"
	country_id_to_phone["167"] = "352"
	country_id_to_phone["141"] = "353"
	country_id_to_phone["120"] = "354"
	country_id_to_phone["2"] = "355"
	country_id_to_phone["178"] = "356"
	country_id_to_phone["65"] = "357"
	country_id_to_phone["85"] = "358"
	country_id_to_phone["39"] = "359"
	country_id_to_phone["118"] = "36"
	country_id_to_phone["166"] = "370"
	country_id_to_phone["160"] = "371"
	country_id_to_phone["81"] = "372"
	country_id_to_phone["186"] = "373"
	country_id_to_phone["11"] = "374"
	country_id_to_phone["24"] = "375"
	country_id_to_phone["5"] = "376"
	country_id_to_phone["187"] = "377"
	country_id_to_phone["239"] = "378"
	country_id_to_phone["281"] = "380"
	country_id_to_phone["325"] = "381"
	country_id_to_phone["61"] = "385"
	country_id_to_phone["249"] = "386"
	country_id_to_phone["32"] = "387"
	country_id_to_phone["170"] = "389"
	country_id_to_phone["144"] = "39"
	country_id_to_phone["293"] = "39"
	country_id_to_phone["228"] = "40"
	country_id_to_phone["262"] = "41"
	country_id_to_phone["66"] = "420"
	country_id_to_phone["248"] = "421"
	country_id_to_phone["165"] = "423"
	country_id_to_phone["16"] = "43"
	country_id_to_phone["108"] = "44"
	country_id_to_phone["142"] = "44"
	country_id_to_phone["149"] = "44"
	country_id_to_phone["316"] = "44"
	country_id_to_phone["332"] = "44"
	country_id_to_phone["67"] = "45"
	country_id_to_phone["260"] = "46"
	country_id_to_phone["208"] = "47"
	country_id_to_phone["220"] = "48"
	country_id_to_phone["96"] = "49"
	country_id_to_phone["82"] = "500"
	country_id_to_phone["27"] = "501"
	country_id_to_phone["107"] = "502"
	country_id_to_phone["78"] = "503"
	country_id_to_phone["113"] = "504"
	country_id_to_phone["202"] = "505"
	country_id_to_phone["60"] = "506"
	country_id_to_phone["213"] = "507"
	country_id_to_phone["236"] = "508"
	country_id_to_phone["112"] = "509"
	country_id_to_phone["216"] = "51"
	country_id_to_phone["184"] = "52"
	country_id_to_phone["62"] = "53"
	country_id_to_phone["106"] = "53"
	country_id_to_phone["10"] = "54"
	country_id_to_phone["35"] = "55"
	country_id_to_phone["51"] = "56"
	country_id_to_phone["75"] = "56"
	country_id_to_phone["55"] = "57"
	country_id_to_phone["294"] = "58"
	country_id_to_phone["104"] = "590"
	country_id_to_phone["31"] = "591"
	country_id_to_phone["111"] = "592"
	country_id_to_phone["76"] = "593"
	country_id_to_phone["89"] = "594"
	country_id_to_phone["215"] = "595"
	country_id_to_phone["88"] = "596"
	country_id_to_phone["180"] = "596"
	country_id_to_phone["258"] = "597"
	country_id_to_phone["290"] = "598"
	country_id_to_phone["64"] = "599"
	country_id_to_phone["311"] = "599"
	country_id_to_phone["173"] = "60"
	country_id_to_phone["14"] = "61"
	country_id_to_phone["132"] = "62"
	country_id_to_phone["217"] = "63"
	country_id_to_phone["50"] = "64"
	country_id_to_phone["201"] = "64"
	country_id_to_phone["245"] = "65"
	country_id_to_phone["269"] = "66"
	country_id_to_phone["74"] = "670"
	country_id_to_phone["8"] = "672"
	country_id_to_phone["54"] = "672"
	country_id_to_phone["206"] = "6723"
	country_id_to_phone["38"] = "673"
	country_id_to_phone["195"] = "674"
	country_id_to_phone["214"] = "675"
	country_id_to_phone["273"] = "676"
	country_id_to_phone["250"] = "677"
	country_id_to_phone["292"] = "678"
	country_id_to_phone["84"] = "679"
	country_id_to_phone["211"] = "680"
	country_id_to_phone["298"] = "681"
	country_id_to_phone["59"] = "682"
	country_id_to_phone["205"] = "683"
	country_id_to_phone["4"] = "684"
	country_id_to_phone["154"] = "686"
	country_id_to_phone["200"] = "687"
	country_id_to_phone["279"] = "688"
	country_id_to_phone["90"] = "689"
	country_id_to_phone["272"] = "690"
	country_id_to_phone["185"] = "691"
	country_id_to_phone["179"] = "692"
	country_id_to_phone["151"] = "7"
	country_id_to_phone["229"] = "7"
	country_id_to_phone["148"] = "81"
	country_id_to_phone["155"] = "82"
	country_id_to_phone["295"] = "84"
	country_id_to_phone["156"] = "850"
	country_id_to_phone["114"] = "852"
	country_id_to_phone["169"] = "853"
	country_id_to_phone["313"] = "853"
	country_id_to_phone["42"] = "855"
	country_id_to_phone["159"] = "856"
	country_id_to_phone["320"] = "856"
	country_id_to_phone["52"] = "86"
	country_id_to_phone["138"] = "870"
	country_id_to_phone["134"] = "871"
	country_id_to_phone["137"] = "872"
	country_id_to_phone["136"] = "873"
	country_id_to_phone["135"] = "874"
	country_id_to_phone["21"] = "880"
	country_id_to_phone["335"] = "882"
	country_id_to_phone["264"] = "886"
	country_id_to_phone["276"] = "90"
	country_id_to_phone["121"] = "91"
	country_id_to_phone["210"] = "92"
	country_id_to_phone["1"] = "93"
	country_id_to_phone["256"] = "94"
	country_id_to_phone["193"] = "95"
	country_id_to_phone["175"] = "960"
	country_id_to_phone["161"] = "961"
	country_id_to_phone["150"] = "962"
	country_id_to_phone["263"] = "963"
	country_id_to_phone["140"] = "964"
	country_id_to_phone["157"] = "965"
	country_id_to_phone["241"] = "966"
	country_id_to_phone["299"] = "967"
	country_id_to_phone["209"] = "968"
	country_id_to_phone["289"] = "971"
	country_id_to_phone["143"] = "972"
	country_id_to_phone["212"] = "9725"
	country_id_to_phone["20"] = "973"
	country_id_to_phone["226"] = "974"
	country_id_to_phone["30"] = "975"
	country_id_to_phone["188"] = "976"
	country_id_to_phone["196"] = "977"
	country_id_to_phone["72"] = "98"
	country_id_to_phone["139"] = "98"
	country_id_to_phone["267"] = "992"
	country_id_to_phone["277"] = "993"
	country_id_to_phone["18"] = "994"
	country_id_to_phone["95"] = "995"
	country_id_to_phone["158"] = "996"
	country_id_to_phone["291"] = "998"
	country_id_to_phone["23"] = "?"
	country_id_to_phone["34"] = "?"
	country_id_to_phone["36"] = "?"
	country_id_to_phone["53"] = "?"
	country_id_to_phone["91"] = "?"
	country_id_to_phone["92"] = "?"
	country_id_to_phone["219"] = "?"
	country_id_to_phone["296"] = "?"
	
//	country =document.getElementById("country").value;
//    document.getElementById("txtcode").value = country_id_to_phone[country];
        return country_id_to_phone[country];       
}

function ForceValidDateValue(objField,objValue,strDateName)
{
     var strDateValue=objValue;
    
    // If Date is Blank, Don't Validate
    if (trimAll(strDateValue).Length <= 2) return true;
     
     //^ Splitting the date using the divider "/"
     var arrDate = strDateValue.split('/');
     
     //^ If user did not use the SEPERATOR "/" then,
     if (arrDate.length!=3)
     {
        alert("Valid Date Format is : dd/mm/yyyy");
        objField.focus();
        return false;
     }
     
     // if splitting occured using the correct SEPERATOR ("/")
     if (strDateValue.length==10)
     {
       //^ d stores date entered by user in Javascript Internal Date Format
       var d = new Date(arrDate[2], arrDate[1]-1, arrDate[0]);
     
       //Checking if the date entered is a valid Date or not
       if (!isNaN(d) && d.getFullYear()==arrDate[2] && d.getMonth()==arrDate[1]-1 && d.getDate()==arrDate[0])
       {
             return true;
       }
       else
       {
	        alert(strDateName + " is an Invalid Date., Valid Date Format is : dd/mm/yyyy");
            objField.focus();
            return false;
       }
     }
     else
     {
		alert("Valid Date Format is : dd/mm/yyyy");
        objField.focus();
        return false;
     }
}

 function ValidateUserLogin()
{
//debugger;
    //* Check for Login Name 
	if (!ForceDataEntry(document.UserLogin.txtUserId,'User Id')) return false;
	//* Check for Password
	if (!ForceDataEntry(document.UserLogin.txtPassword,'Password')) return false;
}







function CalculateBMI()
{
  
	if (!ForceDataEntry(document.BMI.FEET,'FEET')) return false;
	if (!ForceNumericEntry(document.BMI.FEET,'FEET')) return false;

	if (!ForceDataEntry(document.BMI.INCHES,'INCHES')) return false;
	if (!ForceNumericEntry(document.BMI.INCHES,'INCHES')) return false;

	if (!ForceDataEntry(document.BMI.WEIGHT,'WEIGHT')) return false;
	if (!ForceNumericEntry(document.BMI.WEIGHT,'WEIGHT')) return false;
	
					var varFeet, varInches, varWeight, varHeight, varBMI;

				if (document.BMI.FEET.value == "")
				{
					varFeet = 0;
				}
				else
				{
					varFeet = parseInt(document.BMI.FEET.value*12);
				}

				if (document.BMI.INCHES.value == "")
				{
					varInches = 0;
				}
				else
				{
					varInches = parseInt(document.BMI.INCHES.value);
				}

				if (document.BMI.WEIGHT.value == "")
				{
					varWeight = 0;
				}
				else
				{
					varWeight = parseInt(document.BMI.WEIGHT.value);
				}

				varHeight = (((varFeet + varInches)/12) * 0.3048);
				
 				varBMI = (varWeight / (varHeight * varHeight));
				

				document.BMI.BMI.value= roundNumber(varBMI, 2) ;
}


function ResetBMI()
{
  
  	document.BMI.FEET.value = "";
	document.BMI.INCHES.value = "";
	document.BMI.WEIGHT.value = "";
	document.BMI.BMI.value= "" ;
}


function CalculateBMR()
{	
	if (!ForceDataEntry(document.BMI.FEET1,'FEET')) return false;
	if (!ForceNumericEntry(document.BMI.FEET1,'FEET')) return false;

	if (!ForceDataEntry(document.BMI.INCHES1,'INCHES')) return false;
	if (!ForceNumericEntry(document.BMI.INCHES1,'INCHES')) return false;

	if (!ForceDataEntry(document.BMI.WEIGHT1,'WEIGHT')) return false;
	if (!ForceNumericEntry(document.BMI.WEIGHT1,'WEIGHT')) return false;	
	
	if (!ForceDataEntry(document.BMI.AGE1,'WEIGHT')) return false;
	if (!ForceNumericEntry(document.BMI.AGE1,'WEIGHT')) return false;	
	
	var varFeet, varInches, varWeight, varHeight, varAge, varSex, varBMR;

	if (document.BMI.FEET1.value == "")
	{
		varFeet = 0;
	}
	else
	{
		varFeet = parseInt(document.BMI.FEET1.value)*30.48;

	}

	if (document.BMI.INCHES1.value == "")
	{
		varInches = 0;
	}
	else
	{
		varInches = parseInt(document.BMI.INCHES1.value)*2.54;
	}

	if (document.BMI.WEIGHT1.value == "")
	{
		varWeight = 0;
	}
	else
	{
		varWeight = parseInt(document.BMI.WEIGHT1.value) ;
	}

	varHeight = varFeet + varInches;
	
	if (document.BMI.AGE1.value == "")
	{
		varAge = 0;
	}
	else
	{
		varAge = parseInt(document.BMI.AGE1.value);
	}

	myOption = -1;
	for (i=document.BMI.SEX1.length-1; i > -1; i--) 
	{
		if (document.BMI.SEX1[i].checked) 
		{
			myOption = i; 
			i = -1;
		}
	}
	if (myOption == -1) 
	{
		alert("You must select Gender");
		return false;
	}

	if (myOption == 1)
	{
		/* myOption = 1 for Men */
		varBMR =  66 + (13.7 * varWeight) + (5 * varHeight) - (6.8 * varAge);
	}
	else
	{
		/* myOption = 0 for Women */
		varBMR =  655 + (9.6 * varWeight) + (1.8 * varHeight) - (4.7 * varAge);
	}

	document.BMI.BMR.value= roundNumber(varBMR, 2)  ;
}

function ResetBMR()
{
  
  	document.BMI.FEET1.value = "";
	document.BMI.INCHES1.value = "";
	document.BMI.WEIGHT1.value = "";
	document.BMI.AGE1.value = "";
	document.BMI.BMR.value= "" ;
}

function CalculateBFC()
{	

	if (!ForceDataEntry(document.BMI.WEIGHT2,'WEIGHT')) return false;
	if (!ForceNumericEntry(document.BMI.WEIGHT2,'WEIGHT')) return false;	
	
	if (!ForceDataEntry(document.BMI.WAIST2,'WAIST')) return false;
	if (!ForceNumericEntry(document.BMI.WAIST2,'WAIST')) return false;	
	
	myOption = -1;
	for (i=document.BMI.SEX2.length-1; i > -1; i--) 
	{
		if (document.BMI.SEX2[i].checked) 
		{
			myOption = i; 
			i = -1;
		}
	}
	if (myOption == -1) 
	{
		alert("You must select Gender");
		return false;
	}
	
	var varWeight, varWaist, varBFC;

	if (document.BMI.WEIGHT2.value == "")
	{
		varWeight = 0;
	}
	else
	{
		varWeight = parseInt(document.BMI.WEIGHT2.value) * 2.20 ;
	}

	if (document.BMI.WAIST2.value == "")
	{
		varWaist = 0;
	}
	else
	{
		varWaist = parseInt(document.BMI.WAIST2.value) ;
	}
	
	if (myOption == 1)
	{
		/* myOption = 1 for Men */
		varBFC =   (((-98.42) + (4.15 * varWaist) - (0.082 * varWeight))/ varWeight) * 100  ;
	}
	else
	{
		/* myOption = 0 for Women */
		varBFC =  (((-76.76) + (4.15 * varWaist) - (0.082 * varWeight))/ varWeight) * 100 ;
	}

	document.BMI.BFC.value= roundNumber(varBFC, 2)  ;
}

function ResetBFC()
{
	document.BMI.WEIGHT2.value = "";
	document.BMI.WAIST2.value = "";
	document.BMI.BFC.value= "" ;
}


function ValidateContactUs()
{
	//# Validating Company Name for blank
	var name1=trimAll(document.ContactUs.name.value);
	if(name1=="")
	{
	alert("You need to enter Name");
	document.ContactUs.name.focus();
	return false;
	}
	
	if (!ForceDataEntry(trimAll(document.ContactUs.name),'Name')) return false;
		
	var email1=trimAll(document.ContactUs.email.value);
	if(email1=="")
	{
	alert("You need to enter Email Id");
	document.ContactUs.email.focus();
	return false;
	}
	//# Validating Email Address for Blank
	if (!ForceDataEntry(document.ContactUs.email, 'Email')) return false;
	
	//# Validating Email Address for Valid Format
	if (!IsEmailValid(document.ContactUs.email,'Enter proper Email')) return false;
	if (!ForceNumericEntry(document.ContactUs.phone,'Phone')) return false;
	
	var mobile1=trimAll(document.ContactUs.mobile.value);
	if(mobile1=="")
	{
	alert("You need to enter Mobile No.");
	document.ContactUs.mobile.focus();
	return false;
	}
	//# Validating Mobile No for blank
	if (!ForceDataEntry(document.ContactUs.mobile,'Mobile')) return false;
			
	//# Validating Mobile No for Numeric
	if (!ForceNumericEntry(document.ContactUs.mobile,'Mobile')) return false;
	
}

