function check_reg(){

	if(document.getElementById("username").value == ""){
		alert('ÓÃ»§ÃûÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.username.focus();
		return false;
	}

	if(document.getElementById("password").value == ""){
		alert('ÃÜÂëÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.password.focus();
		return false;
	}
	
	if(document.getElementById("password2").value == ""){
		alert('È·ÈÏÃÜÂëÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.password2.focus();
		return false;
	}
	
	if(document.getElementById("email").value == ""){
		alert('µç×ÓÐÅÏäÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.email.focus();
		return false;
	}
	
	if(document.getElementById("com").value == ""){
		alert('¹«Ë¾Ãû³ÆÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.com.focus();
		return false;
	}
	
	if(document.getElementById("phone").value == ""){
		alert('µç»°ºÅÂëÎª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.phone.focus();
		return false;
	}
	
	if(document.getElementById("addres").value == ""){
		alert('µØÖ·Îª¿Õ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.phone.focus();
		return false;
	}
	
	if(document.getElementById("password").value.length <=3 || document.getElementById("password").value.length >=16){
		alert('ÃÜÂë³¤¶ÈÎª4-16£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.password2.focus();
		return false;
	}
	
	if(document.getElementById("password").value != document.getElementById("password2").value){
		alert('Á½´ÎÃÜÂë²»Ò»ÖÂ£¬ÇëÈ·ÈÏºóÌá½»£¬Ð»Ð»');
		document.reg.password2.focus();
		return false;
	}

}