<!--
function Validate(theForm)
{

// check if the first drop down is selected, if so, invalid selection
if ((theForm.product.selectedIndex == 0) && (theForm.specificproduct.value == "or enter specific product"))
{

alert("Please enter / select a product");
theForm.product.focus();

return (false);
}

// check if the first drop down is selected, if so, invalid selection
if ((theForm.product.selectedIndex == 0) && (theForm.specificproduct.value == ""))
{

alert("Please enter / select a product");
theForm.specificproduct.focus();

return (false);
}

// check to see if the field is blank
if (theForm.name.value == "your name")
{
alert("Please enter your name");
theForm.name.focus();
return (false);
}

// require at least 3 characters be entered
if (theForm.name.value.length < 3)
{
alert("Please enter a valid name");
theForm.name.focus();
return (false);
}



// allow ONLY alphanumeric keys, no symbols or punctuation
// this can be altered for any "checkOK" string you desire
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ";
var checkStr = theForm.name.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("Please enter a valid name");
theForm.name.focus();
return (false);
}

if (theForm.postcode.value == "postcode")
{
alert("Please enter your postcode");
theForm.postcode.focus();
return (false);
}

// require at least 3 characters be entered
if (theForm.postcode.value.length < 7)
{
alert("Please enter your postcode");
theForm.postcode.focus();
return (false);
}

// allow ONLY alphanumeric keys, no symbols or punctuation
// this can be altered for any "checkOK" string you desire
var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 0123456789";
var checkStr = theForm.postcode.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("Please enter a valid postcode");
theForm.postcode.focus();
return (false);
}

if (theForm.tel.value == "contact number")
{
alert("Please enter your telephone number");
theForm.tel.focus();
return (false);
}

// require at least 3 characters be entered
if (theForm.tel.value.length < 10)
{
alert("Please enter your telephone number");
theForm.tel.focus();
return (false);
}

// allow ONLY alphanumeric keys, no symbols or punctuation
// this can be altered for any "checkOK" string you desire
var checkOK = "0123456789+ ()";
var checkStr = theForm.tel.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("Please enter a valid telephone number");
theForm.tel.focus();
return (false);
}

return (true);
}
//-->