function OrderFormControl(TheObject){
	if(TheObject.ooFirstName.value==''){
		alert("Lütfen adınızı giriniz")
		TheObject.ooFirstName.focus()
		return (false) }

	if(TheObject.ooLastName.value==''){
		alert("Lütfen soyadınızı giriniz")
		TheObject.ooLastName.focus()
		return (false) }

	if(TheObject.ooPhone.value==''){
		alert("Lütfen size ulaşabileceğimiz bir telefon numarası giriniz")
		TheObject.ooPhone.focus()
		return (false) }

	if(TheObject.ooAddress.value==''){
		alert("Lütfen size ait bir adres giriniz")
		TheObject.ooAddress.focus()
		return (false) }

	if(TheObject.uCountry.value==''){
		alert("Bir ülke giriniz")
		TheObject.uCountry.focus()
		return (false) }

	if(TheObject.uCity.value==''){
		alert("Bir şehir giriniz")
		TheObject.uCity.focus()
		return (false) }

	if(TheObject.uState.value==''){
		alert("Bir semt giriniz")
		TheObject.uState.focus()
		return (false) }


		

	if(TheObject.ooEmail.value=='' || TheObject.ooEmail.value.indexOf('@') == -1 || TheObject.ooEmail.value.indexOf('.') == -1){
		alert("Lütfen geçerli bir e-posta adresi giriniz.")
		TheObject.ooEmail.focus()
		return (false) }
		
		

	// ---------------------------------------------------------

	if(TheObject.oFirstName.value==''){
		alert("Göndereceğiniz kişinin adını giriniz.")
		TheObject.oFirstName.focus()
		return (false) }

	if(TheObject.oLastName.value==''){
		alert("Göndereceğiniz kişinin soyadını giriniz.")
		TheObject.oLastName.focus()
		return (false) }

	if(TheObject.oPhone.value==''){
		alert("Göndereceğiniz kişinin telefon numarasını giriniz.")
		TheObject.oPhone.focus()
		return (false) }

	if(TheObject.oAddress.value==''){
		alert("Göndereceğiniz kişinin adresini giriniz.")
		TheObject.oAddress.focus()
		return (false) }

	if(TheObject.oCountry.value==''){
		alert("Göndereceğiniz ülkeyi giriniz.")
		TheObject.oCountry.focus()
		return (false) }

	if(TheObject.oCity.value==''){
		alert("Göndereceğiniz şehiri giriniz.")
		TheObject.oCity.focus()
		return (false) }

	if(TheObject.oState.value==''){
		alert("Göndereceğiniz semt giriniz.")
		TheObject.oState.focus()
		return (false) }
	
	AddParts = 'ooFirstName='+ TheObject.ooFirstName.value
	AddParts = AddParts +'&ooLastName='+ TheObject.ooLastName.value
	AddParts = AddParts +'&ooPhone='+ TheObject.ooPhone.value
	AddParts = AddParts +'&ooAddress='+ TheObject.ooAddress.value
	AddParts = AddParts +'&uCountry='+ TheObject.uCountry.value
	AddParts = AddParts +'&uCity='+ TheObject.uCity.value
	AddParts = AddParts +'&uState='+ TheObject.uState.value
	AddParts = AddParts +'&ooEmail='+ TheObject.ooEmail.value

	AddParts = AddParts +'&oFirstName='+ TheObject.oFirstName.value
	AddParts = AddParts +'&oLastName='+ TheObject.oLastName.value
	AddParts = AddParts +'&oPhone='+ TheObject.oPhone.value
	AddParts = AddParts +'&oAddress='+ TheObject.oAddress.value
	AddParts = AddParts +'&oCountry='+ TheObject.oCountry.value
	AddParts = AddParts +'&oCity='+ TheObject.oCity.value
	AddParts = AddParts +'&oState='+ TheObject.oState.value
	AddParts = AddParts +'&oAddressDefine='+ TheObject.oAddressDefine.value
	AddParts = AddParts +'&oCompanyName='+ TheObject.oCompanyName.value
	AddParts = AddParts +'&oCardMessage='+ TheObject.oCardMessage.value
	AddParts = AddParts +'&oDay='+ TheObject.oDay.value
	AddParts = AddParts +'&oMonth='+ TheObject.oMonth.value
	AddParts = AddParts +'&oYear='+ TheObject.oYear.value
	AddParts = AddParts +'&oWhichHours='+ TheObject.oWhichHoursAdd.value
	AddParts = AddParts +'&oMessage='+ TheObject.oMessage.value
	AddParts = AddParts +'&oPriceType='+ TheObject.oPriceTypeAdd.value
	AddParts = AddParts +'&ProductID='+ TheObject.ProductID.value
	AddParts = AddParts +'&UserID='+ TheObject.UserID.value
	AddParts = AddParts +'&AddressID='+ TheObject.AddressID.value
	AddParts = AddParts +'&pIstanbulOutside='+ TheObject.pIstanbulOutside.value
	AddParts = AddParts +'&oCardName='+ TheObject.oCardName.value
	AddParts = AddParts +'&pMyNet='+ TheObject.pMyNet.value
	AddParts = AddParts +'&WarID='+ TheObject.WarID.value
	AddParts = AddParts +'&IstanbulDISINDA='+ TheObject.IstanbulDISINDA.value
	AddParts = AddParts +'&faturatip=' + document.all.NewForm.faturatipadd.value
	AddParts = AddParts +'&funvan=' + document.all.NewForm.funvan.value
	AddParts = AddParts +'&fadres=' + document.all.NewForm.fadres.value
	AddParts = AddParts +'&fsemt=' + document.all.NewForm.fsemt.value
	AddParts = AddParts +'&fsehir=' + document.all.NewForm.fsehir.value
	AddParts = AddParts +'&fvd=' + document.all.NewForm.fvd.value
	AddParts = AddParts +'&fvno=' + document.all.NewForm.fvno.value
	window.open('https://niscicek.com/niscicek2/ET_Order.asp?'+ AddParts)
	return (false)
}

function ChangePriceType(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.oPriceTypeAdd.value = "Kredi Kartı"}
	else {document.all.NewForm.oPriceTypeAdd.value = "Havale"} }


function CardName(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.oCardName.value = "1"}
	else {document.all.NewForm.oCardName.value = "0"} }

function ChangeWhichHours(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.oWhichHoursAdd.value = "9 - 17"}
	else if (TypeNumber==2){document.all.NewForm.oWhichHoursAdd.value = "17 - 20"} }

function CountrySelect(CountryName){
	document.all.CityPlat.innerHTML = "<font color=red>Lütfen Bekleyiniz...</font>"
	window.HideOperation.location='US_JavaControl.asp?page=selected&utype=city&Country='+ CountryName.value }

function CitySelect(){
	document.all.StatePlat.innerHTML = "<font color=red>Lütfen Bekleyiniz...</font>"
	window.HideOperation.location='US_JavaControl.asp?page=selected&utype=state&CityName='+ document.all.uCity.value }

function StateSelect(){
	if(document.all.uState.value=='0'){
		document.all.uCountry.disabled = false
		document.all.StatePlat.innerHTML = "<input class='InputsSearch' type='text' name='uState'>"}
		document.all.uState.focus() }



function CountrySelect2(CountryName){
	document.all.CityPlat2.innerHTML = "<font color=red>Lütfen Bekleyiniz...</font>"
	window.HideOperation.location='US_JavaControl.asp?page=selected&utype=city&secondary=1&Country='+ CountryName.value }

function CitySelect2(){
	document.all.StatePlat2.innerHTML = "<font color=red>Lütfen Bekleyiniz...</font>"
	window.HideOperation.location='US_JavaControl.asp?page=selected&utype=state&secondary=1&CityName='+ document.all.oCity.value }

function StateSelect2(){
	if(document.all.oState.value=='0'){
		document.all.oCountry.disabled = false
		document.all.StatePlat2.innerHTML = "<input class='InputsSearch' type='text' name='oState'>"}
		document.all.oState.focus() }
