 function validatereg(theform){
     	if(isEmpty(theform.frm_nickname.value)){
			alert("Please Enter Nick name");
			theform.frm_nickname.focus();
			return false;
		}
		if(isEmpty(theform.frm_email.value)){
			alert("Please Enter Email");
			theform.frm_email.focus();
			return false;
		}
		
		if(!emailCheck(theform.frm_email.value)){
			theform.frm_email.focus();
			return false;
		}
		if(!passwordCheck(theform.frm_password.value)){
			theform.frm_password.focus();
			return false;
		}
		if(theform.frm_sex.value == ""){
			alert("Please select sex.");
			theform.frm_sex.focus();
			return false;
		}
		if(theform.frm_dob.value == ""){
			alert("Please Select Date of Birth.");
			theform.frm_dob.focus();
			return false;
		}
		/*if(theform.frm_birth_month.value == 0){
			alert("Please Select Birth Month.");
			theform.frm_birth_month.focus();
			return false;
		}
		if(theform.frm_birth_day.value == 0){
			alert("Please Select Birth Day.");
			theform.frm_birth_day.focus();
			return false;
		}
		if(theform.frm_birth_year.value == 0){
			alert("Please Select Birth Year.");
			theform.frm_birth_year.focus();
			return false;
		}*/
		if(isEmpty(theform.word.value)){
			alert("Please enter the Word.");
			theform.word.focus();
			return false;
		}	
		if (!theform.frm_agree.checked){ 
	        alert("Please agree the terms and conditions."); 
			theform.frm_agree.focus();
            return false;
         }
		return true;
	}	