function lsc_AutoResWindow(theURL,winName,width,height,features) { 

	if(window.screen){

		per_ancho=(width/screen.width)*100;//porcentaje screen-ancho

		per_alto=(height/width)*100;//porcentaje de ancho-alto

		win_ancho=(screen.width*per_ancho)/100;//ancho de la ventana

		win_alto=(win_ancho*per_alto)/100;//alto de la ventana

		x=(screen.width-win_ancho)/2;//centra x

		y=(screen.height-win_alto)/3;//centra y

	}else{// si el buscador es 4-- queda todo igual :(

		x=0;

		y=0;

		win_ancho=w;

		win_alto=y;

	}

	winfeatures=("top="+y+",left="+x+",width="+win_ancho+",height="+win_alto+","+features);

	window.open(theURL,winName,winfeatures);

}