// Actions for survey dashboard

function doAction(s,t,p) {
	var thisObj = t.selectedIndex;
   	var newAction = t.options[thisObj].value;
   	switch(s) {
   		case "dashboard":
   			if (newAction.length > 0) {
		   		switch(newAction) {
					case "view":
					  document.location.href = 'view.survey?' + p;
					  break    
					case "export":
					  document.location.href = 'export.survey?' + p;
					  break    
					case "reset":
					  document.location.href = 'reset.survey?' + p;
					  break    
					default:
					  //alert('No action was supplied.');
				}
		   	}
   			break
   		default:
   			//alert('No source section provided.');
   	}
}
