<!--

function getObject(objectId) {
      if(document.getElementById && document.getElementById(objectId)){return document.getElementById(objectId);} else
      if (document.all && document.all(objectId)){return document.all(objectId);} else
      if (document.layers && document.layers[objectId]){return document.layers[objectId];} else{return false;}
}

function tmenu() {
   window.onresize = null;
   obj=getObject('main');tamany=0;
   if (window.innerHeight) tamany=window.innerHeight; else
   if (document.body.clientHeight) tamany=document.body.clientHeight;
   if ((tamany-170)>10) obj.height=tamany-170; else obj.height=10;
   setTimeout("window.onresize = tmenu", 10);
}

/*
function chk_form(o){
   div=getObject('chk');
   if (o.checked) {
      div.style.visibility='hidden';
      div.style.height='500';
   } else {
      div.style.visibility='visible';
      div.style.height='1000';
   }
}*/

function fsubmit(f){
   if (f.marca.value=='')  { f.marca.focus();   alert('La marca es un campo obligatorio.');     return 0; }
   if (f.modelo.value=='') { f.modelo.focus();  alert('El modelo es un campo obligatorio.');    return 0; }
   if (f.tlf.value=='')    { f.tlf.focus();     alert('El teléfono es un campo obligatorio.');  return 0; }
   f.submit(); return 1;
}
//window.onresize = tmenu;
-->