<!--
function CheckContactForm() {
	if(document.frm.fname.value == ""){
		alert("Lütfen adınızı giriniz.");
		document.frm.fname.focus();
		return false;
		}
		
	if(document.frm.lname.value == ""){
		alert("Lütfen soyadınızı giriniz.");
		document.frm.lname.focus();
		return false;
		}	

	if(document.frm.phone.value == ""){
		alert("Lütfen telefon numaranızı giriniz.");
		document.frm.phone.focus();
		return false;
		}

	if(document.frm.email.value == ''){
		alert("Lütfen E-Posta adresinizi giriniz.");
		document.frm.email.focus();
		return false;
		}

	if (document.frm.email.value != '' & !isEmail(document.frm.email.value)) {
    		alert("Girdiğiniz E-Posta adresi hatalı. Lütfen kontrol ediniz.");
	    	return false;
 		}

	if(document.frm.message.value == ""){
		alert("Lütfen mesajınızı giriniz.");
		document.frm.message.focus();
		return false;
		}

document.frm.act.value='snd';
document.frm.action='contactUs.asp';
document.frm.submit();
}

function CheckEmailForm() { 

	if(document.frm.email.value == ''){
		alert("Lütfen E-Posta adresinizi giriniz.");
		document.frm.email.focus();
		return false;
		}

	if (document.frm.email.value != '' & !isEmail(document.frm.email.value)) {
   		alert("Girdiğiniz E-Posta adresi hatalı. Lütfen kontrol ediniz.");
		document.frm.email.focus();
    	return false;
 		}
	document.frm.action='addMailList.asp'; 
	document.frm.submit(); 	
}


function checkForm() {
	var radio_choice = false;

// İSİM KONTROL
	if(document.frm.name.value == ""){
		alert("Lütfen adınızı giriniz.");
		document.frm.name.focus();
		return false;
		}


// DOĞUM YERİ KONTROL
	if(document.frm.birthPlace.value == ""){
		alert("Lütfen doğum yerinizi giriniz.");
		document.frm.birthPlace.focus();
		return false;
		}
		
// DOĞUM TARİHİ KONTROL
		
    if (frm.birthDay.value == "" || frm.birthDay.value > 31 || frm.birthDay.value == 0 || frm.birthDay.value == "00" || isNaN(frm.birthDay.value) == true)
	  {
	    alert("Lütfen doğum tarihinizi tam olarak belirtiniz.");
	    frm.birthDay.focus();
	    return (false);
	  }
  
    if (frm.birthMonth.value == "" || frm.birthMonth.value > 12 || frm.birthMonth.value == 0 || frm.birthMonth.value == "00" || isNaN(frm.birthMonth.value) == true)
	  {
	    alert("Lütfen doğum tarihinizi tam olarak belirtiniz.");
	    frm.birthMonth.focus();
	    return (false);
	  }
    
    if (frm.birthYear.value == "" || frm.birthYear.value == 0 || frm.birthYear.value == "00" || frm.birthYear.value == "000" || frm.birthYear.value == "0000" || isNaN(frm.birthYear.value) == true )
	  {
	    alert("Lütfen doğum tarihinizi tam olarak belirtiniz.");
	    frm.birthYear.focus();
	    return (false);
	  }
	  
// CİNSİYET KONTROL

	for (i = 0; i < frm.sex.length; i++)
	{
		if (frm.sex[i].checked)
			radio_choice = true;
	}
	
	if (!radio_choice)
	{
		alert("Lütfen cinsiyetinizi belirleyiniz.")
		return false;
	}	

// TCKİMLİK KONTROL
	if(document.frm.mernisNo.value == ""){
		alert("Lütfen T.C. Kimlik numaranızı giriniz.");
		document.frm.mernisNo.focus();
		return false;
		}

// UYRUK KONTROL

	if(document.frm.nationality.value == ""){
		alert("Lütfen uyruğunuzu giriniz.");
		document.frm.nationality.focus();
		return false;
		}	  

// S.S.K. KONTROL

	if(document.frm.sskNo.value == ""){
		alert("Lütfen S.S.K. numaranızı giriniz.");
		document.frm.sskNo.focus();
		return false;
		}

// E-MAİL KONTROL

	if(document.frm.email.value == ''){
		alert("Lütfen E-Posta adresinizi giriniz.");
		document.frm.email.focus();
		return false;
		}

	if (document.frm.email.value != '' & !isEmail(document.frm.email.value)) {
   		alert("Girdiğiniz E-Posta adresi hatalı. Lütfen kontrol ediniz.");
		document.frm.email.focus();
    	return false;
 		}

// EV ADRESİ KONTROL

	if(document.frm.homeAddress.value == ''){
		alert("Lütfen ev adresinizi giriniz.");
		document.frm.homeAddress.focus();
		return false;
		}

// EV TELEFONU KONTROL

	if(document.frm.homePhoneCode.value == ''){
		alert("Lütfen ev telefonunuzu giriniz.");
		document.frm.homePhoneCode.focus();
		return false;
		}
	if(document.frm.homePhone.value == ''){
		alert("Lütfen ev telefonunuzu giriniz.");
		document.frm.homePhone.focus();
		return false;
		}

// CEP TELEFONU KONTROL

	if(document.frm.gsmCode.value == ''){
		alert("Lütfen cep telefonunuzu giriniz.");
		document.frm.gsmCode.focus();
		return false;
		}
	if(document.frm.gsm.value == ''){
		alert("Lütfen ev telefonunuzu giriniz.");
		document.frm.gsm.focus();
		return false;
		}					

// BABA ADI KONTROL

	if(document.frm.fatherName.value == ""){
		alert("Lütfen baba adınızı giriniz.");
		document.frm.fatherName.focus();
		return false;
		}

// BABA EĞİTİM DURUMU KONTROL

	if(document.frm.fatherEducation.value == ""){
		alert("Lütfen babanızın eğitim durumunu giriniz.");
		document.frm.fatherEducation.focus();
		return false;
		}

// BABA MESLEK KONTROL

	if(document.frm.fatherJob.value == ""){
		alert("Lütfen babanızın mesleğini giriniz.");
		document.frm.fatherJob.focus();
		return false;
		}

// ANNE ADI KONTROL

	if(document.frm.motherName.value == ""){
		alert("Lütfen anne adınızı giriniz.");
		document.frm.motherName.focus();
		return false;
		}

// ANNE EĞİTİM DURUMU KONTROL

	if(document.frm.motherEducation.value == ""){
		alert("Lütfen annenizin eğitim durumunu giriniz.");
		document.frm.motherEducation.focus();
		return false;
		}

// ANNE MESLEK KONTROL

	if(document.frm.motherJob.value == ""){
		alert("Lütfen annenizin mesleğini giriniz.");
		document.frm.motherJob.focus();
		return false;
		}		

// HOBİLER KONTROL

	if(document.frm.hobbies.value == ''){
		alert("Lütfen ev hobilerinizi ve üyesi olduğunuz kuruluşları belirtiniz.");
		document.frm.hobbies.focus();
		return false;
		} 

// NEREDEN DUYDU KONTROL

	if(document.frm.howFound.value == ''){
		alert("Lütfen iş ilanımızdan nasıl haberdar olduğunuzu belirtiniz.");
		document.frm.howFound.focus();
		return false;
		}

// MEZUNİYET DURUMU KONTROL
	for (i = 0; i < frm.graduateStatus.length; i++)
	{
		if (frm.graduateStatus[i].checked)
			radio_choice = true;
	}
	
	if (!radio_choice)
	{
		alert("Lütfen mezuniyet durumunuzu belirtiniz.")
		return false;
	}		  

// ÇALIŞMAK İSTENEN DEPARTMAN KONTROL

	if(document.frm.departmentToWork.value == ''){
		alert("Lütfen çalışmak istediğiniz departmanı belirtiniz.");
		document.frm.departmentToWork.focus();
		return false;
		} 
 

}


function enableIsomakFriend() {

	document.frm.isomakFriendName.disabled = 0;
}

function disableIsomakFriend() {
	document.frm.isomakFriendName.disabled = 1;
	document.frm.isomakFriendName.value = "";
}
//--------------------------------------

function enableWorkLong() {

	document.frm.canWorkLongReason.disabled = 0;
}

function disableWorkLong() {
	document.frm.canWorkLongReason.disabled = 1;
	document.frm.canWorkLongReason.value = "";
}

//--------------------------------------
function enableIllness() {

	document.frm.illnessDetails.disabled = 0;
}

function disableIllness() {
	document.frm.illnessDetails.disabled = 1;
	document.frm.illnessDetails.value = "";
}
//--------------------------------------
function enablePhysicalDisable() {

	document.frm.physicalDisableDetails.disabled = 0;
}

function disablePhysicalDisable() {
	document.frm.physicalDisableDetails.disabled = 1;
	document.frm.physicalDisableDetails.value = "";
}

//--------------------------------------
function enableVehicleOwnerFields() {

	document.frm.vehicleDetails.disabled = 0;
}

function disableVehicleOwnerFields() {
	document.frm.vehicleDetails.disabled = 1;
	document.frm.vehicleDetails.value = "";
}

//--------------------------------------
function enableHomeOwnerFields() {

	document.frm.rentPrice.disabled = 0;
}

function disableHomeOwnerFields() {
	document.frm.rentPrice.disabled = 1;
	document.frm.rentPrice.value = "";
}
//--------------------------------------
function enableWifeFields() {

	document.frm.wifeName.disabled = 0;
	document.frm.wifeEducation.disabled = 0;	
	document.frm.wifeJob.disabled = 0;	
}

function disableWifeFields() {
	document.frm.wifeName.disabled = 1;
	document.frm.wifeEducation.disabled = 1;	
	document.frm.wifeJob.disabled = 1;		
	document.frm.wifeName.value = "";
	document.frm.wifeEducation.value = "";	
	document.frm.wifeJob.value = "";	
	
}

//--------------------------------------
function enableDrivingLicenceFields() {

	document.frm.drivingLicenceClass.disabled = 0;
	document.frm.drivingLicenceYear.disabled = 0;	
}

function disableDrivingLicenceFields() {
	document.frm.drivingLicenceClass.disabled = 1;
	document.frm.drivingLicenceYear.disabled = 1;	
	document.frm.drivingLicenceClass.value = "";
	document.frm.drivingLicenceYear.value = "";	
	
}
//--------------------------------------
function isEmail(str) {
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported)
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



  PositionX = 100; PositionY = 100;
  defaultWidth  = 500; defaultHeight = 500;
  var AutoClose = false;
  if (parseInt(navigator.appVersion.charAt(0))>=4){
  var isNN=(navigator.appName=="Netscape")?1:0;
  var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
  var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
  var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',resizable=yes top='+PositionY;

  function BuyukResim(imageURL,imageTitle){
  if (isNN){imgWin=window.open('about:blank','',optNN);}
  if (isIE){imgWin=window.open('about:blank','',optIE);}
  with (imgWin.document){
  writeln('<html><head><title>Yükleniyor...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
  writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
  writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
  writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
  writeln('width=100-(document.body.clientWidth-document.images[0].width);');
  writeln('height=100-(document.body.clientHeight-document.images[0].height);');
  writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
  writeln('window.innerWidth=document.images["imageURL"].width;');writeln('window.innerHeight=document.images["imageURL"].height+25;}}');
  writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
  if (!AutoClose) writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
  else writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
  writeln('<a href="javascript:onClick=self.close()"><img name="resim" src='+imageURL+' style="display:block" border="0"></a></body></html>');
  close();		
  }}


//-->