


function submitthis(formname)
{
document.forms[formname].submit();
}


function showElements(oForm) {
   str = "Form Elements of form " + oForm.name + ": \n"
   for (i = 0; i < oForm.length; i++) 
      str += oForm.elements[i].name + "\n"
   alert(str)
}


function CheckContactForm()
{errorfound = false;
	if (document.eb_contact_us.firstname.value == "")
	{document.getElementById('firstname').style.background = '#d4ffd4';
		errorfound = true}
		else
			{document.getElementById('firstname').style.background = '#fff';}
	if (document.eb_contact_us.mobile.value == "")
	{document.getElementById('mobile').style.background = '#d4ffd4';
		errorfound = true}
		else
			{document.getElementById('mobile').style.background = '#fff';}
	if (document.eb_contact_us.postcode.value == "")
	{document.getElementById('postcode').style.background = '#d4ffd4';
		errorfound = true}
		else
			{document.getElementById('postcode').style.background = '#fff';}
	if (document.eb_contact_us.email.value.indexOf ('@',0) == -1 || document.eb_contact_us.email.value.indexOf ('.',0) == -1)
    {document.getElementById('email').style.background = '#d4ffd4';
		errorfound = true}
		else
			{document.getElementById('email').style.background = '#fff';}
  if (errorfound) 
    return false;
	   else
		  return true;
}

