
 
 function MM_openBrWindow(theURL,winName,features) { //v2.0
  
  var fijo = document.location.hostname;
  var fijo2 = 'http://';
  var fijo3 = 'www';
  
  if ((theURL.indexOf(fijo) == -1) && (theURL.indexOf(fijo2) == 0)){
 
   window.open('../common/pop_externo.jsp?url='+theURL,winName,features);
   
 }else 
 
   if (theURL.indexOf(fijo3) == 0){
     document.location.href=fijo2+theURL;
   
   }else
        {
      document.location.href=theURL;
       
   }  
}
 

function MM_openPopup(theURL,winName,features) { //v2.0
    
    window.open('../common/pop_externo.jsp?url='+theURL,winName,features);
}

function obtenermedidas(){
//alert(document.medantiguas.provincia.options[document.medantiguas.provincia.options.selectedIndex].value);
document.location.href='metrologia.jsp?idprovincia='+document.medantiguas.provincia.options[document.medantiguas.provincia.options.selectedIndex].value;

 
}