 
	function Nva(page) {
		OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,	,top=0,left=0");
	}

	function Mediana(page) {
		var izq = (screen.width - 400)/ 2;
		var arr = (screen.height - 250)/ 2;
		var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=500,top='+arr+',left='+izq+','
		popwin=window.open(page,"",look)
	}
	function Validar_Enter2(){	 		 
		if( event.keyCode == 13 ) {   
				var dire = "http://localhost/netviaxla2/metabuscadorNetviax.aspx";
				location.href(dire);			 
			}	 
		} 
		
	function Mediana2(page) {	
		var izq = (screen.width - 400)/ 2;
		var arr = (screen.height - 600)/ 2;
		var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=700,height=600,top='+arr+',left='+izq+','
		popwin=window.open(page,"",look)
	}

	function Envio_Correo() { 	 
		parent.location.href='mailto:?body=http://www.jetmar.com.uy/programa_v2.asp%?%Codigo=' +  document.Form1.id_programa.value;	 
}

 function Cargar_Programa2(p_idprograma) {   
	l_url = "programa.aspx?p_idprograma="+p_idprograma 	 
	OpenWin = this.open(l_url, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,	,top=0,left=0");
}
	
 
	function Cargar_Programa(p_idprograma) {   
		l_url = "programa.aspx?p_idprograma="+p_idprograma 	 
		var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=yes,location=no");			 
		nueva.resizeTo(screen.width,screen.height-30)
		nueva.location.href=l_url
		}
		
	function Download (p_link, p_titulo){
		l_url = "http://localhost/NetviaxLa/redir_down.asp?File="+p_link+"&Titulo="+p_titulo 
		window.open(l_url)
	}

function Envio_Correo_Operador(p_asunto,p_mail){

	parent.location.href='mailto:'+p_mail+'?Subject='+p_asunto + ", Consulta desde Netviax" ;	 
	 
}

function Inicio() {	
	
	if (document.all.txt_grabar_vinculo.value=='Ture') {
	
	var altocabezal
	//alert("height: " + window.screen.height)
	if (window.screen.height>767){
	
		 altocabezal = 200;
	}else
	{	
		 altocabezal = 200;
	}
	//alert(altocabezal);
	//var altopie = eval(0 + 229);
	var alto = eval(screen.availHeight - altocabezal);

	document.all.vinculo.style.height = alto;
		
	var iframeprops = ' height='+ alto + ' width=100% frameborder=0'; 
	
	var l_vinculo ='<iframe src=' + document.all.prueba.value + iframeprops +'></iframe>';
	//alert(l_vinculo);
	document.all.vinculo.innerHTML = l_vinculo;
	
	}
}
function doSection(secNum){
  //display the section if it's not displayed; hide it if it is displayed 
  if (secNum.style.display=="none"){secNum.style.display=""}
  else{secNum.style.display="none"}
}

function MostrarOcultar( p_obj ) {		

	if( p_obj.style.display == "" ) {
		p_obj.style.display = "none";
	}
	else {
		p_obj.style.display = "";
	}
	return(false);
}

function Condi(url,barra) { 

 
 
if (barra) {
var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=no,location=no");
} else {
var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=yes,location=no");
}
nueva.resizeTo(screen.width,screen.height-30)
nueva.location.href=url
}

function Condi_menu(item) {   
   if (item.Category != null){
		var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=no,location=no");
 		nueva.resizeTo(screen.width,screen.height-30)
		nueva.location.href=item.Category   
   }
}


function Cargar_info(p_tipo,p_idInfo, p_server) {  
		 
		if (p_server != "") { 
			l_url = "../informaciones.aspx?p_tipo="+p_tipo+"&p_idInfo="+p_idInfo  
		}else{
		 
			l_url = "informaciones.aspx?p_tipo="+p_tipo+"&p_idInfo="+p_idInfo  
		}
	 
		var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=yes,location=no");
			 
		nueva.resizeTo(screen.width,screen.height-30)
		nueva.location.href=l_url
	}


function SetDate(formName, id, newDate, postBack)
{ 
alert(window.opener.document.Form1)
	eval('var theform = document.' + formName + ';');
	popUp.close();
	
	 
	alert("ok")
	//alert(theform.elements[id].value)
	//theform.elements[id].value = newDate;
	//parent.opener.document.form1. + formName + .value = newDate;
	if (postBack)
		__doPostBack(id,'');
}		

function Cargar_Administracion(p_tipo,p_pais){
		
		if (p_pais=="UY" || p_pais == "Uruguay"){
		if (p_tipo=="Ops"){
				l_url = "http://www.netviax.com/public/ops/"		
			}
			if (p_tipo=="Cias"){
				l_url = "http://www.netviax.com/cias/admin/login.asp"			
			}
			if (p_tipo=="Crs"){
				l_url = "http://www.netviax.com/public/crs/admin/login.htm"			
			}
			if (p_tipo=="Asis"){
				l_url = "http://www.netviax.com/public/asistenciaviajeros/admin/login.htm"			
			}			
		}else{
			l_url = "Mantenimiento/login.aspx?tipo="+p_tipo 						
		}
		
		 l_url = "Mantenimiento/login.aspx?tipo="+p_tipo 	
		var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=no,toolbar=yes,location=no");			 
		nueva.resizeTo(screen.width,screen.height-30)
		nueva.location.href=l_url
}

 
function mover(fondo){
 if (event.srcElement.tagName=="TD"){ 
	event.srcElement.style.backgroundColor=fondo; 
  } 
 } 
 function mout(fondo){
  if (event.srcElement.tagName=="TD"){
	 event.srcElement.style.backgroundColor=fondo; 
  } 
}
function webSearch(){
 
	var texto = document.all("txtSearchWords").value;
	var buscador = document.all("selEngines").options[document.all("selEngines").selectedIndex].value;	
	var destino
		if (texto==''){
			alert("Ingrese un texto para comenzar a buscar.")
			document.all("txtSearchWords").value.focus();
			return(false);
		} 
		if (buscador=='yahoo'){
		destino = "http://search.yahoo.com/bin/search?p="+texto;
		} else if (buscador=='yahooesp'){
		destino = "http://search.espanol.yahoo.com/search/espanol?p="+texto;
		} else if (buscador=='altavista'){
		destino = "http://www.altavista.com/cgi-bin/query?pg=q&kl=XX&q="+texto;
		} else if (buscador=='excite'){
		destino = "http://search.excite.com/search.gw?search="+texto+"&Submit=Search";
		} else if (buscador=='hotbot'){
		destino = "http://www.hotbot.com/?MT="+texto+"&SM=MC&DV=0&LG=any&DC=10&DE=2&clickSrc=search&_v=2&OPs=MDRTP";
		} else if (buscador=='lycos'){
		destino = "http://www.lycos.com/cgi-bin/pursuit?cat=dir&query="+texto;
		} else if (buscador=='msn'){
		destino = "http://search.msn.com/results.asp?RS=CHECKED&UN=doc&CO=20&Form=MSNH&MT="+texto;
		} else if (buscador=='webcrawler'){
		destino = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText="+texto;
		} else if (buscador=='go'){
		destino = "http://www.go.com/Titles?qt="+texto+"&col=WW&sv=IS&lk=noframes&svx=home_searchbox";
		}
		window.open(destino,"buscador")
} 
function webSearchEnter(){
 if( event.keyCode == 13 ) {  
		var texto = document.all("txtSearchWords").value; 
		var buscador = document.all("selEngines").options[document.all("selEngines").selectedIndex].value;	
					   
		var destino
		if (texto==''){
			alert("Ingrese un texto para comenzar a buscar.")
			document.all("txtSearchWords").focus();
			return(false);
		}
		if (buscador=='yahoo'){
		destino = "http://search.yahoo.com/bin/search?p="+texto;
		} else if (buscador=='yahooesp'){
		destino = "http://search.espanol.yahoo.com/search/espanol?p="+texto;
		} else if (buscador=='altavista'){
		destino = "http://www.altavista.com/cgi-bin/query?pg=q&kl=XX&q="+texto;
		} else if (buscador=='excite'){
		destino = "http://search.excite.com/search.gw?search="+texto+"&Submit=Search";
		} else if (buscador=='hotbot'){
		destino = "http://www.hotbot.com/?MT="+texto+"&SM=MC&DV=0&LG=any&DC=10&DE=2&clickSrc=search&_v=2&OPs=MDRTP";
		} else if (buscador=='lycos'){
		destino = "http://www.lycos.com/cgi-bin/pursuit?cat=dir&query="+texto;
		} else if (buscador=='msn'){
		destino = "http://search.msn.com/results.asp?RS=CHECKED&UN=doc&CO=20&Form=MSNH&MT="+texto;
		} else if (buscador=='webcrawler'){
		destino = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText="+texto;
		} else if (buscador=='go'){
		destino = "http://www.go.com/Titles?qt="+texto+"&col=WW&sv=IS&lk=noframes&svx=home_searchbox";
		}
		window.open(destino,"buscador")
		return(false);
	}
}

function verItin(){
 
var sistema = document.all("sistema").options[document.all("sistema").selectedIndex].value;
var codigo =  document.all("codigo").value
var apellido =  document.all("apellido").value
if (codigo!="" && apellido!=""){
	 
	if (sistema==1){
		amadeus.RECORD_LOCATOR.value = codigo;
		amadeus.LAST_NAME.value = apellido;
		amadeus.submit();
	} else if (sistema==2){
		galileo.rloc.value = codigo;
		galileo.lastname.value = apellido;
		galileo.submit();
	} else if (sistema==3){
		sabre.pnr.value = codigo;
		sabre.name.value = apellido;
		sabre.submit();
	} else {
		alert('Debe seleccionar un sistema de reservas antes de consultar el itinerario');
		document.all("sistema").focus();
		return false;
	}
} else if (codigo==""){
alert('Debe ingresar un codigo para ver el itinerario correspondiente');
document.all("codigo").focus();
} else if (apellido==""){
alert('Debe ingresar el apellido para ver el itinerario correspondiente');
document.all("apellido").focus();
}
}

function codiguear(){
var codigo = document.all("Codigocity").value
var izq = (screen.width - 400)/ 2;
var arr = (screen.height - 300)/ 2;
var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,height=300,top='+arr+',left='+izq+','
popwin=window.open("codigos.asp?city="+codigo+"","",look)
}

function codiguearEnter(){
	if( event.keyCode == 13 ) {  
		var codigo = document.all("Codigocity").value
		var izq = (screen.width - 400)/ 2;
		var arr = (screen.height - 300)/ 2;
		var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,height=300,top='+arr+',left='+izq+','
		popwin=window.open("codigos.asp?city="+codigo+"","",look)
		return(false);
	}
}

function verclima(){
popwin=window.open("http://espanol.weather.com/search/search/?where="+ document.all("txt_buscar_clima_city").value)
					
}

function verclimaEnter(){
	if( event.keyCode == 13 ) {  
		popwin=window.open("http://espanol.weather.com/search/search/?where="+ document.all("txt_buscar_clima_city").value)
		return(false);
	}				
}
function help(p_tipo) {   
	l_url = "help.aspx?p_tipo="+p_tipo
	OpenWin = this.open(l_url, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=400,height=300,	,top=0,left=0");
}  

function Grande(dire) {
	var nueva=window.open("","","top=0,left=0,scrollbars=yes,resizable=yes,status=no,menubar=yes,toolbar=yes,location=no");
	nueva.resizeTo(screen.width,screen.height-30)
	nueva.location.href=dire
}

function Buscar_interno() {
	var izq = (screen.width - 400)/ 2;
	var arr = (screen.height - 300)/ 2;
	var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=500,height=300,top='+arr+',left='+izq+','
	popwin=window.open("http://intrasoftnt2/quien/internos_consulta1.asp?Nombre="+ document.all("txt_buscar_interno").value,"",look)
}

function Buscar_internoEnter() {
	if( event.keyCode == 13 ) {  
		var izq = (screen.width - 400)/ 2;
		var arr = (screen.height - 300)/ 2;
		var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=500,height=300,top='+arr+',left='+izq+','
		popwin=window.open("http://intrasoftnt2/quien/internos_consulta1.asp?Nombre="+ document.all("txt_buscar_interno").value,"",look)
		return(false);
	}
	
}

function Buscar_destino() {
	var izq = (screen.width - 400)/ 2;
	var arr = (screen.height - 300)/ 2;
	var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=500,height=300,top='+arr+',left='+izq+','
	popwin=window.open("http://intrasoftnt2/quien/internos_consulta_paises.asp?Nombre="+ document.all("txt_buscar_destino").value,"",look)
}

function Buscar_destinoEnter() {
	if( event.keyCode == 13 ) {  
		var izq = (screen.width - 400)/ 2;
		var arr = (screen.height - 300)/ 2;
		var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=500,height=300,top='+arr+',left='+izq+','
		popwin=window.open("http://intrasoftnt2/quien/internos_consulta_paises.asp?Nombre="+ document.all("txt_buscar_destino").value,"",look)
		return(false);
	}
	
}

function ayudar(titulo,texto){
	var izq = (screen.width - 400)/ 2;
	var arr = (screen.height - 250)/ 2;
	var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=230,top='+arr+',left='+izq+','
	popwin=window.open("help.html?titulo=" + titulo + "&texto=" + texto,"",look)
	 
}

function MM_findObj(n, d) { //v4.01
		var p,i,x; if(!d) d=document; 
		if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document;
			n=n.substring(0,p);
		}
		if(!(x=d[n])&&d.all) 
			x=d.all[n]; 
		for (i=0;!x&&i<d.forms.length;i++) 
			x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
			x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) 
			x=d.getElementById(n); 
		return x;
}

function KW_updateItems(d,o,fn) { //v2.6 By Paul Davis www.kaosweaver.com
		var i,s,l=MM_findObj(d),b,z=o.options[o.selectedIndex].value;
		l.length=0;
		l.options[0]=new Option('tbd','tbd');
		b=(z!='nill')?eval(z+'_items'):0;
		for(i=0;i<b.length;i++){
			s=b[i].split("|");
			l.options[i]=new Option(s[1],s[0]);
		}
		l.selectedIndex=0;
		if (!fn) 
			return;
		eval(fn)
}

 function numbersonly(myfield, e, dec)
	{
		var key;
		var keychar;

		if (window.event)
				key = window.event.keyCode;
		else if (e)
				key = e.which;
			else
				return true;
		keychar = String.fromCharCode(key);

		// control keys
		if ((key==null) || (key==0) || (key==8) || 
			(key==9) || (key==13) || (key==27) )
			return true;

		// numbers
		else if ((("0123456789").indexOf(keychar) > -1))
				return true;

		// decimal point jump
				else if (dec && (keychar == "."))
					{
						myfield.form.elements[dec].focus();						
						return false;
					}
				else
				return false;
		}
		
	 function Cargar_Itinerarios() { 
		
		var tipo_itinerario;
		var codigo_itinerario;
	
		codigo_itinerario = document.all("codigo_itinerario").value;
	
		tipo_itinerario = document.all("itinerario").options[document.all("itinerario").selectedIndex].value;
		 
	
		popwin=window.open("help.html?codigo_itinerario=" + codigo_itinerario + "&tipo_itinerario=" + tipo_itinerario,"")
	}
	

	
	function guia() {			
				
			if( event.keyCode == 13 ) {  
				 		 
				l_url = "metabusc_main.aspx?p_texto_buscar=" + document.all("txt_buscar_guia").value
				var izq = (screen.width - 750)/ 2;
				var arr = (screen.height - 600)/ 2;
				var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=720,height=510,top='+arr+',left='+izq+','
				popwin=window.open(l_url,"",look)
				return(false);			
			}
	}  
	
	function guia_clic() {		 			   
				l_url = "metabusc_main.aspx?p_texto_buscar=" + document.all("txt_buscar_guia").value
				var izq = (screen.width - 750)/ 2;
				var arr = (screen.height - 600)/ 2;
				var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=720,height=510,top='+arr+',left='+izq+','
				popwin=window.open(l_url,"",look)
				return(false);				
			 
	}   
	
	function Ayuda_Buscador_PaquetesOP () {
		l_url = "Ayuda_Buscador_PaquetesOP.html"
				var izq = (screen.width - 750)/ 2;
				var arr = (screen.height - 600)/ 2;
				var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=720,height=510,top='+arr+',left='+izq+','
				popwin=window.open(l_url,"",look)
				return(false);
	
	}
	
		function Ayuda_Acrobat () {
		l_url = "Ayuda_Acrobat.html"
				var izq = (screen.width - 750)/ 2;
				var arr = (screen.height - 600)/ 2;
				var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=720,height=510,top='+arr+',left='+izq+','
				popwin=window.open(l_url,"",look)
				return(false);
	
	}
	
	function pop_up(p_url,p_alto,p_ancho) {		 
				
				l_url = p_url
				var izq = (screen.width - 750)/ 2;
				var arr = (screen.height - 600)/ 2;
				var look='toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=' + p_ancho +',height=' + p_alto + ',top='+arr+',left='+izq+','
				popwin=window.open(l_url,"",look)
				return(false);				
			 
	} 
	 
 
	 function Buscar_en_Netviax_clic() {
		if( event.keyCode == 13 ) {  			 	 
			location.href="MetabuscadorNetviax.aspx?p_texto_buscar=" + document.all("txt_123buscarNetviax").value
			return(false);
		}		
	}		 
	
	function Buscar_en_Netviax_clic_boton() {
		location.href="MetabuscadorNetviax.aspx?p_texto_buscar=" + document.all("txt_123buscarNetviax").value
		return(false);		
	}	
	
	function Cambiar_Color(td,color){
		td.bgColor= color;
	}
	
	function Nva2(page) {
		OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,	,top=0,left=0");
	}	
	