function checkForm(obj) {

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

 if((obj.your_emails.value.length >= 0) && (!email_check.test(obj.your_emails.value)) ) {
	alert("Please enter valid email-id");
	obj.your_emails.value="";
	obj.your_emails.focus();
	return false;
}
else{
	return true;
}
	
}


function validate_login_form() {
	var pb=document.signin_form;
	var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if((pb.email.value.length >= 0) && (!email_check.test(pb.email.value))) {	
		alert("Please enter your Valid Email ID");
		pb.email.value = "";
		pb.email.focus();
		return false;
	}
	
	if (pb.pwd.value == 0 || pb.pwd.value == "Your Password *") {
		alert("Please enter your password");
		pb.pwd.value = "";
		pb.pwd.focus();
		return false;
	}	
}


function validate_forgot_password() {
	var pb=document.forgot_password;
	
	var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if((pb.femail.value.length >= 0) && (!email_check.test(pb.femail.value)) ) {	
		alert("Please enter your Valid Email ID");
		pb.femail.value = "";
		pb.femail.focus();
		return false;
	}
}



function newsletter_validate() {
	var pb=document.newsletter;
	
	if (pb.name.value == 0 || pb.name.value == "Enter Your Name") {
		alert("Please enter your name");
		pb.name.focus();
		return false;
	}
	
	var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;	
	if((pb.email.value.length >= 0) && (!email_check.test(pb.email.value))) {
		alert("Please enter a valid Email ID");
		pb.email.focus();
		return false;
	}
}


function validate_change_password_form() {
	var pb=document.change_password_form;
	
	if (pb.opwd.value==0) {
		alert("Please enter your old password");
		pb.opwd.focus();
		return false;
	}
	else if (pb.npwd.value == 0) {
		alert("Please enter your new password");
		pb.npwd.focus();
		return false;
	}
	else if (pb.npwd.value.length < 6) {
		alert("Please enter a valid password [Minimum 6 characters]");
		pb.npwd.focus();
		return false;
	}
	else if (pb.cpwd.value == 0) {
		alert("Please confirm your new password");
		pb.cpwd.focus();
		return false;
	}
	else if (pb.npwd.value != pb.cpwd.value) {
		alert("Confirm Password does not match");
		pb.cpwd.focus();
		return false;
	}
	else{
		return true;
	}
}


function validate_manage_members() {
	var pb=document.manage_members;
	var name_check = /^([a-zA-Z\s])+([\s])*([a-zA-Z\s])*$/;
	
	if (pb.title.value==0) {
		alert("Please select your title");
		pb.title.focus();
		return false;
	}
	
	if (pb.firstName.value==0) {
		alert("Please enter your first name");
		pb.firstName.focus();
		return false;
	}
	if(!name_check.test(pb.firstName.value)) {
		alert("First name should be in alphabets only");
		pb.firstName.focus();
		return false;
	}
	
	if (pb.lastName.value==0) {
		alert("Please enter your last name");
		pb.lastName.focus();
		return false;
	}
	if(!name_check.test(pb.lastName.value)) {
		alert("Last name should be in alphabets only");
		pb.lastName.focus();
		return false;
	}
	
	if (pb.address.value==0) {
		alert("Please enter your billing address");
		pb.address.focus();
		return false;
	}
	
	if (pb.city.value==0) {
		alert("Please enter your billing city");
		pb.city.focus();
		return false;
	}
	
	if (pb.country.value==0) {
		alert("Please select your billing country");
		pb.country.focus();
		return false;
	}
	
	if (pb.addressShip.value==0) {
		alert("Please enter your shipping address");
		pb.addressShip.focus();
		return false;
	}
	
	if (pb.cityShip.value==0) {
		alert("Please enter your shipping city");
		pb.cityShip.focus();
		return false;
	}
	
	if (pb.countryShip.value==0) {
		alert("Please select your shipping country");
		pb.countryShip.focus();
		return false;
	}
	
	var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if((pb.email.value.length >= 0) && (!email_check.test(pb.email.value))) {
		alert("Please enter a valid Email ID");
		pb.email.focus();
		return false;
	}
	
	if (pb.pwd.value.length < 6) {
		alert("Please enter a valid password [Minimum 6 characters]");
		pb.pwd.focus();
		return false;
	}
	
	if (pb.pwd.value != pb.cpwd.value) {
		alert("Confirm Password does not match");
		pb.cpwd.focus();
		return false;
	}
}


function validate_send_email_form() {
	var pb=document.send_email_form;
	
	var name_check = /^([a-zA-Z\s])+([\s])*([a-zA-Z\s])*$/;	
	if((pb.your_name.value.length >= 0) && (!name_check.test(pb.your_name.value))) {
		alert("Please enter your name, should be in alphabets only");
		pb.your_name.focus();
		return false;
	}
	
	var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if((pb.your_email.value.length >= 0) && (!email_check.test(pb.your_email.value))) {
		alert("Please enter a valid email id");
		pb.your_email.focus();
		return false;
	}
	
	if((pb.friend_name.value.length >= 0) && (!name_check.test(pb.friend_name.value))) {
		alert("Please enter your friend's name, should be in alphabets only");
		pb.friend_name.focus();
		return false;
	}
	
	if((pb.friend_email.value.length >= 0) && (!email_check.test(pb.friend_email.value))) {
		alert("Please enter a valid email id of your friend");
		pb.friend_email.focus();
		return false;
	}
}


function filldata() {
	var f1=document.manage_members;
  if(f1.chk.checked==1) {
	  f1.addressShip.value=f1.address.value;
	  f1.cityShip.value=f1.city.value;
	  f1.zipcodeShip.value=f1.zipcode.value;
	  f1.stateShip.value=f1.state.value;
	  f1.countryShip.value=f1.country.value;
	  f1.phoneShip.value=f1.phone.value;	  
  }
  else{
	  f1.addressShip.value="";
	  f1.cityShip.value="";
	  f1.zipcodeShip.value="";
	  f1.stateShip.value="";
	  f1.countryShip.value="";
	  f1.phoneShip.value="";
  }
}


function submit_form(formName, url, hiddenAttribute1, useId1, hiddenAttribute2, useId2) {
	var useId=document.getElementById(useId2).value;
	document.getElementById(hiddenAttribute1).value=useId1;
	document.getElementById(hiddenAttribute2).value=useId;
	document.getElementById(formName).action =url;
	document.getElementById(formName).submit();
	return true;	
}


function validate_keyword_search() {
	var pb=document.keyword_search;
	if (pb.keyword.value==0 || pb.keyword.value=="Enter Keyword") {
		alert("Please enter search keyword");
		pb.keyword.focus();
		return false;
	}
}
function checkallsa(){
	var frm=document.shopping_cart_form;
	//var frm=obj;
	var count = frm.elements.length;
	
			if(document.shopping_cart_form.chk.checked == 0){
				for (i=0; i < count; i++){
					if(frm.elements[i].type=="checkbox"){
						frm.elements[i].checked = 0;
						
						document.shopping_cart_form.chk.checked=0;
					}
				}
			} 
			if(document.shopping_cart_form.chk.checked == 1 ){
				for (i=0; i < count; i++){
					if(frm.elements[i].type=="checkbox"){
						frm.elements[i].checked = 1;
						
						document.shopping_cart_form.chk.checked=1;
					}
				}
			} 
	
}
function atleastone(){
	var frm=document.shopping_cart_form;
	count = frm.elements.length;
	var c=0;
	for (i=0; i < count; i++){
		if(frm.elements[i].type=="checkbox"){
			if(frm.elements[i].checked == 1){
				c = 1;
			}
		}
	}
	if(c == 0){
		alert('Please select a product to remove ...');
		return false;
	}
}
function checkQty(len){
	var numericExpression = /^[1-90-9]+$/;

		for(var x=1;x<len;x++){
				if(document.getElementById('qty_'+x).value==""){
					alert("Please enter product quantity");
					document.getElementById('qty_'+x).focus();
					return false;
					break;
				}
				else if(document.getElementById('qty_'+x).value<=0){
					alert("Please enter quantity must be numeric and greater than 0");
					document.getElementById('qty_'+x).focus();
					return false;
					break;
				}else if(!document.getElementById('qty_'+x).value.match(numericExpression)){
					alert("Product quantity must be numeric and greater than 0");
					document.getElementById('qty_'+x).focus();
					return false;
					break;
				}
		}//
		//isNaN(document.getElementById('qty_'+x).value)
	
		//Please enter quantity~DM~NUM~Quantity must be numeric and greater than 0
}



function validateFormss(obj) {
var alphaExp = /^[a-z A-Z]+$/;
var numericExpression = /^[0-9 0-9]+$/;
var alphanumeExp = /^[a-z A-Z 0-9]+$/;

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if((obj.email.value.length >= 0) && (!email_check.test(obj.email.value))) {
	alert("Please enter a valid Email ID");
	obj.email.focus();
	return false;
}
else if (obj.pwd.value=="") {
	alert("Please enter your password");
	obj.pwd.focus();
	return false;
}	
else if (obj.conpwd.value=="") {
	alert("Please confirm your password");
	obj.conpwd.focus();
	return false;
}	
else if (obj.conpwd.value != obj.pwd.value) {
	alert("Confirm Password and Password must be same");
	obj.conpwd.focus();
	return false;
}	
else if (obj.firstName.value=="") {
	alert("Please enter billing first name");
	obj.firstName.focus();
	return false;
}	
else if (!obj.firstName.value.match(alphaExp)) {
	alert("Billing first name should be in alphabets only");
	obj.firstName.focus();
	return false;
}
else if (obj.lastName.value=="") {
	alert("Please enter billing last name");
	obj.lastName.focus();
	return false;
}	
else if (!obj.lastName.value.match(alphaExp)) {
	alert("Billing last name should be in alphabets only");
	obj.lastName.focus();
	return false;
}
else if(obj.address.value == ""){
	alert("Please enter your billing street address");
	obj.address.focus();
	return false;	
}
else if (obj.zipcode.value.length < 2 || obj.zipcode.value.length >20) {
		alert("Please enter a valid billing post code number");
		obj.zipcode.focus();
		return false;
	}
else if (!obj.zipcode.value.match(alphanumeExp)) {
		alert("Billing post code number should be alphanumeric only");
		obj.zipcode.focus();
		return false;
}
else if(obj.city.value == ""){
	alert("Please enter your billing city");
	obj.city.focus();
	return false;	
}
else if (!obj.city.value.match(alphaExp)) {
	alert("Billing city name should be in alphabets only");
	obj.city.focus();
	return false;
}
/*else if(obj.state.value ==""){
	alert("Please enter your billing state");
	obj.state.focus();
	return false;	
}
else if (!obj.state.value.match(alphaExp)) {
	alert("Billing state name should be in alphabets only");
	obj.state.focus();
	return false;
}*/
else if(obj.country.value == ""){
	alert("Please select your billing country");
	obj.country.focus();
	return false;	
}
else if (obj.phone.value.length < 6 || obj.phone.value.length > 20) {
		alert("Please enter a valid billing telephone number");
		obj.phone.focus();
		return false;
}
else if (!obj.phone.value.match(alphanumeExp)) {
		alert("Billing telephone number should be alphanumeric only");
		obj.phone.focus();
		return false;
}
else if (obj.firstNameShip.value=="") {
	alert("Please enter shipping first name");
	obj.firstNameShip.focus();
	return false;
}	
else if (!obj.firstNameShip.value.match(alphaExp)) {
	alert("Shipping first name should be in alphabets only");
	obj.firstNameShip.focus();
	return false;
}
else if (obj.lastNameShip.value=="") {
	alert("Please enter shipping last name");
	obj.lastNameShip.focus();
	return false;
}	
else if (!obj.lastNameShip.value.match(alphaExp)) {
	alert("Shipping last name should be in alphabets only");
	obj.lastNameShip.focus();
	return false;
}
else if(obj.addressShip.value == ""){
	alert("Please enter your shipping street address");
	obj.addressShip.focus();
	return false;	
}
else if (obj.zipcodeShip.value.length < 2 || obj.zipcodeShip.value.length > 20) {
		alert("Please enter a valid shipping post code number");
		obj.zipcodeShip.focus();
		return false;
}
else if (!obj.zipcodeShip.value.match(alphanumeExp)) {
		alert("Shipping post code number should be alphanumeric only");
		obj.zipcodeShip.focus();
		return false;
}
else if(obj.cityShip.value == ""){
	alert("Please enter your shipping city");
	obj.cityShip.focus();
	return false;	
}
else if (!obj.cityShip.value.match(alphaExp)) {
	alert("Shipping city name should be in alphabets only");
	obj.cityShip.focus();
	return false;
}
/*else if(obj.stateShip.value ==""){
	alert("Please enter your shipping state");
	obj.stateShip.focus();
	return false;	
}
else if (!obj.stateShip.value.match(alphaExp)) {
	alert("Shipping state name should be in alphabets only");
	obj.stateShip.focus();
	return false;
}*/
else if(obj.countryShip.value == ""){
	alert("Please select your shipping country");
	obj.countryShip.focus();
	return false;	
}
else if (obj.phoneShip.value.length < 6 || obj.phoneShip.value.length > 20) {
		alert("Please enter a valid shipping telephone number");
		obj.phoneShip.focus();
		return false;
}
else if (!obj.phoneShip.value.match(alphanumeExp)) {
		alert("Shipping telephone number should be alphanumeric only");
		obj.phoneShip.focus();
		return false;
}
else{
	return true;
}
	
}



function showsame(){


if(document.register.shows.checked==true){

document.getElementById("firstNameShip").value=document.getElementById("firstName").value;
document.getElementById("lastNameShip").value=document.getElementById("lastName").value;
document.getElementById("addressShip").value=document.getElementById("address").value;
document.getElementById("zipcodeShip").value=document.getElementById("zipcode").value;
document.getElementById("cityShip").value=document.getElementById("city").value;
document.getElementById("stateShip").value=document.getElementById("state").value;
document.getElementById("countryShip").value=document.getElementById("country").value;
document.getElementById("phoneShip").value=document.getElementById("phone").value;
document.getElementById("faxShip").value=document.getElementById("fax").value;

}else{

document.getElementById("firstNameShip").value="";
document.getElementById("lastNameShip").value="";
document.getElementById("addressShip").value="";
document.getElementById("zipcodeShip").value="";
document.getElementById("cityShip").value="";
document.getElementById("stateShip").value="";
document.getElementById("countryShip").value="";
document.getElementById("phoneShip").value="";
document.getElementById("faxShip").value="";
}

}

function checkProDetails(obj){

if(document.getElementById('pro_size_color_id').value==""){
	alert("Please select size - color");
	document.getElementById('pro_size_color_id').focus();
	return false;
}
else if(obj.pquantity.value <="0" ){ 
	alert("Out of stock Pleaer choose another option.");
	obj.pro_size_color_id.focus();
	return false;
}
else{ 
	return true;
	
}

}


function validateFormsEdit(obj) {
var alphaExp = /^[a-z A-Z]+$/;
var numericExpression = /^[0-9 0-9]+$/;
var alphanumeExp = /^[a-z A-Z 0-9]+$/;

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if (obj.firstName.value=="") {
	alert("Please enter billing first name");
	obj.firstName.focus();
	return false;
}	
else if (!obj.firstName.value.match(alphaExp)) {
	alert("Billing first name should be in alphabets only");
	obj.firstName.focus();
	return false;
}
else if (obj.lastName.value=="") {
	alert("Please enter billing last name");
	obj.lastName.focus();
	return false;
}	
else if (!obj.lastName.value.match(alphaExp)) {
	alert("Billing last name should be in alphabets only");
	obj.lastName.focus();
	return false;
}
else if(obj.address.value == ""){
	alert("Please enter your billing street address");
	obj.address.focus();
	return false;	
}
else if (obj.zipcode.value.length < 2 || obj.zipcode.value.length >20) {
		alert("Please enter a valid billing post code number");
		obj.zipcode.focus();
		return false;
	}
else if (!obj.zipcode.value.match(alphanumeExp)) {
		alert("Billing post code number should be alphanumeric only");
		obj.zipcode.focus();
		return false;
	}
else if(obj.city.value == ""){
	alert("Please enter your billing city");
	obj.city.focus();
	return false;	
}
else if (!obj.city.value.match(alphaExp)) {
	alert("Billing city name should be in alphabets only");
	obj.city.focus();
	return false;
}
/*else if(obj.state.value ==""){
	alert("Please enter your billing state");
	obj.state.focus();
	return false;	
}
else if (!obj.state.value.match(alphaExp)) {
	alert("Billing state name should be in alphabets only");
	obj.state.focus();
	return false;
}*/
else if(obj.country.value == ""){
	alert("Please select your billing country");
	obj.country.focus();
	return false;	
}
else if (obj.phone.value.length < 6 || obj.phone.value.length > 20) {
		alert("Please enter a valid billing telephone number");
		obj.phone.focus();
		return false;
}
else if (!obj.phone.value.match(alphanumeExp)) {
		alert("Billing telephone number should be alphanumeric only");
		obj.phone.focus();
		return false;
}
else if (obj.firstNameShip.value=="") {
	alert("Please enter shipping first name");
	obj.firstNameShip.focus();
	return false;
}	
else if (!obj.firstNameShip.value.match(alphaExp)) {
	alert("Shipping first name should be in alphabets only");
	obj.firstNameShip.focus();
	return false;
}
else if (obj.lastNameShip.value=="") {
	alert("Please enter shipping last name");
	obj.lastNameShip.focus();
	return false;
}	
else if (!obj.lastNameShip.value.match(alphaExp)) {
	alert("Shipping last name should be in alphabets only");
	obj.lastNameShip.focus();
	return false;
}
else if(obj.addressShip.value == ""){
	alert("Please enter your shipping street address");
	obj.addressShip.focus();
	return false;	
}
else if (obj.zipcodeShip.value.length < 2 || obj.zipcodeShip.value.length > 20) {
		alert("Please enter a valid shipping post code number");
		obj.zipcodeShip.focus();
		return false;
}
else if (!obj.zipcodeShip.value.match(alphanumeExp)) {
		alert("Shipping post code number should be alphanumeric only");
		obj.zipcodeShip.focus();
		return false;
}
else if(obj.cityShip.value == ""){
	alert("Please enter your shipping city");
	obj.cityShip.focus();
	return false;	
}
else if (!obj.cityShip.value.match(alphaExp)) {
	alert("Shipping city name should be in alphabets only");
	obj.cityShip.focus();
	return false;
}
/*else if(obj.stateShip.value ==""){
	alert("Please enter your shipping state");
	obj.stateShip.focus();
	return false;	
}
else if (!obj.stateShip.value.match(alphaExp)) {
	alert("Shipping state name should be in alphabets only");
	obj.stateShip.focus();
	return false;
}*/
else if(obj.countryShip.value == ""){
	alert("Please select your shipping country");
	obj.countryShip.focus();
	return false;	
}
else if (obj.phoneShip.value.length < 6 || obj.phoneShip.value.length > 20) {
		alert("Please enter a valid shipping telephone number");
		obj.phoneShip.focus();
		return false;
}
else if (!obj.phoneShip.value.match(alphanumeExp)) {
		alert("Shipping telephone number should be alphanumeric only");
		obj.phoneShip.focus();
		return false;
}
else{
	return true;
}
	
}



function validateFormsCheckout(obj) {
var alphaExp = /^[a-z A-Z]+$/;
var numericExpression = /^[0-9 0-9]+$/;
var alphanumeExp = /^[a-z A-Z 0-9]+$/;

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if((obj.email.value.length >= 0) && (!email_check.test(obj.email.value))) {
	alert("Please enter a valid Email ID");
	obj.email.focus();
	return false;
}
else if (obj.firstName.value=="") {
	alert("Please enter billing first name");
	obj.firstName.focus();
	return false;
}	
else if (!obj.firstName.value.match(alphaExp)) {
	alert("Billing first name should be in alphabets only");
	obj.firstName.focus();
	return false;
}
else if (obj.lastName.value=="") {
	alert("Please enter billing last name");
	obj.lastName.focus();
	return false;
}	
else if (!obj.lastName.value.match(alphaExp)) {
	alert("Billing last name should be in alphabets only");
	obj.lastName.focus();
	return false;
}
else if(obj.address.value == ""){
	alert("Please enter your billing street address");
	obj.address.focus();
	return false;	
}
else if (obj.zipcode.value.length < 2 || obj.zipcode.value.length >20) {
		alert("Please enter a valid billing post code number");
		obj.zipcode.focus();
		return false;
	}
else if (!obj.zipcode.value.match(alphanumeExp)) {
		alert("Billing post code number should be alphanumeric only");
		obj.zipcode.focus();
		return false;
	}
else if(obj.city.value == ""){
	alert("Please enter your billing city");
	obj.city.focus();
	return false;	
}
else if (!obj.city.value.match(alphaExp)) {
	alert("Billing city name should be in alphabets only");
	obj.city.focus();
	return false;
}
/*else if(obj.state.value ==""){
	alert("Please enter your billing state");
	obj.state.focus();
	return false;	
}
else if (!obj.state.value.match(alphaExp)) {
	alert("Billing state name should be in alphabets only");
	obj.state.focus();
	return false;
}*/
else if(obj.country.value == ""){
	alert("Please select your billing country");
	obj.country.focus();
	return false;	
}
else if (obj.phone.value.length < 6 || obj.phone.value.length > 20) {
		alert("Please enter a valid billing telephone number");
		obj.phone.focus();
		return false;
}
else if (!obj.phone.value.match(alphanumeExp)) {
		alert("Billing telephone number should be alphanumeric only");
		obj.phone.focus();
		return false;
}
else if (obj.firstNameShip.value=="") {
	alert("Please enter shipping first name");
	obj.firstNameShip.focus();
	return false;
}	
else if (!obj.firstNameShip.value.match(alphaExp)) {
	alert("Shipping first name should be in alphabets only");
	obj.firstNameShip.focus();
	return false;
}
else if (obj.lastNameShip.value=="") {
	alert("Please enter shipping last name");
	obj.lastNameShip.focus();
	return false;
}	
else if (!obj.lastNameShip.value.match(alphaExp)) {
	alert("Shipping last name should be in alphabets only");
	obj.lastNameShip.focus();
	return false;
}
else if(obj.addressShip.value == ""){
	alert("Please enter your shipping street address");
	obj.addressShip.focus();
	return false;	
}
else if (obj.zipcodeShip.value.length < 2 || obj.zipcodeShip.value.length > 20) {
		alert("Please enter a valid shipping post code number");
		obj.zipcodeShip.focus();
		return false;
}
else if (!obj.zipcodeShip.value.match(alphanumeExp)) {
		alert("Shipping post code number should be alphanumeric only");
		obj.zipcodeShip.focus();
		return false;
}
else if(obj.cityShip.value == ""){
	alert("Please enter your shipping city");
	obj.cityShip.focus();
	return false;	
}
else if (!obj.cityShip.value.match(alphaExp)) {
	alert("Shipping city name should be in alphabets only");
	obj.cityShip.focus();
	return false;
}
/*else if(obj.stateShip.value ==""){
	alert("Please enter your shipping state");
	obj.stateShip.focus();
	return false;	
}
else if (!obj.stateShip.value.match(alphaExp)) {
	alert("Shipping state name should be in alphabets only");
	obj.stateShip.focus();
	return false;
}*/
else if(obj.countryShip.value == ""){
	alert("Please select your shipping country");
	obj.countryShip.focus();
	return false;	
}
else if (obj.phoneShip.value.length < 6 || obj.phoneShip.value.length > 20) {
		alert("Please enter a valid shipping telephone number");
		obj.phoneShip.focus();
		return false;
}
else if (!obj.phoneShip.value.match(alphanumeExp)) {
		alert("Shipping telephone number should be alphanumeric only");
		obj.phoneShip.focus();
		return false;
}
else{
	return true;
}
	
}



function validateFormsCheck(obj) {
var alphaExp = /^[a-z A-Z]+$/;
var numericExpression = /^[0-9 0-9]+$/;
var alphanumeExp = /^[a-z A-Z 0-9]+$/;

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;

if((obj.email.value.length >= 0) && (!email_check.test(obj.email.value))) {
	alert("Please enter a valid Email ID");
	obj.email.focus();
	return false;
}
else if (obj.firstName.value=="") {
	alert("Please enter billing first name");
	obj.firstName.focus();
	return false;
}	
else if (!obj.firstName.value.match(alphaExp)) {
	alert("Billing first name should be in alphabets only");
	obj.firstName.focus();
	return false;
}
else if (obj.lastName.value=="") {
	alert("Please enter billing last name");
	obj.lastName.focus();
	return false;
}	
else if (!obj.lastName.value.match(alphaExp)) {
	alert("Billing last name should be in alphabets only");
	obj.lastName.focus();
	return false;
}
else if(obj.address.value == ""){
	alert("Please enter your billing street address");
	obj.address.focus();
	return false;	
}
else if (obj.zipcode.value.length < 2 || obj.zipcode.value.length >20) {
		alert("Please enter a valid billing post code number");
		obj.zipcode.focus();
		return false;
	}
else if (!obj.zipcode.value.match(alphanumeExp)) {
		alert("Billing post code number should be alphanumeric only");
		obj.zipcode.focus();
		return false;
	}
else if(obj.city.value == ""){
	alert("Please enter your billing city");
	obj.city.focus();
	return false;	
}
else if (!obj.city.value.match(alphaExp)) {
	alert("Billing city name should be in alphabets only");
	obj.city.focus();
	return false;
}
/*else if(obj.state.value ==""){
	alert("Please enter your billing state");
	obj.state.focus();
	return false;	
}
else if (!obj.state.value.match(alphaExp)) {
	alert("Billing state name should be in alphabets only");
	obj.state.focus();
	return false;
}*/
else if(obj.country.value == ""){
	alert("Please select your billing country");
	obj.country.focus();
	return false;	
}
else if (obj.phone.value.length < 6 || obj.phone.value.length > 20) {
		alert("Please enter a valid billing telephone number");
		obj.phone.focus();
		return false;
}
else if (!obj.phone.value.match(alphanumeExp)) {
		alert("Billing telephone number should be alphanumeric only");
		obj.phone.focus();
		return false;
}
else if (obj.firstNameShip.value=="") {
	alert("Please enter shipping first name");
	obj.firstNameShip.focus();
	return false;
}	
else if (!obj.firstNameShip.value.match(alphaExp)) {
	alert("Shipping first name should be in alphabets only");
	obj.firstNameShip.focus();
	return false;
}
else if (obj.lastNameShip.value=="") {
	alert("Please enter shipping last name");
	obj.lastNameShip.focus();
	return false;
}	
else if (!obj.lastNameShip.value.match(alphaExp)) {
	alert("Shipping last name should be in alphabets only");
	obj.lastNameShip.focus();
	return false;
}
else if(obj.addressShip.value == ""){
	alert("Please enter your shipping street address");
	obj.addressShip.focus();
	return false;	
}
else if (obj.zipcodeShip.value.length < 2 || obj.zipcodeShip.value.length > 20) {
		alert("Please enter a valid shipping post code number");
		obj.zipcodeShip.focus();
		return false;
}
else if (!obj.zipcodeShip.value.match(alphanumeExp)) {
		alert("Shipping post code number should be alphanumeric only");
		obj.zipcodeShip.focus();
		return false;
}
else if(obj.cityShip.value == ""){
	alert("Please enter your shipping city");
	obj.cityShip.focus();
	return false;	
}
else if (!obj.cityShip.value.match(alphaExp)) {
	alert("Shipping city name should be in alphabets only");
	obj.cityShip.focus();
	return false;
}
/*else if(obj.stateShip.value ==""){
	alert("Please enter your shipping state");
	obj.stateShip.focus();
	return false;	
}
else if (!obj.stateShip.value.match(alphaExp)) {
	alert("Shipping state name should be in alphabets only");
	obj.stateShip.focus();
	return false;
}*/
else if(obj.countryShip.value == ""){
	alert("Please select your shipping country");
	obj.countryShip.focus();
	return false;	
}
else if (obj.phoneShip.value.length < 6 || obj.phoneShip.value.length > 20) {
		alert("Please enter a valid shipping telephone number");
		obj.phoneShip.focus();
		return false;
}
else if (!obj.phoneShip.value.match(alphanumeExp)) {
		alert("Shipping telephone number should be alphanumeric only");
		obj.phoneShip.focus();
		return false;
}
else{
	return true;
}
	
}


function validate_career_form(obj) {
var alphaExp = /^[a-z A-Z]+$/;
var numericExpression = /^[0-9 0-9]+$/;
var alphanumeExp = /^[a-z A-Z 0-9]+$/;

var email_check = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
if (obj.firstName.value==0) {
	alert("Please enter your first name");
	obj.firstName.focus();
	return false;
}
else if (!obj.firstName.value.match(alphaExp)) {
	alert("First name should be in alphabets only");
	obj.firstName.focus();
	return false;
}
else if (obj.lastName.value==0) {
	alert("Please enter your last name");
	obj.lastName.focus();
	return false;
}
else if (!obj.lastName.value.match(alphaExp)) {
	alert("Last name should be in alphabets only");
	obj.lastName.focus();
	return false;
}
else if (obj.address.value==0) {
	alert("Please enter your street address");
	obj.address.focus();
	return false;
}
else if (obj.country.value==0) {
	alert("Please select your country");
	obj.country.focus();
	return false;
}
else if((obj.email.value.length >= 0) && (!email_check.test(obj.email.value))) {
	alert("Please enter a valid Email ID");
	obj.email.focus();
	return false;
}
else if (obj.cv_file.value=="") {
	alert("Please upload your cv");
	obj.cv_file.focus();
	return false;
}
else{
	return true;
}
	
}


