function checkcontent()
{
	if(document.formx.Company.value.length < 1)
	{
		alert("Empty company or wrong format of the username");
		return false;	
	}
	
	if((document.formx.Person.value.length < 1) || (document.formx.Person.value.length > 10))
	{
		alert("Empty or Wrong format of the person");
		return false;
	}

	if((document.formx.Address.value.length < 1) || (document.formx.Address.value.length > 200))
	{
		alert("Empty or Wrong format of the address");
		return false;
	}
	
	if((isnum(document.formx.Tel.value)  == false) || (document.formx.Tel.value.length > 15 ))
	{
		alert("Empty or Wrong format of the telephone");
		return false;
	}
	
	if(isnum(document.formx.fax.value) == false)
	{
		alert("Wrong format of the fax");
		return false;
	}


	if((document.formx.email.value.length < 1) || (!chkmail(document.formx.email.value)))
	{
		alert("Wrong format of the email");
		return false;
	}

	if((document.formx.Content.value.length < 1) || (document.formx.Content.value.length > 1000))
	{
		alert("Empty content or the content is too long.");
		return false;
	}

return true;
}
String.prototype.Trim = function()
{
return this.replace(/(^\s*)|(\s*$)/g, "");
}