function agregar(){
   if ((navigator.appName=="Microsoft Internet Explorer") && 
         (parseInt(navigator.appVersion)>=4)) {
      var url="http://www.gabilos.com/programas_nominas_facturacion.htm";
	  //var url=document.location.href; 
      var titulo="Gábilos Software. Programas de gestión empresarial.";
	  //var titulo=document.title;
      window.external.AddFavorite(url,titulo);
   } else { 
      if(navigator.appName == "Netscape") 
         alert("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
   }
} 

function HacerPaginaInicio()
	{
	versionNav = navigator.appVersion;
	if (versionNav.indexOf("MSIE 5") > -1 || versionNav.indexOf("MSIE 6") > -1)
		{
		document.write('<A HREF="#" onClick="HomePage(this);return(false);">Poner como página de inicio</A><BR>');
		}
	}
	
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.gabilos.com/programas_nominas_facturacion.htm');
	}


function Abrir_ventana (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=275,height=390,top=100,left=400";
window.open(pagina,"",opciones);
}

function sobre(src,Color) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = Color;}}
	  
	  
function fuera(src,Color2) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = Color2;}}
	  
	  
//para abrir el popup de PC Actual
function Abrir_popup (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=480,top=70,left=350";
window.open(pagina,"",opciones);
}

//para abrir el popup de autonomos de la web laboral, el de fiscal, etc. Orig era 400x400
function Abrir_popuplaboral (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=500,top=70,left=350";
window.open(pagina,"",opciones);
}


function PantallaCompleta(pagina) {
window.open(pagina, '', 'top=0, left=0, directories=yes, location=yes, resizable=yes, scrollbars=yes, menubar=yes, status=yes, toolbar=yes, fullscreen=yes');
//var opciones=("toolbar=no,location=no, directories=no, status=no, menubar=no ,scrollbars=no, resizable=no, fullscreen=yes"); 
//window.open(pagina,"",opciones);

}

function AbrirOpcionCompra(mypage) {
//var winl = (screen.width - 675) / 2;
//var wint = (screen.height - 480) / 2;
var wint = 0;
var winl = 0;
winprops = 'height=500,width=540,top='+wint+',left='+winl+',scrollbars=yes, resizable'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindowT(mypage) {
var winl = (screen.width - 675) / 2;
var wint = (screen.height - 480) / 2;
winprops = 'height=480,width=675,top='+wint+',left='+winl+',scrollbars=yes,menubar=yes,resizable'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//para ver los videos
function ResTest(lapagina) { 
   if (screen.width == 800) 
      NewWindow800(lapagina) 
   else 
      NewWindow1024(lapagina) 
}

function NewWindow800(mypage) {
var winl = top.outerWidth;
var wint = top.outerHeight;
winprops = 'top='+wint+',left='+winl+',fullscreen=1,scrollbars=0,resizable=1'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindow1024(mypage) {
var winl = top.outerWidth;
var wint = top.outerHeight;
winprops = 'height=600,width=800,top='+wint+',left='+winl+',scrollbars=no,resizable'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//fin de ver los videos

//para ampliar las imagenes de las pantallas de los programas
function AbrirPantalla(mypage) {
var winl = (screen.width - 675) / 2;
var wint = (screen.height - 480) / 2;
winprops = 'height=480,width=675,top='+wint+',left='+winl+',scrollbars=no,resizable'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function AbrirCuotas(mypage) {
var winl = (screen.width - 444) / 2;
var wint = (screen.height - 437) / 2;
winprops = 'height=437,width=444,top='+wint+',left='+winl+',scrollbars=no,resizable'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//para abrir la ventana con las caracterist detalladas de los programas
function AbrirVentanaCaract (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450, height=590, top=90,left=300";
window.open(pagina,"",opciones);
}


//para abrir los popups de aviso del nuevo curso, video de 1 minuto de la contabilidad nueva
function AbrirPopupContabilidad (pagina) {
var opciones="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450, height=200, top=90,left=300";
window.open(pagina,"",opciones);
}

//para abrir las NICS, NIFS y demas
//chus: enero 2008, esta funcion la cambio porque las paginas que se abrian con ella no las indexaba google, la funcion era diferente a la de AbrirVentanaCaract y la pongo igual que esta ultima
/*function AbrirPantallaICAC(mypage) {
var winl = (screen.width - 675) / 2;
var wint = (screen.height - 480) / 2;
winprops = 'height=480,width=675,top='+wint+',left='+winl+',resizable=1,toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}*/

function AbrirPantallaICAC(pagina) {
var opciones="toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=675, height=480, top=90,left=150";
window.open(pagina,"",opciones);
}


//para abrir las tablas de indemnizaciones por lesiones en la web laboral
function JimiNewWindowAll(mypage2) {
var winl = top.outerWidth;
var wint = top.outerHeight;
winprops = 'height='+(window.screen.availHeight)+',width='+(window.screen.availWidth)+
',top='+wint+',left='+winl+',resizable=1,toolbar=1,location=1,directories=1,status=1,menubar=0,scrollbars=1'
win = window.open(mypage2,'dymif',winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




//diciembre2007: prueba para ver los videos de los nuevos programas
function ResTest2(lapagina) { 
   if (screen.width == 800) 
      NewWindow800_2008(lapagina) 
   else 
      NewWindow1024_2008(lapagina) 
}

function NewWindow800_2008(mypage) {
var winl = top.outerWidth;
var wint = top.outerHeight;
winprops = 'top='+wint+',left='+winl+',fullscreen=1,scrollbars=0,resizable=1'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindow1024_2008(mypage) {
var winl = top.outerWidth;
var wint = top.outerHeight;
winprops = 'height=680,width=1010,top='+wint+',left='+winl+',scrollbars=no,resizable'
//winprops = 'top='+wint+',left='+winl+',fullscreen=1,scrollbars=0,resizable=1'
win = window.open(mypage, "ventana", winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//fin de ver los videos