function CheckForm () { 

        var errorMsg = "";

    

        if (document.contact.first_name.value == "") {

            errorMsg += "\n请输入您的姓名.\n"; 

        }



        if (document.contact.last_name.value == "") {

            errorMsg += "\n请输入您的姓名.\n"; 

        }

        

        if ((document.contact.email.value == "") || (document.contact.email.value.length > 0 && (document.contact.email.value.indexOf("@",0) == - 1 || document.contact.email.value.indexOf(".",0) == - 1))) {

                errorMsg += "\n请输入有效的邮件地址.\n";

        }



   	if (document.contact.country.value == "") {

            errorMsg += "\n请输入您的国家.\n"; 

	}



        if (document.contact.howToHelp.value == "") {

            errorMsg += "\n请问您有何需求?\n"; 

        }

        

        if (errorMsg != "") {

            errorMsg += alert(errorMsg + "\n\n");

            return false;

        }

    

        return true;

    }
