

	
function chkcolourrequest()
{	
	var isproblem;
	var errorbox;
	isproblem=0;
	errorbox = "";	
	
	if (document.form.txtcontactname.value.length  == 0)
	{
		errorbox=errorbox + "Contact name\n";
		isproblem=1;
	}
	
	if (document.form.txtemailaddress.value.length == 0)
	{
		errorbox=errorbox + "Email address\n";
		isproblem=1;
	}
	
	if (document.form.backgroundvalue.value.length == 0)
	{
		errorbox=errorbox + "Background colour\n";
		isproblem=1;
	}	

	if (document.form.primaryvalue.value.length == 0)
	{
		errorbox=errorbox + "Primary colour\n";
		isproblem=1;
	}

	if (isproblem == 1)
	{
		alert("The folllowing information has not been provided:\n\n" + errorbox);
		return false;
	}	


}

function chkcontactform()
{
	
	var isproblem;
	var errorbox;
	isproblem=0;
	errorbox = "";	
	
	if (document.form.txtcontactname.value.length == 0)
	{
		errorbox=errorbox + "Contact name\n";
		isproblem=1;
	}	
	
	if (document.form.txtcontactemail.value.length == 0)
	{
		errorbox=errorbox + "Contact Email\n";
		isproblem=1;
	}	

	if (document.form.selhearabout.value == 0)
	{
		errorbox=errorbox + "Where did you hear about us?\n";
		isproblem=1;
	}
	
	if (document.form.selenquirytype.value == 0)
	{
		errorbox=errorbox + "Enquiry type\n";
		isproblem=1;
	}
	
	if (document.form.taenquirydetails.value.length == 0)
	{
		errorbox=errorbox + "Enquiry details\n";
		isproblem=1;
	}

	if (isproblem == 1)
	{
		alert("The folllowing information has not been provided:\n\n" + errorbox);
		return false;
	}		
}


function chknewsletter()
{
	var isproblem;
	var errorbox;
	isproblem=0;
	errorbox = "";	
	
	if (document.form.txtname.value.length == 0)
	{
		errorbox=errorbox + "Newsletter name\n";
		isproblem=1;
	}
	
	if (document.form.txtemail.value.length == 0)
	{
		errorbox=errorbox + "Newsletter email\n";
		isproblem=1;
	}
	
	if (isproblem == 1)
	{
		alert("The folllowing information has not been provided:\n\n" + errorbox);
		return false;
	}		
}

	function chkEstimateEntry(designguid)
{
	var isproblem;
	var errorbox;
	isproblem=0;
	errorbox = "";	
	
	if (document.form.txtname + designguid.value.length  == 0)
	{
		errorbox=errorbox + "Contact name\n";
		isproblem=1;
	}
	
	if (document.form.txtemail + designguid.value.length  == 0)
	{
		errorbox=errorbox + "Contact email\n";
		isproblem=1;
	}
	
	if (document.form.txtrolls + designguid.value.length  == 0)
	{
		errorbox=errorbox + "No of Rolls\n";
		isproblem=1;
	}		
	
	if (isproblem == 1)
	{
		alert("The folllowing information has not been provided:\n\n" + errorbox);
		return false;
	}		
}