
function jcap(req_form){



	var uword = hex_md5(document.getElementById(jfldid).value);
	
	if(!hasData(req_form.name.value)){
		alert("ERROR: Please enter your Name.");
		req_form.name.focus();
		return false;
	}else if (!hasData(req_form.licence.value)){
		alert("ERROR: Please enter your Licence Number.");
		req_form.licence.focus();
		return false;
	}else if (!hasData(req_form.club.value)){
		alert("ERROR: Please enter your Club.");
		req_form.club.focus();
		return false;
	}else if (!req_form.MF.checked && !req_form.ME.checked && !req_form.MS.checked && !req_form.WF.checked && !req_form.WS.checked && !req_form.WE.checked && !req_form.ME.checked){
		alert("ERROR: You must register for at least one discipline.");
		return false;
	}else {
		if (uword==cword[anum-1]) {

	  	  return true;

		}

		else {

		  alert("ERROR: Enter the Image text as it is shown.");

		  document.getElementById(jfldid).focus();

		  return false;

		}
	}

}



function hasData(s){
	if(s==null)
		return false;
	for (var i=0; i<s.length; i++){
		var c=s.charAt(i);
		switch(c){
			case ' ':
			case '\t':
			case '\n':
				continue;
			default:
				return true;
		}
	}
	return false;
}



//  End -->
