function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL, winName ,features);
}

function getSubdominio2son2() { 
/*
2son2, masm, 01/06/2009
Devuelve el subdominio de la aplicación

Valores devueltos:
	1: dominios de 2son2:
		http://www.2son2.com
		http://2son2.com
		http://prueba.2son2.com		Entorno de pruebas
		http://localhost			Entorno de pruebas localhost
	11: ellos
		http://ellos.2son2.com
	22: ellas
		http://ellas.2son2.com
	dm: diario de mallorca
		http://diariodemallorca.2son2.com
	di: diario de ibiza
		http://diariodeibiza.2son2.com 
*/
	
	var sURL		= document.location.href.toLowerCase();
	
	if ((sURL.indexOf("http://localhost") != -1) || (sURL.indexOf("http://www.2son2.com ") != -1) || (sURL.indexOf("http://2son2.com ") != -1)   ) {
		return "1";
	}

	if (sURL.indexOf("http://ellos.2son2.com ") != -1) {
		return "11";
	}

	if (sURL.indexOf("http://ellas.2son2.com ") != -1) {
		return "22";
	}

	if (sURL.indexOf("http://diariodemallorca.2son2.com ") != -1) {
		return "dm";
	}

	if (sURL.indexOf("http://diariodeibiza.2son2.com ") != -1) {
		return "di";
	}
	
}

