function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
		elm.addEventListener(evType, fn, useCapture);
		return true;
	}
	else if (elm.attachEvent) {
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	}
	else {
		elm['on' + evType] = fn;
	}
}
function doPostBack() {
	with (document.getElementById('tagsearch')) {
		query.value = '0';
		submit();
	}
}
function loadSearchForm(url, search_type) {
	window.location = url + '?stype=' + search_type;
}
function chgTagId() {
	with (document.getElementById('tagsearch')) {
		if (cur_inst_code.value != '') {
			query.value = '0';
			submit();
		}
	}
}
function jumpToAnchor() {
	window.location.hash = 'results'; 
}
