//funcion para abrir ventana centrada
//le pasas el tipo de ventana y la url para abrir, y aquí defines el tamaño
//de esa ventana

function openWnd(strTipo, strUrl){
	var ancho;
	var alto;
	var status = "no";
	var scrollbars = "no";
	switch (strTipo) {
		case 'curriculum' :
			ancho=490;
			alto=450;
			break;
		case 'album' :
			ancho=525;
			alto=325;
			break;
		case 'presentacion' :
			ancho=398;
			alto=365;
			break;
		case 'chat' :
			ancho=655;
			alto=320;
			break;
		case 'foros' :
			ancho=355;
			alto=200;
			break;
		case 'felicitacion' :
			ancho=640;
			alto=480;
			break;
		case 'animacion' :
			ancho=693;
			alto=520;
			break;
	}
	var winl = (screen.width - ancho) / 2;
	var wint = (screen.height - alto) / 3;
	winprops = 'height='+alto+',width='+ancho+',top='+wint+',left='+winl+',scrollbars='+scrollbars+',resizable=no,toolbars=no,locationbar=no,directories=no,menubar=no,status='+status;
	win = window.open(strUrl, strTipo, winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

