function OnlineApp2_js_CheckValidate()
{
    //check address
    if (!CheckReqField("txtAddress", "Please write address")) return false;

    //check city
    if (!CheckReqField("txtCity", "Please write city")) return false;

    //check zipcode
    if (!CheckMaxLength("txtZipcode", 5, "Zip code must be 5 digits")) return false;
    
    //check Names
	if( !CheckReqField("txtLName1", "Please write last name") ) return false;
	if( !CheckReqField("txtFName2", "Please write first name") ) return false;
	
	//check email
	if( !CheckRegEx("txtEmail", /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ , "Please write right email format") ) return false;
	
	//check phone
	if( !CheckReqField("txtDayP1", "Please write correct number format") ) return false;
	if( !CheckReqField("txtDayP2", "Please write correct number format") ) return false;
	if( !CheckReqField("txtDayP3", "Please write correct number format") ) return false;
	
	if( !CheckReqField("txtEveP1", "Please write correct number format") ) return false;
	if( !CheckReqField("txtEveP2", "Please write correct number format") ) return false;
	if( !CheckReqField("txtEveP3", "Please write correct number format") ) return false;	
	
	//check other school
	if(	!document.getElementById("rbtnOther1").checked && !document.getElementById("rbtnOther2").checked )
	{
		alert("You need to select other school field!");
		document.getElementById("rbtnOther1").focus();
		return false;	
	}
	
	//check campus
	if(	!document.getElementById("rdbtnCamLA").checked && !document.getElementById("rdbtnCamIR").checked && !document.getElementById("rdbtnCamPA").checked)
	{
		alert("You need to select campus field!");
		document.getElementById("rdbtnCamLA").focus();
		return false;
	}
	
	//check monthly rent
	if( document.getElementById("txtFee").value == "")
	{
		alert("Please write Monthly Rent field!");
		document.getElementById("txtFee").focus();
		return false;
	}	
	
	//check prepare food
	if(	!document.getElementById("rdbtnFood1").checked && !document.getElementById("rdbtnFood2").checked )
	{
		alert("You need to select prepare own food field!");
		document.getElementById("rdbtnFood1").focus();
		return false;
	}	
	
	//check confirmation host family
	if(	!document.getElementById("checkSubmit").checked )
	{
		alert("If you choose not to agree with the homestay terms, your application will not be submitted!");
		document.getElementById("checkSubmit").focus();
		return false;
	}
	
	return true;
}
