webroot='';


Event.observe(window, 'load', function(){
	//showDebug();U	
});




function selectUpdater(DOMid, controller, action){
	found=false;
	//alert (DOMid);

	var x=document.getElementById(DOMid);
	
	for (i=0;i<x.length;i++){
		if(x.options[i].selected==true){
			//alert('updating '+schid + ' with ' + x.options[i].value);
			found =true;
			selectID=x.options[i].value;		
		}
	}
	if(found==true){
		this.location = webroot + '/' + controller + '/' + action + '/' + selectID;
	}else{
		return 0;
	}
}

function propertiesUpdater(DOMid, controller, action, clientID, crewID, $statusID, $propertyID){
	found=false;
	//alert (DOMid);

	var x=document.getElementById(DOMid);
	
	for (i=0;i<x.length;i++){
		if(x.options[i].selected==true){
			//alert('updating '+schid + ' with ' + x.options[i].value);
			found =true;
			selectID=x.options[i].value;		
		}
	}
	if(found==true){
		this.location = webroot + '/' + controller + '/' + action + '/' + selectID;
	}else{
		return 0;
	}
}


	