// JavaScript Document

function roundReturn(obj)
{
var obj2;
obj2=document.getElementById("returning2");
if(obj=="wayone")
{
obj2.className="hide";
}
else if(obj=="wayRound")
{obj2.className="show1";
}
}

function turnto(oo)
 {
 if(oo=="flight_t")
 {
  document.getElementById("flight_t").className="active";
  document.getElementById("trr1").className="show1";
  document.getElementById("hotel_t").className="";
  document.getElementById("trr2").className="hide";
 }
 else if(oo=="hotel_t")
 {
  document.getElementById("flight_t").className="";
  document.getElementById("trr1").className="hide";
  document.getElementById("hotel_t").className="active";
  document.getElementById("trr2").className="show1";
 }
 }
 
function jumptolink(what){
var arrivaldate=document.form2.arrivaldate123.value;
var departuredate=document.form2.departuredate123.value;
if(arrivaldate=="")
{
 alert("Please enter your Check-in date");
 return false;
}
if(departuredate=="")
{
 alert("Please enter your Check-out date");
 return false;
 }
 if(what.selectedIndex==0)
 {
  alert("Please select the destination city");
  return false;
 }
var arrival,departure;
writecookie("arrival",arrivaldate);
writecookie("departure",departuredate);
var selectedopt=what.options[what.selectedIndex];
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value);
else
window.location=selectedopt.value;
}

 