function verify()
{var themessage="Please make sure you complete the following fields: ";
if(document.bform.name.value=="")
themessage=themessage+"\n - Your name";
if(document.bform.email.value.indexOf('@',0)==-1||document.bform.email.value.indexOf('.',0)==-1)
themessage=themessage+"\n - A valid e-mail address";
if(document.bform.address.value=="")
themessage=themessage+"\n - Your address";
if(document.bform.postcode.value=="")
themessage=themessage+"\n - Your postcode";
if(document.bform.time.value=="")
themessage=themessage+"\n - A convenient time to call";
var chks = document.getElementsByName('date[]');
var checkCount = 0;
for (var i = 0; i < chks.length; i++)
{
if (chks[i].checked)
{
checkCount++;
}
}
if (checkCount < 1)
{
themessage=themessage+"\n - A course date";
}

if(themessage=="Please make sure you complete the following fields: ")
return true;
else{alert(themessage);return false;}
}

 



 
