// chequeo que una ventana popup se haya abierto correctamente.
function checkPopup(myPopup) {
	if (!myPopup) {
		alert("Su navegador tiene bloqueadas las ventanas emergentes. Consulte el manual de usuario para habilitarlas");
		new Effect.Highlight('lnkManualUsuario', {
			startcolor : "#FFFF00"
		});
	} else {
		myPopup.onload = function() {
			setTimeout(function() {
				if (myPopup.screenX === 0) {
					// Para Chrome
					alert("Su navegador tiene bloqueadas las ventanas emergentes. Consulte el manual de usuario para habilitarlas");
					new Effect.Highlight('lnkManualUsuario', {
						startcolor : "#FFFF00"
					});
				} else {
					// close the test window if popups are allowed.
					// myPopup.close();
				}
			}, 0);
		};
	}
}
