function autoFill(loc_id, dur){
	if(loc_id!=null && dur!= null){
		
		//pick timezone
		var tzArr = document.getElementById('location_id').options;

		for(var i=0;i<tzArr.length;i++){
			
			if(tzArr[i].value == loc_id){
				tzArr[i].selected='selected';
				break;
			}
		}
		//pick service
		var svArr = document.getElementById('dur').options;
		for(var i=0;i<svArr.length;i++){
			if(svArr[i].value == dur){
				svArr[i].selected='selected';
				break;
			}
		}
	}
		
}
		

function setTimeZone(){
		var tzArr = document.getElementById('timezone').options;
		for(var i=0;i<tzArr.length;i++){
			if(tzArr[i].selected){
				document.updateForm.timezonestr.value=tzArr[i].innerHTML;
				break;
			}
		}
	}