function OrderFormControl(TheObject){
	if(TheObject.senderFirstName.value==''){
		alert("Please fill in first name")
		TheObject.senderFirstName.focus()
		return (false) }

	if(TheObject.senderLastName.value==''){
		alert("Please fill in last name")
		TheObject.senderLastName.focus()
		return (false) }

	if(TheObject.senderPhone.value==''){
		alert("Please fill in phone number")
		TheObject.senderPhone.focus()
		return (false) }

	if(TheObject.senderAddress.value==''){
		alert("Please fill in address")
		TheObject.senderAddress.focus()
		return (false) }

	if(TheObject.senderCountry.value==''){
		alert("Please select your country")
		TheObject.senderCountry.focus()
		return (false) }

	if(TheObject.senderCity.value==''){
		alert("Plase fill in city")
		TheObject.senderCity.focus()
		return (false) }

	if(TheObject.senderState.value==''){
		alert("Please fill in region")
		TheObject.senderState.focus()
		return (false) }

	if(TheObject.senderEmail.value=='' || TheObject.senderEmail.value.indexOf('@') == -1 || TheObject.senderEmail.value.indexOf('.') == -1){
		alert("Please type valid e-mail address")
		TheObject.senderEmail.focus()
		return (false) }

	// ---------------------------------------------------------

	if(TheObject.customerFirstName.value==''){
		alert("Please fill in recipient first name")
		TheObject.customerFirstName.focus()
		return (false) }

	if(TheObject.customerLastName.value==''){
		alert("Please fill in recipient last name")
		TheObject.customerLastName.focus()
		return (false) }

	if(TheObject.customerPhone.value==''){
		alert("Please fill in recipient phone number")
		TheObject.customerPhone.focus()
		return (false) }

	if(TheObject.customerAddress.value==''){
		alert("Please fill in recipient address")
		TheObject.customerAddress.focus()
		return (false) }

	if(TheObject.customerCountry.value==''){
		alert("Please select recipient country")
		TheObject.customerCountry.focus()
		return (false) }

	if(TheObject.customerCity.value==''){
		alert("Please fill in recipient city")
		TheObject.customerCity.focus()
		return (false) }

	if(TheObject.customerState.value==''){
		alert("Please fill in recipient region")
		TheObject.customerState.focus()
		return (false)
			
	}
	
	return (true)
}

function ChangePriceType(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.customerPriceTypeAdd.value = "Kredi Kartư"}
	else {document.all.NewForm.customerPriceTypeAdd.value = "Havale"} }

function CardName(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.customerCardName.value = "1"}
	else {document.all.NewForm.customerCardName.value = "0"} }

function ChangeWhichHours(TypeNumber){
	if (TypeNumber==1){document.all.NewForm.customerWhichHoursAdd.value = "9 - 13"}
	else if (TypeNumber==2){document.all.NewForm.customerWhichHoursAdd.value = "13 - 18"}
	else if (TypeNumber==3){document.all.NewForm.customerWhichHoursAdd.value = "18 - 20"} }

function CountrySelect(CountryName){
	document.all.CityPlat.innerHTML = "<font color=red>Please Wait...</font>"
	window.HideOperation.location='Command.asp?page=country&CountryID='+ CountryName.value }

function CitySelect(){
	document.all.StatePlat.innerHTML = "<font color=red>Please Wait...</font>"
	window.HideOperation.location='Command.asp?page=selected&utype=state&CityName='+ document.all.senderCity.value }

function StateSelect(){
	if(document.all.senderState.value=='0'){
		document.all.senderCountry.disabled = false
		document.all.StatePlat.innerHTML = "<input class='InputsSearch' type='text' name='uState'>"}
		document.all.senderState.focus() }



function CountrySelect2(CountryName){
	document.all.CityPlat2.innerHTML = "<font color=red>Please Wait...</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>Please Wait...</font>"
	window.HideOperation.location='US_JavaControl.asp?page=selected&utype=state&secondary=1&CityName='+ document.all.customerCity.value }

function StateSelect2(){
	if(document.all.customerState.value=='0'){
		document.all.costumerCountry.disabled = false
		document.all.StatePlat2.innerHTML = "<input class='InputsSearch' type='text' name='oState'>"}
		document.all.customerState.focus() }
