// Javascript Document

// Form Functions

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function validate(formCheck) //Function with a parameter representing a form name.
{
if (formCheck.Name.value == "Name")
{
alert("Please provide your name:");
formCheck.Name.focus();
return false;
}

if (formCheck.Email.value == "Email Address")
{
alert("Please provide your email address:");
formCheck.Email.focus();
return false;
}

if (formCheck.Phone.value == "Phone or Mobile")
{
alert("Please provide your phone or mobile:");
formCheck.Phone.focus();
return false;
}

if (formCheck.Enquiry.value == "Type your enquiry here...")
{
alert("Please provide your enquiry:");
formCheck.Enquiry.focus();
return false;
}

return true;
}