function cercaRuta(){
		cityFrom=document.getElementById("cityFrom").value;
		document.location.href="http://www.hotelnievesol.com/~central/htl_rutamapa.php?cityFrom=" + cityFrom;
									}

function getAbsoluteElementPosition(element) {
  if (typeof element == "string")
    element = document.getElementById(element)
    
  if (!element) return { top:0,left:0 };
  
  var y = 0;
  var x = 0;
  while (element.offsetParent) {
    x += element.offsetLeft;
    y += element.offsetTop;
    element = element.offsetParent;
  }
  return {top:y,left:x};
}


	function addFav(argVal){
		var bookData = new Array();
		bookData = argVal.split("|");

		if (document.all){
			window.external.AddFavorite(bookData[0], bookData[1]);
		} else {
			alert("Lo sentimos, los usuarios de Netscape han de añadir a favoritos esta web manualmente pulsando <Ctrl-D>");
		}
	}
	
function ensenar()
{
	document.getElementById("resumen").style.display = "block";
  	var elemento = document.getElementById("otrosEnlaces");
  	var pos = getAbsoluteElementPosition(elemento);
	pos.top = pos.top - 100;
	document.getElementById("resumen").style.top = pos.top+"px";
	document.getElementById("resumen").style.left = pos.left+"px";
}

function esconder()
{
	document.getElementById("resumen").style.display = "none";
}

function mostrar(id)
{
	if (document.getElementById('td_sub_' + id)!= 'null'){
		if (document.getElementById('td_sub_' + id).style.display != ''){
			document.getElementById('td_sub_' + id).style.display ='';
			document.getElementById('vinculo' + id).className ="link1_over";
		}
		else {
			document.getElementById('td_sub_' + id).style.display='none';
			document.getElementById('vinculo' + id).className ="link1";
		}
	}
}

function mostrarocultar()
{
 	   if (document.getElementById("subterminos").style.display != 'none'){
			document.getElementById("subterminos").style.display ='none';
		}
		else {
			document.getElementById("subterminos").style.display='block';
		}
}



function valida(){
			submitOk = true;
			var emailFilter=/^.+@.+\..{2,4}$/;
			if(document.frmNEWSLETTER.email.value == ""){
				submitOk = false;
				alert("no olvide su email");
				document.frmNEWSLETTER.email.focus();
			}			
			if (document.frmNEWSLETTER.email.value != "" && !(emailFilter.test(document.frmNEWSLETTER.email.value)) && submitOk) {
				submitOk = false;
				alert("su email no parece correcto");
				document.frmNEWSLETTER.email.focus();
			}			

			if(!document.frmNEWSLETTER.leido.checked && submitOk){
				submitOk = false;
				alert("es necesario aceptar las condiciones de privacidad para continuar con el proceso");
			}
			return submitOk;
					
			
		}

		<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Gestionar todos los mensajes de FSCommand de una película Flash
function carroussel_DoFSCommand(command, args) {
	var carrousselObj = isInternetExplorer ? document.all.carroussel : document.carroussel;
	//
	// Introduzca su código aquí.
	//
	//alert(command);
	//alert(args);
	pop('http://www.onodo.com/360/showipix.php?img='+ args,'ipix','500','300','no','no');
	

}
// Ancla para Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub carroussel_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call carroussel_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
//-->
		
									
								  function checkCR(evt) {
						
									var evt  = (evt) ? evt : ((event) ? event : null);
						
									var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
						
									if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
						
						 		 }
						
						  		document.onkeypress = checkCR;	




