<!--
function checkValue(field,thingywotsit)
{
var temp = eval("document.contactForm."+field+".value;");
if(temp=="" || temp==" " || temp=="Select Country")
{
alert("Please fill in your " + thingywotsit + ", and try again.");
eval("document.contactForm."+field+".focus();");
return false;
} else {
return true;
}

}

function checkForm()
{
if(checkValue("word","word") && checkValue("name","name") && checkValue("enquiry","enquiry") && (checkValue("phone","phone number") ))
{
if(emailCheck(document.contactForm.email.value))
{
document.contactForm.submit();
} 
else
{
alert("Please fill in your email address, and try again.\nIf you have filled in your email address, check the '.' and '@' sign are correct, an email address will look something like this:\n\nyourname@somewhere.com                   or                  yourname@somewhere.co.uk\n");
document.contactForm.email.focus();
}
}
}

function new_freecap()
{
// loads new freeCap image
if(document.getElementById)
{
// extract image name from image source (i.e. cut off ?randomness)
thesrc = document.getElementById("freecap").src;
thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
// add ?(random) to prevent browser/isp caching
document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
} 
else 
{
alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
}
}

//-->
