// JavaScript Document
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function validate(){
	if (document.friend_form.name.value==""){
			alert('Please enter your name.');
			document.friend_form.name.focus();
			return false;
		}
		
		if (document.friend_form.email.value==""){
			alert('Please enter your Email');
			document.friend_form.email.focus();
			return false;
		}
		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.friend_form.email.value)){
		alert('Please enter a valid email address');
			document.friend_form.email.focus();
			return false;
}
		
		
		
		if (document.friend_form.fname.value=="0"){
			alert('Please enter your friend\'s name.');
			document.friend_form.campus.focus();
			return false;
		}
		
		if (document.friend_form.femail.value==""){
			alert('Please nter your friend\'s email address');
			document.friend_form.email.focus();
			return false;
		}
		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.friend_form.email.value)){
		alert('Please enter a valid email address');
			document.friend_form.femail.focus();
			return false;
}
	return true;
	}
	
	
	
	
	
	function validate2(){
	if (document.contact_form.first_name.value==""){
			alert('Please enter your name');
			document.contact_form.first_name.focus();
			return false;
		}
		if (document.contact_form.last_name.value==""){
			alert('Please enter your last name');
			document.contact_form.last_name.focus();
			return false;
		}
		if (document.contact_form.address.value==""){
			alert('Please enter your address');
			document.contact_form.address.focus();
			return false;
		}
		if (document.contact_form.city.value==""){
			alert('Please enter your city');
			document.contact_form.city.focus();
			return false;
		}
		if (document.contact_form.state.value==""){
			alert('Please enter your state');
			document.contact_form.state.focus();
			return false;
		}
		if (document.contact_form.zip.value==""){
			alert('Please enter your zip');
			document.contact_form.zip.focus();
			return false;
		}
		
		if (document.contact_form.country.value==""){
			alert('Please enter your country');
			document.contact_form.country.focus();
			return false;
		}
		if (document.contact_form.email2.value==""){
			alert('Please enter your Email');
			document.contact_form.email2.focus();
			return false;
		}
		if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.contact_form.email2.value)){
		alert('Please enter a valid email address');
			document.contact_form.email2.focus();
			return false;
}
	if (document.contact_form.phone.value==""){
			alert('Please enter your phone.');
			document.contact_form.phone.focus();
			return false;
		}

	if (document.contact_form.native.value==""){
			alert('Please enter your native language');
			document.contact_form.native.focus();
			return false;
		}
	if (document.contact_form.education.value=="0"){
			alert('Please select your education level');
			document.contact_form.education.focus();
			return false;
		}
			if (document.contact_form.learn_language.value=="0"){
			alert('Please select what language you want to learn');
			document.contact_form.learn_language.focus();
			return false;
		}
	return true;
	}
//-->
