// Java
function SDI_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=SDI_findObj(n,d.layers[i].document); return x;
}

function SDI_showHideLayers() { //v3.0
var i,p,v,obj,args=SDI_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=SDI_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}


function HandleChangeEng() {
parent.document.location.href="eng/";
}

function HandleChangeTR() {
parent.document.location.href="../";
}

function PostBack() {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
	theform = document.ulkeler;
} else {
	theform = document.forms["ulkeler"];
}
theform.submit();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

if (document.images) {
     button1 = new Image
	 button1a = new Image
     button2 = new Image
	 button2a = new Image
	 button3 = new Image
	 button3a = new Image
	 button4 = new Image
	 button4a = new Image
	 button5 = new Image
	 button5a = new Image
	 button6 = new Image
	 button6a = new Image
	 button7 = new Image
	 button7a = new Image

     button1.src = 'img/8.png'
	 button1a.src = 'img/8a.png'
	 button2.src = 'img/9.png'
     button2a.src = 'img/9a.png'
	 button3.src = 'img/10.png'
	 button3a.src = 'img/10a.png'
	 button4.src = 'img/11.png'
	 button4a.src = 'img/11a.png'
	 button5.src = 'img/12.png'
	 button5a.src = 'img/12a.png'
	 button6.src = 'img/13.png'
	 button6a.src = 'img/13a.png'
	 button7.src = 'img/14.png'
	 button7a.src = 'img/14a.png'
 }

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function CheckType1() {
	qf.External_FlightFareSearch_ReturnDate.value = "";
	donus.disabled = true;
	qf.External_FlightFareSearch_ReturnDate.disabled = true;
}
 
function CheckType2() {
	qf.External_FlightFareSearch_ReturnDate.value = "";
	donus.style.display = "";
	donus.disabled = false;
	qf.External_FlightFareSearch_ReturnDate.disabled = false;
}

function checkflight() {
	if (document.qfs.External_FlightScheduleSearch_From.value == "") {
	alert("Nereden bölümü boş olamaz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_To.value == "") {
	alert("Nereye gideceğinizi belirtmediniz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_DepartureDate.value == "") {
	alert("Lütfen gidiş tarihinizi belirleyiniz.");
	return false;
	}
	return true;
}

function checkhotel() {
	if (document.qfs.External_FlightScheduleSearch_From.value == "") {
	alert("Nereden bölümü boş olamaz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_To.value == "") {
	alert("Nereye gideceğinizi belirtmediniz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_DepartureDate.value == "") {
	alert("Lütfen gidiş tarihinizi belirleyiniz.");
	return false;
	}
	return true;
}

function checkcar() {
	if (document.qfs.External_FlightScheduleSearch_From.value == "") {
	alert("Nereden bölümü boş olamaz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_To.value == "") {
	alert("Nereye gideceğinizi belirtmediniz.");
	return false;
	}
	
	if (document.qfs.External_FlightScheduleSearch_DepartureDate.value == "") {
	alert("Lütfen gidiş tarihinizi belirleyiniz.");
	return false;
	}
	return true;
}
