function submitform(obj) {
   while(obj.nodeName != 'FORM') {
      obj=obj.parentNode;
   }
   obj.submit();
   return false;
}