function getPreviousSibling(elt){
     var x=elt;
     do{
          x=x.previousSibling;
     }while(x&&!x.tagName);
     return x;
}

function getNextSibling(elt){
     var x=elt;
     do{
          x=x.nextSibling;
     }while(x&&!x.tagName);
     return x;
}

function nothing(){
	return false;
}
function checkURL(){
	var url = location.toString();
	if(url.indexOf('flightticket.cfm')!=-1){
		document.getElementById('b1').onclick = new Function("return nothing()");
		document.getElementById('b1').style.backgroundImage = "url(./gfx/button_on_03.gif)";
		}
	if(url.indexOf('package.cfm')!=-1){
		document.getElementById('b2').onclick = new Function("return nothing()");
		document.getElementById('b2').style.backgroundImage = "url(./gfx/button_on_04.gif)";
		}
	if(url.indexOf('hotel.cfm')!=-1){
		document.getElementById('b3').onclick = new Function("return nothing()");
		document.getElementById('b3').style.backgroundImage = "url(./gfx/button_on_05.gif)";
		}
	if(url.indexOf('hotel_only.cfm')!=-1){
		document.getElementById('b3').onclick = new Function("return nothing()");
		document.getElementById('b3').style.backgroundImage = "url(./gfx/button_on_05.gif)";
		}
	if(url.indexOf('car.cfm')!=-1){
		document.getElementById('b4').onclick = new Function("return nothing()");
		document.getElementById('b4').style.backgroundImage = "url(./gfx/button_on_06.gif)";
		}
}
