function validateCourseForm(objForm) {

	var isValid = true;	
	isFieldFocusSet = false;
	if(isEmptyValue("fatherName")){xAlert('Please enter father name','course_fatherName'); isValid=false;}
	else {xAlert('','course_fatherName');}
	if(isEmptyValue("motherName")){xAlert('Please enter mother name','course_motherName'); isValid=false;}
	else {xAlert('','course_motherName');}

	if(isEmptyValue("address1")){xAlert('Please enter first line address','course_add1'); isValid=false;}
	else {xAlert('','course_add1');}
	
	if(isEmptyValue("address2")){xAlert('Please enter second line address ','course_add2'); isValid=false;}
	else {xAlert('','course_add2');}

	
	if(isEmptyValue("city")){xAlert('Please enter the city','course_city'); isValid=false;}
	else {xAlert('','course_city');}
	
	if(isEmptyValue("state")){xAlert('Please enter state','course_state'); isValid=false;}
	else {xAlert('','course_state');}
	
	if(isEmptyValue("zipCode")){
	
	xAlert('Please enter zip','course_zipcode'); 
	isValid=false;
	
	}else if(!(isNumber("zipCode"))){
			xAlert('Please enter valid number','course_zipcode'); 
			document.getElementById("zipCode").focus();
			isValid=false;
	}
	else {xAlert('','course_zipcode');}
	
	if(isEmptyValue("country")){xAlert('Please enter country','course_country'); isValid=false;}
	else {xAlert('','course_country');}
	
	if(isEmptyValue("phoneNumber")){
	
		xAlert('Please enter phone number','course_phone');
		//alert(isNumber("phoneNumber"))
		 isValid=false;
	 }
	else if(!mobilePhoneRe.test(document.getElementById("phoneNumber").value) && !landlinePhoneRe.test(document.getElementById("phoneNumber").value)){
			xAlert('Please enter valid phone number','course_phone'); 
			document.getElementById("phoneNumber").focus();
			isValid=false;
	}
	else {xAlert('','course_phone');}
	
	
	
	
	if(isEmptyValue("nationality")){xAlert('Please enter nationality','course_nationality'); isValid=false;}
	else {xAlert('','course_nationality');}
	
	
	var qualificationField = document.getElementById("qualification");
	var selQualification = qualificationField[qualificationField.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(selQualification == '0'){
		xAlert('Please enter qualification','course_qualification'); isValid=false;
	}else{
		xAlert('','course_qualification');
	}
	
	
	var interestField = document.getElementById("interest");
	var selInterest = interestField[interestField.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(selInterest == '0'){
		xAlert('Please enter your interest','course_interest'); isValid=false;
	}else{
		xAlert('','course_interest');
	}
	
	
	var howDidUHearField = document.getElementById("howDidUHear");
	var selHowDidUHear = howDidUHearField[howDidUHearField.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(selHowDidUHear == '0'){
		xAlert('How did you hear?','course_howDidUHear'); isValid=false;
	}else{
		xAlert('','course_howDidUHear');
	}
	
/*Validate education start*/
	if(isEmptyValue("sec_institutionName")){xAlert('Please enter Institute Name','course_sec_institutionName'); isValid=false;}
	else {xAlert('','course_sec_institutionName');}
	if(isEmptyValue("sec_address")){xAlert('Please enter address','course_sec_address'); isValid=false;}
	else {xAlert('','course_sec_address');}
	if(isEmptyValue("sec_university")){xAlert('Please enter university name','course_sec_university'); isValid=false;}
	else {xAlert('','course_sec_university');}
	if(isEmptyValue("sec_specialisation")){xAlert('Please enter Specialization ','course_sec_specialisation'); isValid=false;}
	else {xAlert('','course_sec_specialisation');}
	if(isEmptyValue("sec_degreeName")){xAlert('Please enter degree','course_sec_degreeName'); isValid=false;}
	else {xAlert('','course_sec_degreeName');}
	if(isEmptyValue("sec_marks")){xAlert('Please enter marks','course_sec_marks'); isValid=false;}
	else {xAlert('','course_sec_marks');}
	
	if(isEmptyValue("postSec_institutionName")){xAlert('Please enter Institute Name','course_postSec_institutionName'); isValid=false;}
	else {xAlert('','course_postSec_institutionName');}
	if(isEmptyValue("postSec_address")){xAlert('Please enter address','course_postSec_address'); isValid=false;}
	else {xAlert('','course_postSec_address');}
	if(isEmptyValue("postSec_university")){xAlert('Please enter university name','course_postSec_university'); isValid=false;}
	else {xAlert('','course_postSec_university');}
	if(isEmptyValue("postSec_specialisation")){xAlert('Please enter Specialization ','course_postSec_specialisation'); isValid=false;}
	else {xAlert('','course_postSec_specialisation');}
	if(isEmptyValue("postSec_degreeName")){xAlert('Please enter degree','course_postSec_degreeName'); isValid=false;}
	else {xAlert('','course_postSec_degreeName');}
	if(isEmptyValue("postSec_marks")){xAlert('Please enter marks','course_postSec_marks'); isValid=false;}
	else {xAlert('','course_postSec_marks');}
	

	
	/*if(isEmptyValue("accommodation")){xAlert('Please fill this field','course_accommodation'); isValid=false;}
	else {xAlert('','course_accommodation');}
	
	if(isEmptyValue("assistance")){xAlert('Please fill this field','course_assistance'); isValid=false;}
	else {xAlert('','course_assistance');}*/
	
	
		
	var financeField = document.getElementById("finance");
	var selFinance = financeField[financeField.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(selFinance == '0'){
		xAlert('Please fill this field','course_finance'); isValid=false;
	}else{
		xAlert('','course_finance');
	}
	
	
	
	if(isEmptyValue("captchaStr")){xAlert('Please enter security code','user_captcha'); isValid=false;}	
	else {xAlert('','user_captcha');}	
	
	
	return  isValid;
	

}
function validateRequestBrochureform(objForm) {

	var isValid = true;	
	isFieldFocusSet = false;
	if(isEmptyValue("firstName")){xAlert('Please enter first name','course_firstName'); isValid=false;}
	else {xAlert('','course_firstName');}
	if(isEmptyValue("familyName")){xAlert('Please enter family name','course_familyName'); isValid=false;}
	else {xAlert('','course_familyName');}
	if(isEmptyValue("emailAddress")){xAlert('Please enter email','course_emailAddress'); isValid=false;}	
	else {xAlert('','course_emailAddress');}	
	if(!emailCheck("emailAddress")){xAlert('Please enter valid email ','course_emailAddress');
	  	document.getElementById("emailAddress").focus();
	  	isValid=false;}	
	else {xAlert('','user_email');}		
	if(isEmptyValue("address1")){xAlert('Please enter first line address','course_address1'); isValid=false;}
	else {xAlert('','course_address1');}
	
	if(isEmptyValue("address2")){xAlert('Please enter second line address ','course_address2'); isValid=false;}
	else {xAlert('','course_address2');}

	
	if(isEmptyValue("city")){xAlert('Please enter the city','course_city'); isValid=false;}
	else {xAlert('','course_city');}
	
	if(isEmptyValue("state")){xAlert('Please enter state','course_state'); isValid=false;}
	else {xAlert('','course_state');}
	
	var countryField = document.getElementById("country");
	var country = countryField[countryField.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(country == '0'){
		xAlert('Please select country','course_country'); isValid=false;
	}else{
		xAlert('','course_country');
	}
		
	if(isEmptyValue("zipCode")){
		xAlert('Please enter zip','course_zipcode'); 
	}else{
		xAlert('','course_zipcode');
	}
	if(isEmptyValue("nationality")){xAlert('Please enter nationality','course_nationality'); isValid=false;}
	else {xAlert('','course_nationality');}	

	var subject1Field = document.getElementById("subject1");
	var subject1 = subject1Field[subject1Field.selectedIndex].value;
	//alert('selGender .. '+selGender);
	if(subject1 == '0'){
		xAlert('Please select subject1','course_subject1'); isValid=false;
	}else{
		xAlert('','course_subject1');
	}

	var CmbHearField = document.getElementById("CmbHear");
	var CmbHear = CmbHearField[CmbHearField.selectedIndex].value;	
	if(CmbHear == '0'){
		xAlert('Please select How did you hear about WWI','course_CmbHear'); isValid=false;
	}else{
		xAlert('','course_CmbHear');
	}	
		
	if(isEmptyValue("captchaStr")){xAlert('Please enter security code','user_captcha'); isValid=false;}	
	else {xAlert('','user_captcha');}	
	
	return  isValid;
}	

function isNumber(numeric) {

	var number = document.getElementById(numeric).value;
	
	var RegExp = /^(-)?(\d*)(\.?)(\d*)$/;
	var num = number.match(RegExp)
	

	return num;
	
	

}
