function OnGoMenuFormLink(GoList)
{
   var url = GoList.options[GoList.selectedIndex].value;
   var target = GoList.options[GoList.selectedIndex].id;
   GoList.selectedIndex=0;
   GoList.blur();
   if (url)
   {
      NewWin=window.open(url,target);
      window['NewWin'].focus()
   }
}

function abreUrl(Url,target,alto,ancho)
{
    window.open(Url,target,"height=" + alto + " width=" + ancho + " scrollbars=yes" );      
}

function abreUrlConfir(Url,target,alto,ancho,Scroll)
{
	if(confirm('¿Seguro que quieres eliminar este registro?')){
		abreUrl(Url,target,alto,ancho,+ "scrollbars=" + Scroll);
	}
}

function abreUrlDialog(Url,target,alto,ancho,Scroll)
{
    window.showModalDialog(Url,target,"height=" + alto + " width=" + ancho + "scrollbars=" + Scroll ); 
      
}

function msgObras()
{
		window.alert("La zona a la que intentas acceder esta temporalmente fuera de servicio."); 
      
}

function seleccionar_todo(form1){ 
   for (i=0;i<document.form1.elements.length;i++) 
      if(document.form1.elements[i].type == "checkbox") 
         document.form1.elements[i].checked=1 
} 

function deseleccionar_todo(form1){ 
   for (i=0;i<document.form1.elements.length;i++) 
      if(document.form1.elements[i].type == "checkbox") 
         document.form1.elements[i].checked=0 
} 

function abrirVentana(){ 
//guardo la referencia de la ventana para poder utilizarla luego 
ventana_secundaria = window.open("cerrar_window2.html","miventana","width=300,height=200,menubar=no") 
}

function cerrarVentana(){ 
//la referencia de la ventana es el objeto window del popup. Lo utilizo para acceder al método close 
ventana_secundaria.close() 
} 

function cancel()
	{
	window.close();
	}
	
function save()
	{
	document.forms.Form1.elements.inpContent.value = oEdit1.getHTMLBody();
	document.forms.Form1.submit()
	}
	
	
