function getXMLHTTP() { //fuction to return the xml http object		var xmlhttp=false;			try{			xmlhttp=new XMLHttpRequest();		}		catch(e)	{					try{							xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");			}			catch(e){				try{				req = new ActiveXObject("Msxml2.XMLHTTP");				}				catch(e1){					xmlhttp=false;				}			}		}		 			return xmlhttp;	}function getSubCat(strURL){       var req = getXMLHTTP(); // fuction to get xmlhttp object     if (req)     {      req.onreadystatechange = function()      {		 		  if (req.readyState == 4)		  { //data is retrieved from server		 	   if (req.status == 200)			   	{ // which reprents ok status 					 document.getElementById('subCatDiv').innerHTML=req.responseText;				}		       else		       { 				 alert("There was a problem while using XMLHTTP:\n");		       }    	   }                  }            req.open("GET", strURL, true); //open url using get method    req.send(null);	}}function PopupCenter(pageURL, title,w,h) {var left = (screen.width/2)-(w/2);var top = (screen.height/2)-(h/2);var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}function cck() {if ($("#airlineid").val()=='') { document.getElementById("airlineid").className = 'fme'; $("#airlineid").focus(); return false;} else { document.getElementById("airlineid").className ='fmm';}if ($("#fromid").val()=='') { document.getElementById("fromid").className = 'fme'; $("#fromid").focus(); return false;} else { document.getElementById("fromid").className ='fmm';}if ($("#toid").val()=='') { document.getElementById("toid").className = 'fme'; $("#toid").focus(); return false;} else { document.getElementById("toid").className ='fmm';}if ($("#datefrom").val()=='') { document.getElementById("datefrom").className = 'fme'; $("#datefrom").focus(); return false;} else { document.getElementById("datefrom").className ='fmm';}if ($("#direction:checked").val()!=null && $("#xdateto").val()=='') { document.getElementById("xdateto").className = 'fme'; $("#xdateto").focus(); return false;} else { document.getElementById("xdateto").className ='fmm';}return true;}function bookmark() {	if(window.sidebar) { window.sidebar.addPanel(document.title,document.location.href,""); }	else if( document.all ) { window.external.AddFavorite(document.location.href,document.title); }	else { alert("Rất tiếc! Trình duyệt của bạn không hỗ trợ đặt Bookmark!"); }}function bookmarksite(title, url){	if (document.all)	window.external.AddFavorite(url, title);	else if (window.sidebar)	window.sidebar.addPanel(title, url, "")}function h() {	document.writeln('<embed flashvars=\"link=#\" src=\"http://www.vtidgroup.com.vn/images/h.swf\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\" />');}function h_en() {	document.writeln('<embed flashvars=\"link=#\" src=\"http://www.vtidgroup.com.vn/images/h_en.swf\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\" />');}function h_ja() {	document.writeln('<embed flashvars=\"link=#\" src=\"http://www.vtidgroup.com.vn/images/h_ja.swf\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\" />');}function h_kr() {	document.writeln('<embed flashvars=\"link=#\" src=\"http://www.vtidgroup.com.vn/images/h_kr.swf\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\"/>');}function h_cn() {	document.writeln('<embed flashvars=\"link=#\" src=\"http://www.vtidgroup.com.vn/images/h_cn.swf\" type=\"application/x-shockwave-flash\" width=\"468\" height=\"60\" wmode=\"transparent\"/>');}function toggle( targetId ){	if (document.getElementById)	{		target = document.getElementById( targetId );		if (target.style.display == "none")		{			target.style.display = "";		}		else		{			target.style.display = "none";		}	}}
