
/*inputcountry=document.forms['theForm'].country[document.forms['theForm'].country.selectedIndex].value;

if(inputcountry=="219"){

hop(219);
}
if(inputcountry=="33"){

hop(33);
}
if(inputcountry=="218"){

hop(218);
}

*/



function init()
	{
	var initia = new Array(1)
	initia[0] = new Option("please select", "")
	document.forms['theForm'].elements['swapper'].options.length = initia.length
	for(x=0;x<initia.length;x++)
			{
			document.forms['theForm'].elements['swapper'].options[x] = initia[x]
			}
	}
		
	function hop(val)
	{
		
	// mozilla is currently not recognising options.length = 0
	// document.forms['theForm'].elements['swapper'].options = null
	// find value
	if ('' + val.options[val.selectedIndex].value == '') return;
	if ('' + val.options[val.selectedIndex].value == 'undefined') return;
	
	var selected = val.options[val.selectedIndex].value
	
		
		// construct arrays
		// format :
		// new Option(text, value, defaultselected[boolean], selected[boolean])
		var a = new Array(23)
		a[0] = new Option("-- All Regions --","","","")
		a[1] = new Option("Las Vegas","1","","")
		a[2] = new Option("New York","2","","")
		a[3] = new Option("Dallas","3","","")
		a[4] = new Option("Boston","4","","")
		a[5] = new Option("Chicago","5","","")
		a[6] = new Option("Los Angeles","6","","")
		a[7] = new Option("Miami","7","","")
		a[8] = new Option("Denver","8","","")
		a[9] = new Option("Seattle","9","","")
		a[10] = new Option("Detroit","10","","")
		a[11] = new Option("Atlanta","11","","")
		a[12] = new Option("Memphis","12","","")
		a[13] = new Option("Houston","13","","")
		a[14] = new Option("San Francisco","101","","")
		a[15] = new Option("Washington D.C.","102","","")
		a[16] = new Option("Philadelphia","103","","")
		a[17] = new Option("Tampa","104","","")
		a[18] = new Option("New Orleans","105","","")
		a[19] = new Option("New Jersey","106","","")
		a[20] = new Option("Indianapolis","107","","")
		a[21] = new Option("Kansas City","108","","")
		a[22] = new Option("Other Areas","0","","")
		
		var b = new Array(24)
		b[0] = new Option("-- All Regions --","","","")
		b[1] = new Option("LONDON","20","","")
		b[2] = new Option("NORTH","25","","")
		b[3] = new Option("Manchester","27","","")
		b[4] = new Option("Leeds","32","","")
		b[5] = new Option("Liverpool","31","","")
		b[6] = new Option("Newcastle","34","","")
		b[7] = new Option("Sheffield","29","","")
		b[8] = new Option("SOUTH","21")
		b[9] = new Option("EAST ANGLIA","23","","")
		b[10] = new Option("WEST/WALES","22")
		b[11] = new Option("Bristol","28")
		b[12] = new Option("Cardiff","37")
		b[13] = new Option("Swansea","38")
		b[14] = new Option("MIDLANDS","24")
		b[15] = new Option("Birmingham","45")
		b[16] = new Option("Coventry","46")
		b[17] = new Option("Derby","44")
		b[18] = new Option("Leicester","47")
		b[19] = new Option("Nottingham","48")
		b[20] = new Option("SCOTLAND","26")
		b[21] = new Option("Aberdeen","49")
		b[22] = new Option("Edinburgh","50")
		b[23] = new Option("Glasgow","51")
		
		var c = new Array(6)
		c[0] = new Option("-- All Regions --","","","")
		c[1] = new Option("Toronto","15")
		c[2] = new Option("Montreal","16","","")
		c[3] = new Option("Vancouver","14","","")
		c[4] = new Option("Edmonton","17","","")
		c[5] = new Option("Other Areas","0","","")
		var d = new Array(1)
		d[0] = new Option("Whole Country","","","")
		
		var a1 = new Array(8)
		a1[0] = new Option("U.S. dollars","","","")
		a1[1] = new Option("$100 (or less)","100","","")
		a1[2] = new Option("$100 - $200","200","","") 
		a1[3] = new Option("$200 - $300","300","","")
		a1[4] = new Option("$300 - $500","500","","")
		a1[5] = new Option("$500 - $700","700","","")
		a1[6] = new Option("$700 - $1000","1000","","")
		a1[7] = new Option("$1000 +","1001","","")
		
		var b1 = new Array(8)
		b1[0] = new Option("GB Pounds","","","")
		b1[1] = new Option("£100 (or less)","100","","")
		b1[2] = new Option("£100 - £200","200","","") 
		b1[3] = new Option("£200 - £300","300","","")
		b1[4] = new Option("£300 - £500","500","","")
		b1[5] = new Option("£500 - £700","700","","")
		b1[6] = new Option("£700 - £1000","1000","","")
		b1[7] = new Option("£1000 +","1001","","")
		
		var c1 = new Array(8)
		c1[0] = new Option("$ Canadian","","","")
		c1[1] = new Option("$100 (or less)","100","","")
		c1[2] = new Option("$CAN 100 - 200","200","","") 
		c1[3] = new Option("$CAN 200 - 300","300","","")
		c1[4] = new Option("$CAN 300 - 500","500","","")
		c1[5] = new Option("$CAN 500 - 700","700","","")
		c1[6] = new Option("$CAN 700 - 1000","1000","","")
		c1[7] = new Option("$CAN1000 +","1001","","")
		
		var d1 = new Array(8)
		d1[0] = new Option("$, £, or Euros","","","")
		d1[1] = new Option("100 (or less)","100","","")
		d1[2] = new Option("100 - 200","200","","") 
		d1[3] = new Option("200 - 300","300","","")
		d1[4] = new Option("300 - 500","500","","")
		d1[5] = new Option("500 - 700","700","","")
		d1[6] = new Option("700 - 1000","1000","","")
		d1[7] = new Option("1000 +","1001","","")
		
		var e1 = new Array(8)
		e1[0] = new Option("$ Australian","","","")
		e1[1] = new Option("$AUS 100 (or less)","100","","")
		e1[2] = new Option("$AUS 100 - 200","200","","") 
		e1[3] = new Option("$AUS 200 - 300","300","","")
		e1[4] = new Option("$AUS 300 - 500","500","","")
		e1[5] = new Option("$AUS 500 - 700","700","","")
		e1[6] = new Option("$AUS 700 - 1000","1000","","")
		e1[7] = new Option("$AUS 1000 +","1001","","")
		
		var f1 = new Array(8)
		f1[0] = new Option("Euros","","","")
		f1[1] = new Option("Euros 100 (or less)","100","","")
		f1[2] = new Option("Euros 100 - 200","200","","") 
		f1[3] = new Option("Euros 200 - 300","300","","")
		f1[4] = new Option("Euros 300 - 500","500","","")
		f1[5] = new Option("Euros 500 - 700","700","","")
		f1[6] = new Option("Euros 700 - 1000","1000","","")
		f1[7] = new Option("Euros 1000 +","1001","","")
// would use the javascript version of select..case but netscape handles it strangely.

	
		//document.theForm.swapper.style.visibility='visible';
		//document.getElementById("magic_text_box").style.visibility='visible';
		if(selected == "219")
		{
		thearray = a
		thearray1 = a1
		}
		else if(selected == "218")
		{
		thearray = b
		thearray1 = b1
		}
		else if(selected == "33")
		{
		thearray = c
		thearray1 = c1
		}
		else 
		
		{
		thearray = d
			if(selected == "9"){
				thearray1 = e1
				}
			else if(selected == "10" || selected == "17" || selected == "66"||selected == "72"||selected == "85"||selected == "92"||selected == "94"||selected == "180"){
				thearray1 = f1
			
			}
			else{
				thearray1 = d1
			}
		}
		
	// ok, do the biz...
	document.forms['theForm'].elements['swapper'].options.length = 0
	document.forms['theForm'].elements['swapper'].options.length = thearray.length
		for(x=0;x<thearray.length;x++)
			{
			// thearray.reverse()
			document.forms['theForm'].elements['swapper'].options[x] = thearray[x]
			}
	
	document.forms['theForm'].elements['hour_rate'].options.length = 0
	document.forms['theForm'].elements['hour_rate'].options.length = thearray1.length
		for(x=0;x<thearray1.length;x++)
			{
			// thearray.reverse()
			document.forms['theForm'].elements['hour_rate'].options[x] = thearray1[x]
			}
			
		
}	

function start(ID){

var a = new Array(23)
		a[0] = new Option("-- All Regions --","","","")
		a[1] = new Option("Las Vegas","1","","")
		a[2] = new Option("New York","2","","")
		a[3] = new Option("Dallas","3","","")
		a[4] = new Option("Boston","4","","")
		a[5] = new Option("Chicago","5","","")
		a[6] = new Option("Los Angeles","6","","")
		a[7] = new Option("Miami","7","","")
		a[8] = new Option("Denver","8","","")
		a[9] = new Option("Seattle","9","","")
		a[10] = new Option("Detroit","10","","")
		a[11] = new Option("Atlanta","11","","")
		a[12] = new Option("Memphis","12","","")
		a[13] = new Option("Houston","13","","")
		a[14] = new Option("San Francisco","101","","")
		a[15] = new Option("Washington D.C.","102","","")
		a[16] = new Option("Philadelphia","103","","")
		a[17] = new Option("Tampa","104","","")
		a[18] = new Option("New Orleans","105","","")
		a[19] = new Option("New Jersey","106","","")
		a[20] = new Option("Indianapolis","107","","")
		a[21] = new Option("Kansas City","108","","")
		a[22] = new Option("Other Areas","0","","")
		
		var b = new Array(24)
		b[0] = new Option("-- All Regions --","","","")
		b[1] = new Option("LONDON","20","","")
		b[2] = new Option("NORTH","25","","")
		b[3] = new Option("Manchester","27","","")
		b[4] = new Option("Leeds","32","","")
		b[5] = new Option("Liverpool","31","","")
		b[6] = new Option("Newcastle","34","","")
		b[7] = new Option("Sheffield","29","","")
		b[8] = new Option("SOUTH","21")
		b[9] = new Option("EAST ANGLIA","23","","")
		b[10] = new Option("WEST/WALES","22")
		b[11] = new Option("Bristol","28")
		b[12] = new Option("Cardiff","37")
		b[13] = new Option("Swansea","38")
		b[14] = new Option("MIDLANDS","24")
		b[15] = new Option("Birmingham","45")
		b[16] = new Option("Coventry","46")
		b[17] = new Option("Derby","44")
		b[18] = new Option("Leicester","47")
		b[19] = new Option("Nottingham","48")
		b[20] = new Option("SCOTLAND","26")
		b[21] = new Option("Aberdeen","49")
		b[22] = new Option("Edinburgh","50")
		b[23] = new Option("Glasgow","51")
		
		var c = new Array(6)
		c[0] = new Option("-- All Regions --","","","")
		c[1] = new Option("Toronto","15")
		c[2] = new Option("Montreal","16","","")
		c[3] = new Option("Vancouver","14","","")
		c[4] = new Option("Edmonton","17","","")
		c[5] = new Option("Other Areas","0","","")
		var d = new Array(1)
		d[0] = new Option("Whole Country","","","")
		
		var a1 = new Array(8)
		a1[0] = new Option("U.S. dollars","","","")
		a1[1] = new Option("$100 (or less)","100","","")
		a1[2] = new Option("$100 - $200","200","","") 
		a1[3] = new Option("$200 - $300","300","","")
		a1[4] = new Option("$300 - $500","500","","")
		a1[5] = new Option("$500 - $700","700","","")
		a1[6] = new Option("$700 - $1000","1000","","")
		a1[7] = new Option("$1000 +","1001","","")
		
		var b1 = new Array(8)
		b1[0] = new Option("GB Pounds","","","")
		b1[1] = new Option("£100 (or less)","100","","")
		b1[2] = new Option("£100 - £200","200","","") 
		b1[3] = new Option("£200 - £300","300","","")
		b1[4] = new Option("£300 - £500","500","","")
		b1[5] = new Option("£500 - £700","700","","")
		b1[6] = new Option("£700 - £1000","1000","","")
		b1[7] = new Option("£1000 +","1001","","")
		
		var c1 = new Array(8)
		c1[0] = new Option("$ Canadian","","","")
		c1[1] = new Option("$100 (or less)","100","","")
		c1[2] = new Option("$CAN 100 - 200","200","","") 
		c1[3] = new Option("$CAN 200 - 300","300","","")
		c1[4] = new Option("$CAN 300 - 500","500","","")
		c1[5] = new Option("$CAN 500 - 700","700","","")
		c1[6] = new Option("$CAN 700 - 1000","1000","","")
		c1[7] = new Option("$CAN1000 +","1001","","")
		
		var d1 = new Array(8)
		d1[0] = new Option("$, £, or Euros","","","")
		d1[1] = new Option("100 (or less)","100","","")
		d1[2] = new Option("100 - 200","200","","") 
		d1[3] = new Option("200 - 300","300","","")
		d1[4] = new Option("300 - 500","500","","")
		d1[5] = new Option("500 - 700","700","","")
		d1[6] = new Option("700 - 1000","1000","","")
		d1[7] = new Option("1000 +","1001","","")
		
		var e1 = new Array(8)
		e1[0] = new Option("$ Australian","","","")
		e1[1] = new Option("$AUS 100 (or less)","100","","")
		e1[2] = new Option("$AUS 100 - 200","200","","") 
		e1[3] = new Option("$AUS 200 - 300","300","","")
		e1[4] = new Option("$AUS 300 - 500","500","","")
		e1[5] = new Option("$AUS 500 - 700","700","","")
		e1[6] = new Option("$AUS 700 - 1000","1000","","")
		e1[7] = new Option("$AUS 1000 +","1001","","")
		
		var f1 = new Array(8)
		f1[0] = new Option("Euros","","","")
		f1[1] = new Option("Euros 100 (or less)","100","","")
		f1[2] = new Option("Euros 100 - 200","200","","") 
		f1[3] = new Option("Euros 200 - 300","300","","")
		f1[4] = new Option("Euros 300 - 500","500","","")
		f1[5] = new Option("Euros 500 - 700","700","","")
		f1[6] = new Option("Euros 700 - 1000","1000","","")
		f1[7] = new Option("Euros 1000 +","1001","","")
// would use the javascript version of select..case but netscape handles it strangely.

	
		//document.theForm.swapper.style.visibility='visible';
		//document.getElementById("magic_text_box").style.visibility='visible';
		if(ID == "219")
		{
		thearray = a
		thearray1 = a1
		}
		else if(ID == "218")
		{
		thearray = b
		thearray1 = b1
		}
		else if(ID == "33")
		{
		thearray = c
		thearray1 = c1
		}
		else 
		
		{
		thearray = d
			if(ID == "9"){
				thearray1 = e1
				}
			else if(ID == "10" || ID == "17" || ID == "66"||ID == "72"||ID == "85"||ID == "92"||ID == "94"||ID == "180"){
				thearray1 = f1
			
			}
			else{
				thearray1 = d1
			}
		}
		
	// ok, do the biz...
	document.forms['theForm'].elements['swapper'].options.length = 1
	document.forms['theForm'].elements['swapper'].options.length = thearray.length
		for(x=1;x<thearray.length;x++)
			{
			// thearray.reverse()
			document.forms['theForm'].elements['swapper'].options[x] = thearray[x]
			}
	
	document.forms['theForm'].elements['hour_rate'].options.length = 1
	document.forms['theForm'].elements['hour_rate'].options.length = thearray1.length
		for(x=1;x<thearray1.length;x++)
			{
			// thearray.reverse()
			document.forms['theForm'].elements['hour_rate'].options[x] = thearray1[x]
			}
			
}	