
function checkrequired(which)
{var pass=true
if (document.images){
for (i=0;i<which.length;i++){
var tempobj=which.elements[i]
if (tempobj.id.substring(0,3)=="req"){
if (((tempobj.type=="text"||tempobj.type=="textarea")&&tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&tempobj.selectedIndex==-1)){
pass=false
break
}
}
}
}
if (!pass){
alert("~~Use Tab key to move to the next field.~~   Name, Mailing Address, Phone, Email Address, Relationship to Adoption, & Signature are required entries. Please complete these fields and re-submit.")
return false
}
else
return true
}

