function goThere(url){
   window.location.href = url;
}

function objExists(objToTest) {
	if (null == objToTest) {
		return false;
	}
	if ("undefined" == typeof(objToTest) ) {
		return false;
	}
	return true;
}

function getSelectedValue(frm, obj){
	//does the object exist
	if(objExists(obj)){
		//does the object have any sub-entities		
		if(objExists(obj[0])){
			//if it does, is it a radio select?
			if(obj[0].type && obj[0].type == 'radio'){
				for(i=0; i<obj.length; i++){
					if(obj[i].checked){
						return obj[i].value;
					}
				}
			} else if(obj.type == 'select-one'){
				return obj[obj.selectedIndex].value;
			}			
		} else {
			//the object doesn't have any sub entites, so just return its value
			return obj.value;
		}
	}
}