/*
	zinan.yao@gmail.com
	http://www.scivo.com
	Scivo. Co,Ltd
	http://www.scivo.com
	
	`2007-07-25
 */
function chk_msg(myform)
{
	var val;
	var name = "";
	
	//alert("t");
	//alert(myform.elements.length);
	//return false;

	for(var i=0;i < myform.elements.length; i++)
	{
			name 	=	myform.elements[i].name;
			val  	= 	myform.elements[i].value;
			
			//alert(name);
			//alert(val.length);
			
			if(name.indexOf("txtFirstName") != -1 )
			{
				//alert("x");
				
				//val = val.toString;
				//alert(val);
				//chknull(val);
				//return false;
				if(val.length < 1)
				{
					alert("First Name can not be empty");
					return false;
				}
			}
			////
			else
			if(name.indexOf("txtLastName") != -1)
			{
				if(val.length < 1)
				{
					alert("Last Name can not be empty");
					return false;
				}
			}
			////
			else
			if(name.indexOf("txtCom") != -1)
			{
				if(val.length < 1)
				{
					alert("Company name can not be empty");
					return false;
				}
			}
			////
			else
			if(name.indexOf("selCountry") != -1)
			{
				if(val.length < 1)
				{
					alert("You must select a country");
					return false;
				}
			}		
			////
			else
			if(name.indexOf("txtMail") != -1)
			{
				if(val.length < 1)
				{
					alert("Email Address can not be empty");
					return false;
				}
			}		
			////
			else
			if(name.indexOf("txtCmd") != -1)
			{
				if(val.length < 1)
				{
					alert("Please comment your COMMAND");
					return false;
				}
			}
		////		
	}

	alert("Thank you for your enquiry.\r\nOur team will deal with your question and respond to you as soon as possible.\r\nPlease click here to return to the web site.");
	return true;
}