function activate(id){
	var active = document.getElementById(id);
	active.className="active";
}

function splitCityState(frmName){
	var frm = document.forms[frmName];
	var value = frm.location[frm.location.selectedIndex].value;
	
	if(value != ""){
	
		var city = value.substring(0, value.indexOf(','));
		var state = value.substring(value.indexOf(',') + 1, value.length);
		
		frm.city.value = city.replace(/^\s+|\s+$/g, '');
		frm.state.value = state.replace(/^\s+|\s+$/g, '');
	}
	
	frm.location[frm.location.selectedIndex].value = '';
}