function toggle(element) {
	if (document.getElementById(element).style.display == "none") {
		document.getElementById(element).style.display = "";
		//this.src="images/sonfiyat/fdetailOpen_tr.png";
	} else {
		document.getElementById(element).style.display = "none";
		//this.src="images/sonfiyat/fdetailClose_tr.png";
	}
}

function vizeToggle(obj,id1,id2,id3) {
	txt = obj.options[obj.selectedIndex].value;
	document.getElementById(id1).style.display = 'none';
	document.getElementById(id2).style.display = 'none';
	document.getElementById(id3).style.display = 'none';
	if ( txt.match(id1) ) {
		document.getElementById(id1).style.display = 'block';
	}
	else if ( txt.match(id2) ) {
		document.getElementById(id2).style.display = 'block';
	}
	else if ( txt.match(id3) ) {
		document.getElementById(id3).style.display = 'block';
	}
}

function showHide2(vThis){
	vParent = vThis.parentNode.parentNode;
	vSibling = vParent.nextSibling;
	while (vSibling.nodeType==3) {   // Fix for Mozilla/FireFox Empty Space becomes a TextNode or Something
    	vSibling = vSibling.nextSibling;
  	};

	if(vSibling.style.display == "none"){
		vThis.src="images/sonfiyat/fdetailClose_tr.png";
		vThis.alt = "Hide";
		vSibling.style.display = "";
	} else {
		vSibling.style.display = "none";
		vThis.src="images/sonfiyat/fdetailOpen_tr.png";
		vThis.alt = "Show";
	}
return;
}
function showHide2En(vThis){
	vParent = vThis.parentNode.parentNode;
	vSibling = vParent.nextSibling;
	while (vSibling.nodeType==3) {   // Fix for Mozilla/FireFox Empty Space becomes a TextNode or Something
    	vSibling = vSibling.nextSibling;
  	};

	if(vSibling.style.display == "none"){
		vThis.src="images/sonfiyat/fdetailClose_en.png";
		vThis.alt = "Hide";
		vSibling.style.display = "";
	} else {
		vSibling.style.display = "none";
		vThis.src="images/sonfiyat/fdetailOpen_en.png";
		vThis.alt = "Show";
	}
return;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}
//SEARCH
function hideDiv(id){
   document.getElementById(id).style.display = 'none';
   //document.getElementById(id).style.visibility = 'hidden';
}
function showDiv(id){
   document.getElementById(id).style.display = '';
   //document.getElementById(id).style.visibility = 'visible';
}
/*import flash.external.ExternalInterface;

ExternalInterface.call("hideDiv", "my_div_id");

on (release) {
import flash.external.ExternalInterface;
ExternalInterface.call("hideDiv", "my_div_id");
}*/
/*function PassengerType(){
	switch (document.form1.cmbPassengerType.value){
		case 'ADT':
			document.form1.cmbChild.disabled = false;
			document.form1.cmbInfant.disabled = false;
			break;			
		case 'STU':
		case 'YTH':
		case 'YCD':
			document.form1.cmbChild.value = 0;
			document.form1.cmbInfant.value = 0;
			document.form1.cmbChild.disabled = true;
			document.form1.cmbInfant.disabled = true;
			break;			
	}
}
function owFlight(){
	document.form1.txtRetDate.disabled = true;
}
function rtFlight(){
	document.form1.txtRetDate.disabled = false;
}*/
/*function intlFlight(){
	// document.getElementById(id).style.display = 'none';
	document.forms['form1'].queryType.value = 'fTypeIntlFlight';
	document.getElementById('txtqueryType').innerText = 'fTypeIntlFlight';
	//document.form1.oneWay.checked = false;
	document.form1.txtRetDate.disabled = false;
	document.form1.roundTrip.checked = true;
	showDiv('intlFlightFromTo');
	hideDiv('domesFlightFromTo');
	showDiv('domesFlightClassPsgType');
	showDiv('flightFormDiv');
	hideDiv('hotelFormDiv');
	hideDiv('carFormDiv');
}
function dmsFlight(){
	document.forms['form1'].queryType.value = 'fTypeDmsFlightThy';
	document.getElementById('txtqueryType').innerText = 'fTypeDmsFlightThy';
	document.form1.txtRetDate.disabled = false;
	document.form1.roundTrip.checked = true;
	hideDiv('intlFlightFromTo');
	showDiv('domesFlightFromTo');
	hideDiv('domesFlightClassPsgType');
	showDiv('flightFormDiv');
	hideDiv('hotelFormDiv');
	hideDiv('carFormDiv');
}
function dmsFlightThy(){
	document.forms['form1'].queryType.value = 'fTypeDmsFlightThy';
	document.getElementById('txtqueryType').innerText = 'fTypeDmsFlightThy';
}
function dmsFlightAtlas(){
	document.forms['form1'].queryType.value = 'fTypeDmsFlightAtlas';
	document.getElementById('txtqueryType').innerText = 'fTypeDmsFlightAtlas';
	//document.getElementById('domesImgSrc').src="images/airlines/atlas.gif";
}
function intlHotel(){
	document.forms['form1'].queryType.value = 'fTypeIntlHotel';
	document.getElementById('txtqueryType').innerText = 'fTypeIntlHotel';
	showDiv('hotelFormDiv');
	hideDiv('carFormDiv');
	hideDiv('flightFormDiv');
}
function intlCar(){
	document.forms['form1'].queryType.value = 'fTypeIntlCar';
	document.getElementById('txtqueryType').innerText = 'fTypeIntlCar';
	showDiv('carFormDiv');
	hideDiv('hotelFormDiv');
	hideDiv('flightFormDiv');
	
}*/