function nw (link)

{
				 
	//alert(link)
	window.open(link.href);
 	return false;
}


function focusOnLogin(field)
{
//alert(field)
document.forms[0][field].focus()
}






function verifyEnquiry(enquiry)
{

  if(enquiry.functionType.value == "")
  {
    alert("Please select the type of function you have in mind.\nIf you have already chosen a venue, that would also be helpful to know.");

    return (false);
  }
  
  
	
	if(enquiry.contactPhone.value == "")
  {
    alert("Please enter a contact telephone number,\nthis can be either a home number or a mobile.");
    enquiry.contactPhone.focus();
	enquiry.contactPhone.select();
    return (false);
  } 
  
  

    var checkOK = "0123456789-+()#{}[] \t\r\n\f";
  var checkStr = enquiry.contactPhone.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("This field accepts only digits and the characters  + - ( ) # { } [ ] ");
    enquiry.contactPhone.focus()
	enquiry.contactPhone.select()
    return (false);
  }

  
  if(enquiry.contactName.value == "")
  {
    alert("Please enter your name.");
    enquiry.contactName.focus();
	//enquiry.bill_name.bgcolor == #FFFFFF
	enquiry.contactName.select();
    return (false);
  }
  
 
   if(enquiry.contactEmail.value == "")
  {
    alert("Please enter an E-mail address where we can contact you.");
    enquiry.contactEmail.focus();
	enquiry.contactEmail.select()
    return (false);
  }
  	

return (true);

}



