

//=============================================================
function validateInqForm(theForm){

var strMsg = "";

	if(theForm.Summary.value == ""){
		strMsg = "\n - Lütfen proje özetinizi girin." + strMsg;
		theForm.Summary.focus();
	}else{
	  var strSummary = theForm.Summary.value;
	  //length acceptable = 5100 - allowance for differing progs/languages counting characters differently
	  if(strSummary.length > 5100){
		strMsg = "\n - Özetiniz 5000 karakterden uzun ve azami 5000 karakter olmalıdır." + strMsg;
		theForm.Summary.focus();
	  }
	}

	if(theForm.Funding.value == ""){
		strMsg = "\n - Lütfen talep edilen fon miktarını girin." + strMsg;
		theForm.Funding.focus();
	}

	if(theForm.Budget.value == ""){
		strMsg = "\n - Lütfen kuruluşun bütçesini girin." + strMsg;
		theForm.Budget.focus();
	}

	if(theForm.Mission.value == ""){
		strMsg = "\n - Lütfen kuruluşun misyonunu girin." + strMsg;
		theForm.Mission.focus();
	}else{
	  var strMission = theForm.Mission.value;
	  //length acceptable = 1100 - allowance for differing progs/languages counting characters differently
	  if(strMission.length > 1100){
		strMsg = "\n - Misyonunuz 1000 karakterden uzun ve azami 1000 karakter olmalıdır." + strMsg;
		theForm.Mission.focus();
	  }
	}

	if(theForm.OrgEmailAddress.value == ""){
		strMsg = "\n - Lütfen bir e-posta adresi girin." + strMsg;
		theForm.OrgEmailAddress.focus();
	}

	if(theForm.ContactPerson.value == ""){
		strMsg = "\n - Lütfen temasta bulunulacak şahsın adını girin." + strMsg;
		theForm.ContactPerson.focus();
	}
	
	if(theForm.Phone1.value == ""){
		strMsg = "\n - Lütfen bir telefon girin." + strMsg;
		theForm.Phone1.focus();
	}

	if(theForm.Address1.value == ""){
		strMsg = "\n - Lütfen bir adres girin." + strMsg;
		theForm.Address1.focus();
	}

	if(theForm.Nameoforganization.value == ""){
		strMsg = "\n - Lütfen kuruluşun adını girin." + strMsg;;
		theForm.Nameoforganization.focus();
	}	

	if(strMsg != ""){
	    strMsg = "\nÖzür dileriz ama bilgi talep işleminizde bir sorun var.          \n" + strMsg;;
	    strMsg = strMsg + "\n\nBilgi Talep Mektubuna dönmek için lütfen ‘OK’ düğmesini tıklayın.\n" ;;
		alert(strMsg);
		return false;
	}
	else{
		return true;
	}

  
}
