function FormValidate ()
 {
  var flag = 0;
  var checkEmail = document.getElementById('email').value;
	if(document.getElementById('email').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}

	if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.'))) {
		alert("Please enter Correct Email Address...");
		flag = 1;
	}	
	
		if(document.getElementById('state').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}
		if(document.getElementById('province').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}
		if(document.getElementById('zip').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}
		if(document.getElementById('country').value == "NULL1"){
		alert("Please complete the all the required fields");
		flag = 1;
	}
		if(document.getElementById('comments').value == ""){
		alert("Please complete the all the required fields");
		flag = 1; 
	}
	
	if(flag == 0)
	   return true;
	else 
	   return false;
 }
function FormValidate2 ()
 {
  var flag = 0;

	}	
	
		if(document.getElementById('name').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}
		if(document.getElementById('phnum').value == ""){
		alert("Please complete the all the required fields");
		flag = 1;
	}

	
	if(flag == 0)
	   return true;
	else 
	   return false;
}

function focusField (objName) {
objName.className="FocusFormBg";
}

function unfocusField (objName) {
objName.className="DefaultFormBg";
}


