//Abrir ventana flotante
function ventana(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}
//Abrir ventana flotante sin barra de scroll
function ventana2(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=0,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}
//Funcion que lanza el email para contacto con cualquier correo
//Mail para la prueba = info@interzona.tv
//nombre = lo de antes de la arroba, en este caso es "info"
//dominio = lo de despues de la arroba, en este caso "interzona.tv"
function contactar(nombre,dominio){
	document.location ='mailto:'+nombre + '@' + dominio;
}

var gmyWin = null;

function myOpenWindow(winURL, winName, winFeatures, winObj)
	{
	var theWin; // this will hold our opened window 
	// first check to see if the window already exists
	if (winObj != null) {
		// the window has already been created, but did the user close it?
		// if so, then reopen it. Otherwise make it the active window.
		if (!winObj.closed) {
			winObj.focus();
			return winObj;
		} 
		// otherwise fall through to the code below to re-open the window
	}
	// if we get here, then the window hasn't been created yet, or it
	// was closed by the user.
	theWin = window.open(winURL, winName, winFeatures); 
	return theWin;
}

//Abrir ventana flotante con barra de scroll
function winScroll(url,ancho,alto,nombre){
	var posx = (screen.width-ancho)/2;
	var posy = (screen.height-alto)/2;
	window.open(url,nombre,'toolbar=0, resizable=0, location=0,status=0,directories=0,menubar=0,scrollbars=1,width='+ancho+',height='+alto+',left='+posx+',top='+posy);	
}