/* Function for Make an Enquiry Form */
function frm_Contact(check)
{
	errorDetails = '';
	errorControl = '';
	resetTextBoxCSS(check.str_name);
	resetTextBoxCSS(check.str_phone);
	resetTextBoxCSS(check.str_email);
	
	if (check.str_name.value == "")
	{
		applyErrorTextBoxCSS(check.str_name);
		if (errorDetails == '')
		{
			errorControl = check.str_name;
		}
		errorDetails = errorDetails + " - Please enter your first name\n";	
	}
	
	if (check.str_phone.value == "")
	{
		applyErrorTextBoxCSS(check.str_phone);
		if (errorDetails == '')
		{
			errorControl = check.str_phone;
		}
		errorDetails = errorDetails + " - Please enter your ontactable number\n";	
	}
	
	if (check.str_email.value == "")
	{
		applyErrorTextBoxCSS(check.str_email);
		if (errorDetails == '')
		{
			errorControl = check.str_email;
		}
		errorDetails = errorDetails + " - Please enter your valid Email address \n";
	}
	
	
	if (isValidEmail(check.str_email.value)==false)
	{
		applyErrorTextBoxCSS(check.str_email);
		if (errorDetails == '')
		{
			errorControl = check.str_email;
		}
		errorDetails = errorDetails + " - Please enter your valid Email address\n";
	}
	

	if (errorDetails == '')
	{
		
		return true;
	}
	else
	{
		alert('To submit the form you need to enter the following mandatory fields \n' + errorDetails);
		errorControl.focus();
		return false;
			
		
	}
}