/*
	Filename         : scripts.js
	Last modified by : Sally
	Created          : Wednesday, 8 March 2006 3:42:00 PM
	Last Updated     : Monday, 27 March 2006 8:23:37 AM
	Revision History :
		Date			Time			Who			Description
		27/3/2006		8:23:37 		Sally		Added extra NT regions
*/

<!--
	var any = "";
	var regiontext="";
		
	var buyprices = new Array(['Price From','any'],['$1','1'],['$40,000','40000'],['$60,000','60000'],['$80,000','80000'],['$100,000','100000'],['$120,000','120000'],['$150,000','150000'],['$200,000','200000'],['$250,000','250000'],['$300,000','300000'],['$350,000','350000'],['$400,000','400000'],['$450,000','450000'],['$500,000','500000'],['$550,000','550000'],['$600,000','600000'],['$650,000','650000'],['$700,000','700000'],['$750,000','750000'],['$800,000','800000'],['$850,000','850000'],['$900,000','900000'],['$950,000','950000'],['$1,000,000','1000000'],['$1,500,000','1500000'],['$2,000,000','2000000'],['$2,500,000','2500000'],['$3,000,000','3000000'],['$3,500,000','3500000'],['$4,000,000+','max']);
	var rentprices = new Array(['Price From','any'],['$1','1'],['$100','100'],['$150','150'],['$200','200'],['$250','250'],['$300','300'],['$350','350'],['$400','400'],['$450','450'],['$500','500'],['$550','550'],['$600','600'],['$650','650'],['$700','700'],['$750','750'],['$800','800'],['$850','850'],['$900','900'],['$950','950'],['$1,000','1000'],['$1,500','1500'],['$2,000','2000'],['$2,000+','max']);
	var pricefromtext="";
	var pricetotext="";
	
	
	function PopulatePrice(the_array) {
		for(loop=document.myform.prcefrom1.length; loop>=0; loop--)
			document.myform.prcefrom1.options[loop] = null;
		for(loop=document.myform.prceto1.length; loop>=0; loop--)
			document.myform.prceto1.options[loop] = null;
		for (loop=0; loop<the_array.length-1; loop++)
			document.myform.prcefrom1.options[loop] = new Option(the_array[loop][0],the_array[loop][1],false, false);
		document.myform.prcefrom1.options.length = the_array.length-1;
		document.myform.prceto1.options[0]= new Option('Price To','any');
		document.myform.prceto1.options.length = 1;
	}
	function SetPrice(the_index,the_array) {
		for(loop=document.myform.prceto1.length; loop>=1; loop--)
			document.myform.prceto1.options[loop] = null;
		if(the_index!=0){
			var counter=1;
			for (loop=the_index+1; loop<the_array.length; loop++) {				
				document.myform.prceto1.options[counter] = new Option(the_array[loop][0],the_array[loop][1],false, false);
				counter++;
	    	}
			document.myform.prceto1.options.length = the_array.length-the_index;
		}
	}
-->
