I got it working DaWei thanks for your tip
else if ((document.getElementsByName('same_room')[0].checked==true) && (document.update.same_room_reason.value == ""))
{
alert( "Is your exam in the same room? if Yes then please give your reasons.");
document.update.same_room_reason.focus();
return false;
}
__________________
Personal Portfolio
TecBrain Support Forum
Linux VS Windows ... Dont Even Think of it ..
Distribution: Slackware
if (OS==Linux) return success
There are 10 kinds of people, those who can read binary numbers and those who can't.