function initStationPlace(){
	var statValue = document.form1.stationp.value.substring(1,document.form1.stationp.value.length)
	var index = 0,flag=false, newStationp=0;
	while ((index<document.form1.pick_up_location.length)&&(!flag)){
		if (document.form1.pick_up_location[index].value==statValue){
			flag=true
			newStationp = index
		}else
			index++;
	}
	document.form1.stationp.value = newStationp;
}

function initStationPlaceOff(){
	var statValue = document.form1.stationd.value.substring(1,document.form1.stationd.value.length)
	var index = 0,flag=false, newStationp=0;
	while ((index<document.form1.drop_off_location.length)&&(!flag)){
		if (document.form1.drop_off_location[index].value==statValue){
			flag=true
			newStationp = index
		}else
			index++;
	}
	document.form1.stationd.value = newStationp;
}

function initSelect(){
	//view/change
	if (proc=="vc"){
		if (document.form1.initFlag.value=="0"){
			initUpdateFields(document.form1);
			document.form1.initFlag.value="1";

		}
	}

	if(document.form1.country.options[document.form1.country.selectedIndex].value!="")
		onChange(document.form1.country,document.form1.pick_up_location,document.form1.country.options[document.form1.country.selectedIndex].value)

	if (document.form1.stationp.value!="")
		if (document.form1.stationp.value.charAt(0)=="-")
			initStationPlace();

	document.form1.pick_up_location.selectedIndex  = document.form1.stationp.value

	if(document.form1.country.options[document.form1.country.selectedIndex].value!="")
		onChange(document.form1.country,document.form1.drop_off_location,document.form1.country.options[document.form1.country.selectedIndex].value)

	if (document.form1.stationd.value!="")
		if (document.form1.stationd.value.charAt(0)=="-")
			initStationPlaceOff();
	document.form1.drop_off_location.selectedIndex  = document.form1.stationd.value

	var sNumOfDays = getNumOfDays(form1.pickmonth.value+"/"+form1.pickday.value+"/"+form1.pickyear.value+" "+form1.pick_up_time.value, form1.offmonth.value+"/"+form1.offday.value+"/"+form1.offyear.value+" "+form1.drop_off_time.value);
	window.num_of_days.innerHTML = sNumOfDays +" "+ siteDic.DAYS;
	//window.num_of_days.innerHTML = document.form1.elements("no_OfDays").value +" "+ siteDic.DAYS;
	document.form1["no_OfDays"].value = sNumOfDays;
}
//////////////////////////////////
function loadStationInfo(val){
	try{

		//alert("lang="+lang);
		var xmlObject=new ActiveXObject("Microsoft.XMLDOM");
		//window.open("/site/include/station.hx.asp?stationId="+val)
		xmlObject.async=false;
		var loadRes=xmlObject.load("/site/include/station.hx.asp?stationId="+val)

		if(loadRes){
			var elements = xmlObject.documentElement
			document.all["stationInfo"].innerHTML = elements.selectSingleNode("station").text;
			document.all["stationInfo"].style.top = "60"
			if(lang=="EN"){
				document.all["stationInfo"].style.left = "560"
			}else{
				document.all["stationInfo"].style.left = "200"
			}
			document.all["stationInfo"].style.display = "inline";
		}
	}catch(e){alert(e.description)}
}
////////////////////////////////////////
function closeStation(){
	document.all["stationInfo"].style.display = "none";
}

///////////////////////////////////////////////////////
//THE FUNCTION ADD ANOTHER DAY TO A DATE
function addDay(theForm){

		var returnDate = new Date(theForm.offmonth.value+"/"+theForm.offday.value+"/"+theForm.offyear.value)
		var year = returnDate.getYear()

		var monthDays	= "31,28,31, 30, 31, 30, 31, 31, 30, 31, 30,31"
		monthDays = monthDays.split(",");
		if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))monthDays[1] = 29;

		if(returnDate.getDate()!=monthDays[returnDate.getMonth()]){
		returnDate.setDate(returnDate.getDate()+1);
		}else{
		returnDate.setDate(returnDate.getDate()+1);
		}

		return(returnDate.getDate()+"/"+(returnDate.getMonth()+1)+"/"+returnDate.getYear())
}

function add3Day(theForm){
		var returnDate = new Date(theForm.pickmonth.value+"/"+theForm.pickday.value+"/"+theForm.pickyear.value)
		var year = returnDate.getYear()

		var monthDays	= "31,28,31, 30, 31, 30, 31, 31, 30, 31, 30,31"
		monthDays = monthDays.split(",");
		if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))monthDays[1] = 29;

		if(returnDate.getDate()!=monthDays[returnDate.getMonth()]){
		returnDate.setDate(returnDate.getDate()+3);
		}else{
		returnDate.setDate(returnDate.getDate()+3);
		}

	theForm.offday.value =  returnDate.getDate()
	theForm.offmonth.value =  returnDate.getMonth()+1
	theForm.offyear.value =  returnDate.getYear()
}

///////////////////////////////////////////////////////
//the function return num of days
function getNumOfDays(pick_up_date,drop_off_date){
	var dpick_up_date = new Date(pick_up_date);
	var ddrop_off_date = new Date(drop_off_date);


	var dates_Differ  = (ddrop_off_date-dpick_up_date)/86400000;

	dates_Differ = (dates_Differ==Math.floor(dates_Differ)) ? Math.floor(dates_Differ) : Math.floor(dates_Differ)+1;
	return(dates_Differ)

}
///////////////////////////////////////
function fDate2(str) {
	var d = str.split("-");
	if(d.length == 3)
		return d[1] +'/'+ d[2] +'/'+ d[0];
	else{
		var d = str.split("/");
		return d[1] +'/'+ d[0] +'/'+ d[2];
	}
}
///////////////////////////////////////
function get_today_Diff_days(){

}
///////////////////////////////////////
function chackForm(theForm){
	theForm.pick_up_date.value  = theForm.pickday.value+"/"+theForm.pickmonth.value+"/"+theForm.pickyear.value
	theForm.drop_off_date.value = theForm.offday.value+"/"+theForm.offmonth.value+"/"+theForm.offyear.value


	if(theForm.pickday.value>9) var dayT   = theForm.pickday.value
	else var dayT   = "0" +  theForm.pickday.value
	if(theForm.pickmonth.value>9) var monthT = theForm.pickmonth.value
	else var monthT = "0" + theForm.pickmonth.value
	var yearT  = theForm.pickyear.value

	var temp_pick_up_date = monthT+"/"+dayT+"/"+yearT
	// =================================================
	//	FIXING BUG: 211
	// =================================================
	var dToday			= new Date();
	var sTODAY_DATE		= dToday.getFullYear()+"/"+(dToday.getMonth()+1)+"/"+dToday.getDate()+" "+dToday.getHours()+":"+dToday.getMinutes();
	var sPICK_UP_DATE	= theForm.pickyear.value+"/"+theForm.pickmonth.value+"/"+theForm.pickday.value+" "+theForm.pick_up_time.value
	var sDROP_OFF_DATE	= theForm.offyear.value+"/"+theForm.offmonth.value+"/"+theForm.offday.value+" "+theForm.drop_off_time.value


//new regular reservation
if (arr_allFields['fieldsDisabled']==""){

	var n_country		   = theForm.country.value;
	var n_pick_up_date	= temp_pick_up_date
	var n_pick_up_time	= theForm.pick_up_time.value;
	var n_pick_up_location = theForm.pick_up_location.value;
	// If it is a new reservation OR it is an Old one,but there was change in country/pick_up_date/pick_up_time:
	//	Then Proceed with all checks.

	if ((String(arr_allFields['proc'])=="0")||
			(String(n_pick_up_date)!=String(fDate2(arr_allFields['pick_up_date'])))||
			(n_country!=arr_allFields['country']) ||(n_pick_up_location!=arr_allFields['pick_up_location'])){


			if(!isValidDate(theForm.pickmonth.value+"/"+theForm.pickday.value+"/"+theForm.pickyear.value)||!isValidDate(theForm.offmonth.value+"/"+theForm.offday.value+"/"+theForm.offyear.value)){
					seccessMessege(siteDic.INVALID_DATE,siteDic.ERROR_MESSAGE,50,300)
					theForm.country.focus();
					return
			}


				if(theForm.country.value == 0){
					seccessMessege(siteDic.CHOOSE_COUNTRY,siteDic.ERROR_MESSAGE,pos,300)
					theForm.country.focus();
					return
				}
				if(theForm.pick_up_location.value == 0){
					seccessMessege(siteDic.CHOOSE_LOCATION,siteDic.ERROR_MESSAGE,pos,300)
					theForm.pick_up_location.focus();
					return
				}
				if(theForm.drop_off_location.value == 0){
					seccessMessege(siteDic.CHOOSE_RETURN_LOCATION,siteDic.ERROR_MESSAGE,pos2,300)
					theForm.drop_off_location.focus();
					return
				}
				if(theForm.driver_age.value == 0){
					seccessMessege(siteDic.CHOOSE_DRIVER_AGE,siteDic.ERROR_MESSAGE,pos,300)
					theForm.driver_age.focus();
					return
				}


				if(document.form1.promotion_code.value!=""){

					//check for valid plan code
					//check promotion conditions (reservation date, pick up date ... )
					try{
						var xmlObjectC=new ActiveXObject("Microsoft.XMLDOM");
						xmlObjectC.async=false;
						var loadRes=xmlObjectC.load("/site/costumerReservation/wins/validplancode.hx.asp?prom="+document.form1.promotion_code.value+"&country="+document.form1.country.value+"&PUD="+theForm.pick_up_date.value+"&PUT="+theForm.pick_up_time.value+"&POD="+theForm.drop_off_date.value+"&POT="+theForm.drop_off_time.value)
						//window.open("/site/costumerReservation/wins/validplancode.hx.asp?prom="+document.form1.promotion_code.value+"&country="+document.form1.country.value+"&PUD="+theForm.pick_up_date.value+"&PUT="+theForm.pick_up_time.value+"&POD="+theForm.drop_off_date.value+"&POT="+theForm.drop_off_time.value)
						var valid = xmlObjectC.selectNodes("ROWSET/row")
						if(valid(0).getAttribute("id")=="false"){
							seccessMessege(siteDic.INVALID_PROMOTION,siteDic.ERROR_MESSAGE,pos2,300)
							theForm.ofran_plan_code.value = "";
							theForm.promotion_code.value = "";
							theForm.promotion_code.focus();
							return
						}else{
							theForm.ofran_plan_code.value = valid(0).getAttribute("ofran_plan_code")
						}
					}catch(e){alert(e.description)}

				}

				var theDate		= new Date();
				theDate.setDate(theDate.getDate())
				var thisDay		= theDate.getDate();
				var thisMonth	= theDate.getMonth() + 1;
				var thisYear	= theDate.getYear();

			//check dates
			if( Number(theForm.pickyear.value) == Number(thisYear) && Number(theForm.pickmonth.value) < thisMonth){
					seccessMessege(siteDic.INVALID_DATE,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

			if( Number(theForm.pickyear.value) == Number(thisYear) && Number(theForm.pickmonth.value) == thisMonth && Number(theForm.pickday.value) < Number(thisDay)){
					seccessMessege(siteDic.INVALID_DATE,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

			var tempDropOff  = new Date(n_pick_up_date)
			var tempDropOff1 = new Date(n_pick_up_date+" "+n_pick_up_time)
			//get the number of days between 2 days
			var daysfromtoday  = Math.floor((tempDropOff.getTime()-theDate.getTime())/(1000*60*60*24))
			var hoursfromtoday = Math.ceil((tempDropOff1.getTime()-theDate.getTime())/(1000*60*60))

			daysfromtoday++;
			

			if(Number(theForm.pickyear.value) == Number(thisYear) && Number(theForm.pickmonth.value) == thisMonth && 1*daysfromtoday<3 && region[theForm.country.value]!=5 && region[theForm.country.value]!=7){
					
					seccessMessege(siteDic.PICK_UP_TOO_CLOSE,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}

			//if(1*hoursfromtoday<72
			if(1*daysfromtoday<3
				&& 1*region[theForm.country.value]!=5 && 1*region[theForm.country.value]!=7){//5==usa, 7==s.america
					
					seccessMessege(siteDic.PICK_UP_TOO_CLOSE,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}
			//usa
			if(hoursfromtoday<48 &&(1*region[theForm.country.value]==5 || 1*region[theForm.country.value]==7)){
					seccessMessege(siteDic.PICK_UP_TOO_CLOSE_USA,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}

			// =================================================
			//	FIXING BUG: 211
			// =================================================
		//	try
			//{
					//x = DatesDiff("h","18/04/2005 13:55","19/04/2005 12:55")
					iHoursFromToday	= DatesDiff("h", sTODAY_DATE, sPICK_UP_DATE);
					//alert("iHoursFromToday="+iHoursFromToday)

					if(iHoursFromToday<72 && 1*region[theForm.country.value]!=5 && 1*region[theForm.country.value]!=7)
					{
							seccessMessege(siteDic.PICK_UP_TOO_CLOSE,siteDic.ERROR_MESSAGE,pos2,300)
							return
					}
					//usa
					if(iHoursFromToday<48 && (1*region[theForm.country.value]==5 || 1*region[theForm.country.value]==7)){
							seccessMessege(siteDic.PICK_UP_TOO_CLOSE_USA,siteDic.ERROR_MESSAGE,pos2,300)
							return
					}
			//}
			//catch(e){}
			// =================================================
			//	END FIXING BUG: 211
			// =================================================


			if(Number(theForm.pickyear.value) > Number(theForm.offyear.value)){
					seccessMessege(siteDic.INVALID_RETURN_PICKUP,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}

			if(Number(theForm.pickyear.value) ==  Number(theForm.offyear.value) && Number(theForm.offmonth.value) < Number(theForm.pickmonth.value)){
					seccessMessege(siteDic.INVALID_RETURN_PICKUP,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}


			if(Number(theForm.pickyear.value) == Number(theForm.offyear.value) && Number(theForm.offmonth.value) == Number(theForm.pickmonth.value)&&Number(theForm.pickday.value)>Number(theForm.offday.value) ){
					seccessMessege(siteDic.INVALID_RETURN_PICKUP,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}
			if(Number(theForm.pickyear.value) == Number(theForm.offyear.value) && Number(theForm.offmonth.value) == Number(theForm.pickmonth.value)&&Number(theForm.pickday.value)==Number(theForm.offday.value)){
					seccessMessege(siteDic.IDENTICAL_RETURN_PICKUP,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}

			var tempValue = 0
			//deal with rental car hours

			drop_off_time = theForm.drop_off_time.value
			pick_up_time  = theForm.pick_up_time.value

			var tempValue = getNumOfDays(theForm.pickmonth.value+"/"+theForm.pickday.value+"/"+theForm.pickyear.value+" "+theForm.pick_up_time.value, theForm.offmonth.value+"/"+theForm.offday.value+"/"+theForm.offyear.value+" "+drop_off_time);

			//if order is more then 28 days
			if(1*tempValue>28){
				seccessMessege(siteDic.MAX_RENTAL_DAYS,siteDic.ERROR_MESSAGE,pos2,300)
				return
			}

			//(in europe/africa/australia/new zealand and mediternian)
			if(1*region[theForm.country.value]!=5 && 1*region[theForm.country.value]!=7 && 1*region[theForm.country.value]!=3)
			{
				//get minimum rental from country combo (from KS)
				var minimum_rental	= parseInt("0"+theForm.country[theForm.country.selectedIndex].minimum_rental,10);

				if(1*tempValue < minimum_rental)
				{
					var sErrorMessage	= siteDic.MIN_RENTAL_DAYS;
					if(minimum_rental == 1) sErrorMessage	= siteDic.MIN_1RENTAL_DAYS;
					if(minimum_rental == 2) sErrorMessage	= siteDic.MIN_2RENTAL_DAYS;
					seccessMessege(sErrorMessage,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

				if(1*tempValue == 1
					&& theForm.pick_up_location.value != theForm.drop_off_location.value)
				{
					seccessMessege(siteDic.RENTALS_SAME_LOCATION_1,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}
				if(1*tempValue == 2
					&& theForm.pick_up_location.value != theForm.drop_off_location.value)
				{
					seccessMessege(siteDic.RENTALS_SAME_LOCATION_2,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}
			}
			//CANADA
			if(1*tempValue < 2 && 1*region[theForm.country.value]==3){
					seccessMessege(siteDic.MIN_2RENTAL_DAYS,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}

			if(action){form1.action="/site/costumerReservation/newOrder.asp"+rest+"&new=1"}
		}else{	// If it is an update of an old reservation

			if(theForm.pick_up_location.value == 0){
				seccessMessege(siteDic.CHOOSE_LOCATION,siteDic.ERROR_MESSAGE,375,293)
				theForm.pick_up_location.focus();
				return
			}
			if(theForm.drop_off_location.value == 0){
				seccessMessege(siteDic.CHOOSE_RETURN_LOCATION,siteDic.ERROR_MESSAGE,375,293)
				theForm.drop_off_location.focus();
				return
			}

			if(Number(theForm.pickyear.value) > Number(theForm.offyear.value)){
					seccessMessege(siteDic.PICK_UP_PASSED,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

			if(Number(theForm.pickyear.value) ==  Number(theForm.offyear.value) && Number(theForm.offmonth.value) < Number(theForm.pickmonth.value)){
					seccessMessege(siteDic.PICK_UP_PASSED,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

			if(Number(theForm.pickyear.value) == Number(theForm.offyear.value) && Number(theForm.offmonth.value) == Number(theForm.pickmonth.value)&&Number(theForm.pickday.value)>Number(theForm.offday.value) ){
					seccessMessege(siteDic.PICK_UP_PASSED,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}
			//deal with rental car hours
			if(Number(theForm.pickyear.value) == Number(theForm.offyear.value) && Number(theForm.offmonth.value) == Number(theForm.pickmonth.value)&&Number(theForm.pickday.value)==Number(theForm.offday.value)){
					seccessMessege(siteDic.IDENTICAL_RETURN_PICKUP,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}
			var drop_off_time = theForm.drop_off_time.value
			var pick_up_time  = theForm.pick_up_time.value
			drop_off_time = drop_off_time.split(":")
			pick_up_time  = pick_up_time.split(":")
			var pHour = pick_up_time[0],dHour = drop_off_time[0];
			if(pick_up_time[1]>0) pHour  = pHour + 0.5
			if(drop_off_time[1]>0)dHour = dHour + 0.5

			var tempValue = getNumOfDays(theForm.pickmonth.value+"/"+theForm.pickday.value+"/"+theForm.pickyear.value+" "+theForm.pick_up_time.value, theForm.offmonth.value+"/"+theForm.offday.value+"/"+theForm.offyear.value+" "+theForm.drop_off_time.value);

			//add another day

			if(pHour<dHour){
				tempValue++;
				theForm.drop_off_date.value = addDay(theForm);
			}

			// =================================================
			//	FIXING BUG: 211
			// =================================================
			try
			{
					//x = DatesDiff("h","18/04/2005 13:55","19/04/2005 12:55")
					iHoursFromToday		= DatesDiff("h", sTODAY_DATE, sPICK_UP_DATE);
					//alert("iHoursFromToday="+iHoursFromToday)

					if(iHoursFromToday<72 && 1*region[theForm.country.value] != 5 && 1*region[theForm.country.value] != 7)
					{
							seccessMessege(siteDic.PICK_UP_TOO_CLOSE,siteDic.ERROR_MESSAGE,pos2,300)
							return
					}
					//usa
					if(iHoursFromToday < 48 && (1*region[theForm.country.value]==5 || 1*region[theForm.country.value]==7)){
							seccessMessege(siteDic.PICK_UP_TOO_CLOSE_USA,siteDic.ERROR_MESSAGE,pos2,300)
							return
					}
			}
			catch(e){}
			// =================================================
			//	END FIXING BUG: 211
			// =================================================

			//if order is more then 28 days
			if(1*tempValue>28){
				seccessMessege(siteDic.MAX_RENTAL_DAYS,siteDic.ERROR_MESSAGE,375,293)
				return
			}

			//(in europe/africa/australia/new zealand and mediternian)
			if(1*region[theForm.country.value] != 5 && 1*region[theForm.country.value] != 7 && 1*region[theForm.country.value] != 3)
			{
				//get minimum rental from country combo (from KS)
				var minimum_rental	= parseInt("0"+theForm.country[theForm.country.selectedIndex].minimum_rental,10);

				if(1*tempValue < minimum_rental)
				{
					var sErrorMessage	= siteDic.MIN_RENTAL_DAYS;
					if(minimum_rental == 1) sErrorMessage	= siteDic.MIN_1RENTAL_DAYS;
					if(minimum_rental == 2) sErrorMessage	= siteDic.MIN_2RENTAL_DAYS;
					seccessMessege(sErrorMessage,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}

				if(1*tempValue == 1
					&& theForm.pick_up_location.value != theForm.drop_off_location.value)
				{
					seccessMessege(siteDic.RENTALS_SAME_LOCATION_1,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}
				if(1*tempValue == 2
					&& theForm.pick_up_location.value != theForm.drop_off_location.value)
				{
					seccessMessege(siteDicRENTALS_SAME_LOCATION_2,siteDic.ERROR_MESSAGE,pos2,300)
					return
				}
			}
			//CANADA
			if(1*tempValue < 2 && 1*region[theForm.country.value]==3){
					seccessMessege(siteDic.MIN_2RENTAL_DAYS,siteDic.ERROR_MESSAGE,pos2,300)
					return
			}
			if(document.form1.promotion_code.value!=""){

					//check for valid plan code
					try{
						var xmlObjectC=new ActiveXObject("Microsoft.XMLDOM");
						xmlObjectC.async=false;
						var loadRes=xmlObjectC.load("/site/costumerReservation/wins/validplancode.hx.asp?prom="+document.form1.promotion_code.value+"&country="+document.form1.country.value+"&PUD="+theForm.pick_up_date.value+"&PUT="+theForm.pick_up_time.value+"&POD="+theForm.drop_off_date.value+"&POT="+theForm.drop_off_time.value)
						//window.open("/site/costumerReservation/wins/validplancode.hx.asp?prom="+document.form1.promotion_code.value+"&country="+document.form1.country.value+"&PUD="+theForm.pick_up_date.value+"&PUT="+theForm.pick_up_time.value+"&POD="+theForm.drop_off_date.value+"&POT="+theForm.drop_off_time.value)
						var valid = xmlObjectC.selectNodes("ROWSET/row")

						if(valid(0).getAttribute("id")=="false"){
							seccessMessege(siteDic.INVALID_PROMOTION,siteDic.ERROR_MESSAGE,pos2,300)
							theForm.promotion_code.focus();
							return
						}else{
							theForm.ofran_plan_code.value = valid(0).getAttribute("ofran_plan_code")

						}
					}catch(e){alert(e.description)}

				}
		}

	} //arr_allFields['fieldsDisabled']==""
	
	for (var i=0;i<theForm.length;i++){
		try{
			if(theForm[i].disabled==true)theForm[i].disabled=false
		}catch(e){}
	}

	//if we use back we need to put value in the select box
	theForm.stationp.value = theForm.pick_up_location.selectedIndex
	theForm.stationd.value = theForm.drop_off_location.selectedIndex

	//becase of the popup window when we go back all data is deleted 
	
	//openPopup();
	form1.submit()
}

function initUpdateFields(form_TheForm)
{
	for (var i=0;i<form_TheForm.length;i++){
		try{

			form_TheForm[form_TheForm[i].name].value	= arr_allFields[form_TheForm[i].name];
		}
		catch(e)
		{
			//alert(form_TheForm[i].name)
		}
	}
}
