// JavaScript Document
var a ;

function search_popup(theURL,winName,features)
{
  window.open(theURL,winName,features).focus();
}

function dispaly_value()
{
    var a = window.document.frm_flight.test.value;
	document.getElementById('displayDiv').innerHTML=a;

	
}

function blinkIt() {
	if (!document.all) 
	  return;
	else {
		for(i=0;i<document.all.tags('blink').length;i++){
			s=document.all.tags('blink')[i];
			s.style.visibility=(s.style.visibility=='visible') ?'hidden':'visible';
		}
	}
}

function air_tcket_search(dep, des, via, type){
    document.frm_promotion.txt_departure_id.value = dep;
	document.frm_promotion.txt_arrival_id.value   = des;
	document.frm_promotion.dr_airline.value       = via;
	document.frm_promotion.rd_flight_type.value   = type;
	document.frm_promotion.submit();
}

function air_tcket_search_inter(des,via){
	document.frm_promotion.txt_arrival_id.value = des;
    document.frm_promotion.dr_airline.value = via; 
    document.frm_promotion.rd_flight_type.value = "RT";
    document.frm_promotion.submit();
}
		

function Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
};

var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
