function sendValue(FHdesttoname,DestTo,DestFrom,depd,repd,day1,day2,htlname)
{
document.flthtlSearch1.FHdesttoname.value=FHdesttoname;
document.flthtlSearch1.FHDestTo.value=DestTo;
document.flthtlSearch1.FHDestFrom.value=DestFrom;
document.flthtlSearch1.FHDayMonth.value=day1;
document.flthtlSearch1.FHDptDateDDMMYY.value=depd;
document.flthtlSearch1.FHDayMonthRet.value=day2;
document.flthtlSearch1.FHRetDateDDMMYY.value=repd;
document.flthtlSearch1.FHAdult.value=2;
document.flthtlSearch1.FHChild.value=0;
document.flthtlSearch1.FHInfant.value=0;
document.flthtlSearch1.FHSngRoom.value=0;
document.flthtlSearch1.FHTwnRoom.value=0;
document.flthtlSearch1.FHDblRoom.value=1;
document.flthtlSearch1.FHTplRoom.value=0;
document.flthtlSearch1.FHAirLine.value="ALL";
document.flthtlSearch1.RequestType.value="FLTHTL";
document.flthtlSearch1.hname.value=htlname;
document.flthtlSearch1.hod.value=1;
document.flthtlSearch1.target="_top";
document.flthtlSearch1.method="post";
document.flthtlSearch1.action = "flighthotel.aspx";
document.flthtlSearch1.submit();
}	
	//scroll
currentvalue =1;   
scrollStep=1

timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){

  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){

  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function scrollDivBottom(id){

  clearTimeout(timerRight)

  document.getElementById(id).scrollTop -= scrollStep
  timerRight=setTimeout("scrollDivBottom('"+id+"')",20)
 
}
function scrollDivTop(id){

  clearTimeout(timerRight)
if(currentvalue == document.getElementById(id).scrollTop)
  document.getElementById(id).scrollTop = 0;
  currentvalue = document.getElementById(id).scrollTop;
  document.getElementById(id).scrollTop += scrollStep
  timerRight=setTimeout("scrollDivTop('"+id+"')",100)
  
}
function Test(id)
{
  clearTimeout(timerRight)

  document.getElementById(id).scrollTop -= scrollStep
  timerRight=setTimeout("Test('"+id+"')",20)

}
function loopDelay(numberMillis) { 
var now = new Date(); 
var exitTime = now.getTime() + numberMillis; 
while (true) { 
now = new Date(); 
if (now.getTime() > exitTime) 
return; 
} 
} 


function scrollDivBottom(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollBottom-=scrollStep
  timerLeft=setTimeout("scrollDivBottom('"+id+"')",10)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}

