function assetOperatorTool() {
	this.changeRegion =function(theObj, objValue) {
		var theLocation = document.location.href;
		theLocation = theLocation.replace(/jsp.*/, "jsp");
		
		this.getFormValues();
		if(this.region) {
			theLocation += "?region="+this.region;
			document.location.href = theLocation;
		}
	}
	
	this.changeCountry =function(theObj, objValue) {
		var theLocation = document.location.href;
		theLocation = theLocation.replace(/jsp.*/, "jsp");
		
		this.getFormValues();
		if(this.region && this.country) {
			theLocation += "?region="+this.region+"&country="+this.country;
			document.location.href = theLocation;
		}	
	}
	
	this.getFormValues = function() {
		 	//try {
				var theForm = document.forms['searchform'];
				
				if(theForm) {
					try {
						theElement = theForm.elements['region'];
						this.region = theElement.options[theElement.options.selectedIndex].value;
					}
					catch(e) {
						this.region = "";
					}
					try {
						theElement = theForm.elements['country'];
						this.country = theElement.options[theElement.options.selectedIndex].value;
					}
					catch(e) {
						this.country = "";
					}
					
					
				}
			//}
			//catch(e) {
			//	this.country = "";
			//	this.region = "";
			//}
	}
	

}
