// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);	
}
var mColor = '#7fd7ff'
var mColor1 = '#FFFFFF'
var mColor2 = '#ff9900'
var mColor3 = '#FFFFFF'
var mColor4 = '#ffffff'
function mOvr(src, colorProfile) {		
	// if (!src.contains(event.fromElement)) {
	src.style.cursor = 'pointer';	 
	src.style.backgroundColor = colorProfile;
	//}
}

function mOut(src,clrIn) {
	//if (!src.contains(event.toElement)) {
	src.style.cursor = 'default';	
	src.style.backgroundColor = clrIn;
	//}
}

function menuActive(src,imgID){
	src.style.cursor = 'pointer';	 
	src.style.backgroundColor = '#0a599e';
	document.getElementById('imgID'+imgID).src="../images/icons/arrowP.gif";
	src.style.color = '#FFFFFF';
}

function menuPassive(src,imgID){
	src.style.cursor = 'default';	 
	src.style.backgroundColor = '';
	document.getElementById('imgID'+imgID).src="../images/icons/arrowA.gif";
	src.style.color = '';
}


function OpenPrint(URL,name,features)
{
	window.open(URL,name,features)
}


function DivchangestateFAQ(SubjectID)
{
	if (document.all('subjdivFAQ'+SubjectID).style.visibility=='hidden')
 {
  document.all('subjdivFAQ'+SubjectID).style.visibility='visible';
  document.all('subjdivFAQ'+SubjectID).style.display='';  
 }
 else
 {
  document.all('subjdivFAQ'+SubjectID).style.visibility='hidden';
  document.all('subjdivFAQ'+SubjectID).style.display='none';
  
 }
 
}

function changestateFAQ(tableID)
{
 if (document.all('answerFAQ'+tableID).style.visibility=='hidden')
 {
  document.all('imgFAQ'+tableID).src="../images/icons/bullet.gif";
  document.all('answerFAQ'+tableID).style.visibility='visible';
  document.all('answerFAQ'+tableID).style.display='';  
 }
 else
 {
  document.all('answerFAQ'+tableID).style.visibility='hidden';
  document.all('answerFAQ'+tableID).style.display='none';
  document.all('imgFAQ'+tableID).src="../images/Icons/bullet.gif";
 }

}

function viewWaiting()
{
 document.all('SearchDiv').style.visibility='hidden';
 document.all('SearchDiv').style.display='none';
  document.all('SearchDiv1').style.visibility='hidden';
 document.all('SearchDiv1').style.display='none';
 
 document.all('waitingDiv').style.visibility='visible';
 document.all('waitingDiv').style.display='block';
 form1.submit();
} 
function viewWaitingBos()
{
 document.getElementById('SearchDiv').style.visibility='hidden';
 document.getElementById('SearchDiv').style.display='none';
 document.getElementById('waitingDiv').style.visibility='visible';
 document.getElementById('waitingDiv').style.display='block';
}




// / carhire========================================================================

function formControl()
{
if ((document.getElementById('StationCountryID').value=='')||(document.getElementById('DepartureStationID').value=='')||(document.getElementById('ArrivalStationID').value=='')||(document.getElementById('DepartureDate').value=='')||(document.getElementById('ArrivalDate').value=='')||(document.getElementById('CarID').value==''))
{
alert('Missed Value');
}else{
document.formCar.action='CarHireList.asp';
document.formCar.submit();
}
}
function viewWaiting2(){
	document.getElementById('SearchDiv').style.visibility='hidden';
	document.getElementById('SearchDiv').style.display='none';
	document.getElementById('waitingDiv').style.visibility='visible';
	document.getElementById('waitingDiv').style.display='block';
	document.getElementById('subBtnMenu').value='2';
	document.formCar.submit();
}
function DepartureStationChange()
{
document.getElementById('ArrivalStationID').value=document.getElementById('DepartureStationID').value;
}


function Roundtripselected()
{ 
	//document.all.radioRoundtrip.checked=true; 
	document.all.roundtripDiv.disabled=false;
	document.all.ReturnDateDay.disabled=false;
	document.all.ReturnMonthYear.disabled=false;
	document.getElementById('TabRoundtripselected').className='first centerMenuCurrent';	
	document.getElementById('TabOnewayselected').className='';	
	document.getElementById('SearchType').value='roudtrip';
}

function Onewayselected()
{
	//document.all.radioOneWay.checked=true;
	document.all.roundtripDiv.disabled=true;
	document.all.ReturnDateDay.disabled=true; 
	document.all.ReturnMonthYear.disabled=true;
	document.getElementById('TabRoundtripselected').className='first';	
	document.getElementById('TabOnewayselected').className='centerMenuCurrent';	
	document.getElementById('SearchType').value='oneway';
}

function OpenSelected()
{
	document.all.radioOpen.checked=true;
	document.all.roundtripDiv.disabled=true;
	document.all.ReturnDateDay.disabled=true; 
	document.all.ReturnMonthYear.disabled=true;
	document.getElementById('SearchType').value='open';
}