function imprimir() {
	if ( window.print() ) {
	  window.print();
	}
}

function cambiarImagen(name,file) {
	var img = document.getElementById( name );
	if ( img ) {
	  img.src = file;
	}
}
  

var nuevaventana;
function validadPopup(win) {
	if (win==null || typeof(win)=="undefined"){
		alert("Se ha detectado que tienes activado el bloqueador de ventanas en tu navegador.\nNuestras ventanas emergentes no contienen publicidad sino información que te es necesaria.\nIndica a tu navegador que acepte las ventanas emergente provinientes de nuestro sitio.");
		return false;
	} else {
		if (parseInt(navigator.appVersion) >= 4) { win.focus(); }  
	}
	
}

function pantallacompleta(win) {
	if (win && document.all) {
		win.resizeTo(screen.availWidth,screen.availHeight);
	} else if (document.layers||document.getElementById) {
		if (win.outerHeight<screen.availHeight||win.outerWidth<screen.availWidth){
			win.outerHeight = screen.availHeight;
			win.outerWidth = screen.availWidth;
		}	
	}
}

function AbrirVentana(theURL,winName,w,h) { //v2.0
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',top=0,left=0,scrollbars=yes';
	var nuevaventana = window.open(theURL,winName,winprops);
	validadPopup(nuevaventana);
	pantallacompleta(nuevaventana);
}

function AbrirVentana(theURL,winName,w,h) { //v2.0

            winprops = 'height='+h+',width='+w+',top=0,left=0,scrollbars=yes,fullscreen=no';

            var nuevaventana = window.open(theURL,winName,winprops);

            validadPopup(nuevaventana);

            pantallacompleta(nuevaventana);
}
function AbrirVentana_completa(theURL,winName,w,h) { //v2.0

            winprops = 'height='+h+',width='+w+',top=0,left=0,scrollbars=yes,fullscreen=no';

            var nuevaventana = window.open(theURL,winName,winprops);

            validadPopup(nuevaventana);

            pantallacompleta(nuevaventana);
}

function AbrirVentana_1(theURL,winName,w,h) { //v2.0
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=yes,scrollbars=yes,fullscreen=no';
	if (!Opera56) win = window.open(theURL,winName,winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }  
}





