function popUpWindow(ancho,alto,dire,nombre,sb) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (ancho/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (alto/2 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(dire,nombre,"status,height="+alto+",width="+ancho+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=" + sb + ",toolbar=no,status=no");
	win2.focus();
}