Location: PHPKode > projects > GolfstatsPHP > golfstatsphp_3.0/userfunctions.inc.php
<script>
function checkrequired(which){
var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]

if (tempobj.name.substring(0,11)=="gross_score"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("Please fill in your scores.")
return false
}
else
return true
}



</script>
Return current item: GolfstatsPHP