function validateUser(theForm)
{
	if (!validRequired(theForm.txtName,"Name"))
		return false;
	if (!validRequired(theForm.txtEmailAddress,"Email Address"))
		return false;
	if (!validRequired(theForm.txtPassword,"Password"))
		return false;
	if (!validRequired(theForm.varConfirmPassword,"Confirm Password"))
		return false;
	if (!validMatch(theForm.txtPassword,"Password",theForm.varConfirmPassword,"Confirm Password"))
		return false;
	return true;
}

function validateTechDocs(theForm)
{
	if (!validRequired(theForm.txtTitle,"Title"))
		return false;
	if (!validRequired(theForm.txtSummary,"Summary"))
		return false;
	if (!validDate(theForm.txtDate,"Date","True"))
		return false;
	return true;
}

function validateStyleDocs(theForm)
{
	return true;
}

function validateMarketingDocs(theForm)
{
	if (!validRequired(theForm.txtSerialNumber,"Serial Number"))
		return false;
	if (!validRequired(theForm.txtTitle,"Title"))
		return false;
	if (!validRequired(theForm.txtSummary,"Summary"))
		return false;
	return true;
}

function validateInfoRequest(theForm)
{
	if (!validRequired(theForm.txtCompanyName,"Company name"))
		return false;
	if (!validRequired(theForm.txtContactName,"Contact name"))
		return false;
	if (!validRequired(theForm.txtPosition,"Position"))
		return false;
	if (!validDropdown(theForm.selBusinessType,"'Type of business'"))
		return false;
	if (!validRequired(theForm.txtAddress1,"Contact address"))
		return false;
	if (!validRequired(theForm.txtPostcode,"Postcode"))
		return false;
	if (!validRequired(theForm.txtPhoneNumber,"Phone number"))
		return false;
	if (!validEmail(theForm.txtEmailAddress,"email address","True"))
		return false;
	return true;
}