function autoSave(_1,_2,_3){
var _4=new R9HTTPXml();
var s="/"+_1+"/autosave.jsp?searchid="+_2+"&resultid="+_3;
_4.init(s);
_4.asyncGET(null);
}
function r9escape(s){
var ns=s.replace("+","%2b");
return escape(ns);
}
function openHelpWindow(_8,_9){
var _a="height=400,width=700,location=no,menubar=no,resizable=yes,toolbar=yes,status=no,scrollbars=yes";
var _b="/help.html#"+_9;
var _c=window.open(_b,"help",_a);
_c.focus();
}
function openSmallerWindow(_d,_e,_f,_10){
if(_f==null||_f<0){
_f=600;
}
if(_10==null||_10<0){
_10=600;
}
var _11="height="+_10+",width="+_f+",location=no,menubar=no,resizable=yes,toolbar=no,status=no,scrollbars=yes";
var _12=window.open(_e,_d,_11);
_12.focus();
return (false);
}
function ReadCookie(_13){
var _14=""+document.cookie;
var ind=_14.indexOf(_13);
if(ind==-1||_13==""){
return "";
}
var _16=_14.indexOf(";",ind);
if(_16==-1){
_16=_14.length;
}
return unescape(_14.substring(ind+_13.length+1,_16));
}
function DeleteCookie(_17){
if(ReadCookie(_17)){
document.cookie=_17+"="+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
function SetCookie(_18,_19,_1a,_1b){
var _1c=new Date();
var _1d=new Date();
if(_1a==null||_1a==0){
_1a=1;
}
_1d.setTime(_1c.getTime()+3600000*24*_1a);
var _1e=_18+"="+escape(_19)+";expires="+_1d.toGMTString();
if(_1b){
_1e+=";path=/;domain="+_1b;
}
document.cookie=_1e;
}
function showdiv3(_1f){
showhidediv(obrev,"visible");
}
function hidediv3(_20){
showhidediv(obrev,"hidden");
}
function showhidediv3(_21,_22){
if(document.all){
eval("document.all."+_21+".style.visibility = state");
}
if(document.layers){
document.layers[_21].visibility=_22;
}
if(document.getElementById&&!document.all){
obj=document.getElementById(_21);
obj.style.visibility=_22;
}
}
function showhidediv(_23,_24){
if(document.getElementById){
document.getElementById(_23).style.visibility=_24;
}
}
function hidediv(_25){
showhidediv(_25,"hidden");
}
function showdiv(_26){
showhidediv(_26,"visible");
}
function r9_addbm(url,_28){
if(window.external){
window.external.AddFavorite(url,_28);
}else{
alert("Sorry, your browser will not do this automatically.  Try hitting Ctrl+D after you click 'OK'");
}
}
function escapeForXML(str){
var _2a=escape(str);
return _2a.replace(/\+/g,"%2b");
}
function kmail(_2b){
document.write("<a class=\"mlink\" href=\"mai"+"lto:"+_2b+"&#64;kayak&#46;com\">"+_2b+"&#64;kayak&#46;com</a>");
}
function validateEmail(_2c){
if(_2c.length<=0){
return false;
}
var _2d=_2c.match("^(.+)@(.+)$");
if(_2d==null){
return false;
}
if(_2d[1]!=null){
var _2e=/^\"?[\w-_\.\+]*\"?$/;
if(_2d[1].match(_2e)==null){
return false;
}
}
if(_2d[2]!=null){
var _2f=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
if(_2d[2].match(_2f)==null){
var _30=/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
if(_2d[2].match(_30)==null){
return false;
}
}
return true;
}
return false;
}

function roundTo(num,_32,up){
	if(up==null){
		up=true;
	}
	
	var _34=Math.floor(num/_32);
	
	if((num%_32)>0) {
		if(up) {
			return ((_34+1)*_32);
		}else{
			return (_34*_32);
		}
	}else{
		return num;
	}
}

function isIE5dotX(){
var _35=0;
if(navigator.appVersion.indexOf("MSIE")!=-1){
temp=navigator.appVersion.split("MSIE");
_35=parseFloat(temp[1]);
if(_35>=5&&_35<6){
return true;
}
}
return false;
}
function taLimit(_36,_37){
if(_36.value.length==_37*1){
if(event.returnValue){
event.returnValue=false;
}else{
if(event.preventDefault){
event.preventDefault();
}else{
return false;
}
}
}
}
function taCount(_38,_39,_3a,_3b){
if(_38.value.length>_3b*1){
_38.value=_38.value.substring(0,_3b*1);
}
if(_39){
_39.style.visibility="visible";
}
if(_3a){
_3a.innerHTML=_3b-_38.value.length;
}
}
function sStat(_3c){
try{
window.status=_3c;
}
catch(ignored){
}
return true;
}
function cStat(_3d){
window.status="";
}
function findPosX(obj){
var _3f=0;
if(obj.offsetParent){
while(obj.offsetParent){
_3f+=obj.offsetLeft;
obj=obj.offsetParent;
}
}else{
if(obj.x){
_3f+=obj.x;
}
}
return _3f;
}
function findPosY(obj){
var _41=0;
if(obj.offsetParent){
while(obj.offsetParent){
_41+=obj.offsetTop;
obj=obj.offsetParent;
}
}else{
if(obj.y){
_41+=obj.y;
}
}
return _41;
}
function selectByValue(_42,_43){
if(_42==null||typeof _42.length=="undefined"){
return;
}
for(var i=0;i<_42.length;i++){
if(_42[i].value==_43){
_42.selectedIndex=i;
break;
}
}
}
function selectByStartsWith(_45,_46){
if(_45==null||typeof _45.length=="undefined"){
return;
}
for(var i=0;i<_45.length;i++){
if((_45[i].value).indexOf(_46)==0){
_45.selectedIndex=i;
break;
}
}
}
function getSelectByValue(_48,_49){
for(var i=0;i<_48.length;i++){
if(_48[i].value==_49){
return i;
}
}
return -1;
}
function getRadioValue(_4b){
/*for(var i=0;i<_4b.length;i++){
if(_4b[i].checked){
return _4b[i].value;
}
}*/
return null;
}
function setRadioValue(_4d,_4e){
for(var i=0;i<_4d.length;i++){
if(_4d[i].value==_4e){
_4d[i].checked;
return true;
}
}
return false;
}

function showmessage(_50) {
	var _51=document.getElementById("messagebox");
	if(_51!=null){
		_51.innerHTML=_50;
		_51.style.left=Math.round((document.body.clientWidth-_51.offsetWidth)/2)+"px";
		_51.style.top=Math.round(((document.body.clientHeight-_51.offsetHeight)/3)+document.body.scrollTop)+"px";
		_51.style.visibility="visible";
	}
}

function hidemessage() {
	var _52=document.getElementById("messagebox");
	if(_52!=null){
		_52.innerHTML="";
		_52.style.visibility="hidden";
	}
}

function htmlSafe(_53){
_53=_53.replace(/\&/g,"&amp;");
_53=_53.replace(/>/g,"&gt;");
_53=_53.replace(/</g,"&lt;");
return _53;
}
function stripSpaces(_54){
_54=_54.replace(/\s/g,"");
return _54;
}
function showTT(_55,_56,_57){
hideAllTT();
obj=document.getElementById("ttip"+_57);
document.getElementById("ttipText"+_57).innerHTML=_56;
obj.style.visibility="hidden";
obj.style.display="block";
var _58=findPosY(_55);
var _59=findPosX(_55);
if(_57=="BL"){
_58=_58-obj.offsetHeight+5;
_59=_59+_55.offsetWidth-50;
}else{
if(_57=="TL"){
_58=_58+_55.offsetHeight-5;
_59=_59+_55.offsetWidth-50;
}
}
obj.style.top=_58+"px";
obj.style.left=_59+"px";
obj.style.zIndex="99";
obj.style.visibility="visible";
}
function hideAllTT(){
stoptime();
var _5a=new Array("BL","TL");
for(var i=0;i<_5a.length;i++){
var o=document.getElementById("ttip"+_5a[i]);
if(o!=null){
o.style.display="none";
}
}
if(typeof localTTHidden=="function"){
localTTHidden();
}
}
var ttipTimerID=null;
function starttime(x){
if(ttipTimerID==null){
var t=10000;
if(x!=null){
t=t*x;
}
ttipTimerID=setTimeout("hideAllTT()",t);
}
}
function stoptime(){
if(ttipTimerID!=null){
clearTimeout(ttipTimerID);
ttipTimerID=null;
}
}
function simpleurl(_5f){
if(_5f==null){
return _5f;
}
var _60=(_5f.indexOf("http://")==0);
var _61=_5f.indexOf("/",_60?7:0);
var _62=null;
if(_61>0){
_62=_5f.substring(_60?7:0,_61);
}else{
_62=_5f.substring(_60?7:0);
}
if(_62.indexOf("www.")==0){
return _62.substring(4);
}
return _62;
}
function hideTableRow(id){
var _64=document.getElementById(id);
if(_64==null){
return;
}
_64.style.display="none";
}
function showTableRow(id){
var _66=document.getElementById(id);
if(_66==null){
return;
}
var _67=(((navigator.appName).indexOf("Microsoft")>-1)?true:false);
if(_67){
_66.style.display="block";
}else{
_66.style.display="table-row";
}
}
function hideTbody(id){
var _69=document.getElementById(id);
if(_69==null){
return;
}
_69.style.display="none";
}
function showTbody(id){
var _6b=document.getElementById(id);
if(_6b==null){
return;
}
var _6c=(((navigator.appName).indexOf("Microsoft")>-1)?true:false);
if(_6c){
_6b.style.display="block";
}else{
_6b.style.display="table-row-group";
}
}
function cleanUrl(url){
if(url.indexOf("http")!=0){
if(url.length<=1017){
url="http://"+url;
}else{
url="http://"+url.substring(0,1017);
}
}
return url;
}
function isBadUrl(url){
url=cleanUrl(url);
if(url.match(/^https?\:\/\/([A-Za-z0-9\-]*\.){1,}[A-Za-z0-9]{1,3}(\:[0-9]*)?[\/\?][^\s]*$/)||url.match(/^https?\:\/\/([A-Za-z0-9\-]*\.){1,}[A-Za-z0-9]{1,3}(\:[0-9]*)?$/)){
return false;
}else{
return true;
}
}
function animateHeight(_6f,_70,_71,_72,_73,_74){
if(_6f.heightChangeMemInt){
window.clearInterval(_6f.heightChangeMemInt);
}
var _75=0;
_6f.heightChangeMemInt=window.setInterval(function(){
_6f.currentHeight=easeInOut(_70,_71,_72,_75,_74);
_6f.style.height=_6f.currentHeight+"px";
_75++;
if(_75>_72){
window.clearInterval(_6f.heightChangeMemInt);
}
},_73);
}
function easeInOut(_76,_77,_78,_79,_7a){
var _7b=_77-_76;
var _7c=_76+(Math.pow(((1/_78)*_79),_7a)*_7b);
return Math.ceil(_7c);
}
function clearAnimation(_7d){
if(_7d.heightChangeMemInt){
window.clearInterval(_7d.heightChangeMemInt);
}
}
function replaceArgs(){
str=arguments[0];
for(var i=1;i<=arguments.length;i++){
str=str.replace("{"+(i-1).toString()+"}",arguments[i]);
}
return str;
}
function correctPNG(){
var _7f=navigator.appVersion.split("MSIE");
var _80=parseFloat(_7f[1]);
if((_80>=5.5&&_80<7)&&(document.body.filters)){
for(var i=0;i<document.images.length;i++){
var img=document.images[i];
var _83=img.src.toUpperCase();
if(_83.substring(_83.length-3,_83.length)=="PNG"){
var _84=(img.id)?"id='"+img.id+"' ":"";
var _85=(img.className)?"class='"+img.className+"' ":"";
var _86=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' ";
var _87="display:inline-block;"+img.style.cssText;
if(img.align=="left"){
_87="float:left;"+_87;
}
if(img.align=="right"){
_87="float:right;"+_87;
}
if(img.parentElement.href){
_87="cursor:hand;"+_87;
}
var _88="<span "+_84+_85+_86+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+_87+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+img.src+"', sizingMethod='scale');\"></span>";
img.outerHTML=_88;
i=i-1;
}
}
}
}
// r9compressed
