How can i write this dynamically to use on a number of forms?
function submitform()
{
if(document.hotelfrm.onsubmit &&
!document.hotelfrm.onsubmit())
{
return;
}
document.hotelfrm.submit();
}
form name="hotelfrm" id="hotelfrm" method="post" action="page1.asp"