function SetSubLocation(){
var sLocation = document.form1.Location.options[document.form1.Location.selectedIndex].value;
	switch(sLocation){
		case "Yorkshire Dales":
			clear(document.form1.SubLocation)
			AddOption(document.form1.SubLocation,"All")
			AddOption(document.form1.SubLocation,"Littondale")
			AddOption(document.form1.SubLocation,"Malhamdale")
			AddOption(document.form1.SubLocation,"Nidderdale")
			AddOption(document.form1.SubLocation,"Ribblesdale")
			AddOption(document.form1.SubLocation,"Skipton")
			AddOption(document.form1.SubLocation,"Swaledale")
			AddOption(document.form1.SubLocation,"Wensleydale")
			AddOption(document.form1.SubLocation,"Wharfedale")
			AddOption(document.form1.SubLocation,"Harrogate")
			break;
		case "Moors & Coast":
			clear(document.form1.SubLocation)
			AddOption(document.form1.SubLocation,"All")
			//AddOption(document.form1.SubLocation,"North York Moors")
			//AddOption(document.form1.SubLocation,"Scarborough")
			//AddOption(document.form1.SubLocation,"Whitby")
			break;
		case "West & South Yorks":
			clear(document.form1.SubLocation)
			AddOption(document.form1.SubLocation,"All")
			//AddOption(document.form1.SubLocation,"Bronte Country")
			//AddOption(document.form1.SubLocation,"Leeds")
			//AddOption(document.form1.SubLocation,"Sheffield")
			break;
		case "York & Wolds":
			clear(document.form1.SubLocation)
			AddOption(document.form1.SubLocation,"All")
			//AddOption(document.form1.SubLocation,"York")
			//AddOption(document.form1.SubLocation,"East Yorkshire")
			//AddOption(document.form1.SubLocation,"Hull")
			break;
		 default:
			break;
	}
}
function AddOption(frm,opt){
frm.options[frm.options.length]=new Option(opt,opt); 
}
function clear(obj){
     for (var i = (obj.options.length-1); i >= 0; i--){
         obj.options[i]=null;
	}
}