/**
 * @author phillipa
 */

declarePackage("picknpay");
declarePackage("picknpay.modlets");
picknpay.modlets.SpecialsSearch = function() {
	var self;
	
	function constructorFn(){
		self = this;
	}
	
	constructorFn.prototype.recordRegion = function(regionSelector) {
		var regionId = regionSelector[regionSelector.selectedIndex].attributes["region_id"].nodeValue;
		$("region").value = regionId;
	}
	
	constructorFn.prototype.submitWithKeyword = function(thisForm) {
		if (thisForm.keyword.value == "Enter keyword") {
			thisForm.keyword.value = "";
		}
		thisForm.submit();
	}
	
	return new constructorFn();	
}

picknpay.modlets.specialsSearch = new picknpay.modlets.SpecialsSearch();
	 
