
// common form failure message
function DoFail(ctl, msg) {
	ctl.focus();
	alert(msg);
	return false;
}

// helper for detail page
var currTab = new Array();
function setCntTab(tabId, sectId) {
	document.getElementById('cntTb' + sectId + '_' + currTab[sectId]).className	= 'contentTabOff';
	document.getElementById('cntStr' + sectId + '_' + currTab[sectId]).className	= 'hid';
	document.getElementById('cntTb' + sectId + '_' + tabId).className		= 'contentTabOn';
	document.getElementById('cntStr' + sectId + '_' + tabId).className		= 'vis2';
	currTab[sectId]	= tabId;
}
