function validateForm()
{
	if(document.frm.name.value==""){
		alert("Please Enter Your Name");
		document.frm.name.focus();
		return false;
	}
	if(document.frm.email.value==""){
		alert("Please Enter Your Email");
		document.frm.email.focus();
		return false;
	}
	if(document.frm.subject.value==""){
		alert("Please Enter the Subject");
		document.frm.subject.focus();
		return false;
	}
	if(document.frm.comments.value==""){
		alert("Please Enter Your Comments");
		document.frm.comments.focus();
		return false;
	}
	
	 // val secstr
  if (document.frm.secstr.value != rstring) {
    alert( "Invalid security string - please try again" );
	document.frm.secstr.focus();
    return false ;
    }
 	document.frm.secstr.value="####";


	return true;
}

function pickRandom(range) {
	
       sc = "23456789!ABCDEFGHJKLMNPQRSTUVWXYZ#";
            rchar= Math.round(Math.random() * (32));
			c1=sc.substring(rchar+1,rchar+2);
			 rchar= Math.round(Math.random() * (32));
			c2=sc.substring(rchar+1,rchar+2);
			rchar= Math.round(Math.random() * (32));
			c3=sc.substring(rchar+1,rchar+2);
			rchar= Math.round(Math.random() * (32));
			c4=sc.substring(rchar+1,rchar+2);
			rstring=c1+c2+c3+c4;
			document.writeln("Type these anti-spam letters <span style='font-size:1.5em; font-weight:bold; line-height:1.3em'>"+rstring+"</span> into the box below before clicking Submit <BR> <BR>");

			
       
           
    }