<!--

function isEmail(string) {
if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
	return true;
else
	return false;
}

function isProper(string) {

   if (!string) return false;
   var iChars = "*|,\"<>[]{}`\';()@&$#%";

   for (var i = 0; i < string.length; i++) {
      if (iChars.indexOf(string.charAt(i)) != -1)
         return false;
   }
   return true;
} 
                     

function isReadyContact(form) {
	if (isProper(form.txtName.value) == false) {
        alert("Please enter your name.");
        form.txtName.focus();
        return false;
    }
    if (isEmail(form.txtEmail.value) == false) {
        alert("Please enter a valid email address.");
        form.txtEmail.focus();
        return false;
    }
	if (isProper(form.txtEnq.value) == false) {
        alert("Please enter the nature of your enquiry.");
        form.txtEnq.focus();
        return false;
    }
    return true;
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('popmatch.php?fixture='+URL, 'bettingdirectory', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=460,height=200');");
}