<!--
function setNotice(state) {
	notice = document.getElementById('div_notice');
	notice.style.display = (state=='show') ? 'block' : 'none';
}

function BRB_PHP_DelWithCon(deletepage_url,field_name,field_value,messagetext) { //v1.0 - Deletes a record with confirmation
  if (confirm(messagetext)==1){
  	location.href = eval('\"'+deletepage_url+'?'+field_name+'='+field_value+'\"');
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function doSubmit(thisForm) {
	var theForm = document.getElementById(thisForm);
	theForm.submit();

}
function checkKey(thisForm) {
	var key = document.layers ? evt.which 
            : document.all ? event.keyCode
            : evt.keyCode;
	var keyName = String.fromCharCode(key);
	if (key==13) {
		doSubmit(thisForm);
		return false;
	}
}

function toggle(me) {
	me = document.getElementById(me);
	if(me.style.display) {
		if(me.style.display != "block") {
			me.style.display = "block";
		} else {
			me.style.display = "none";
		}
	} else {
		me.style.display = "none";
	}
}

function setNotice(state) {
	notice = document.getElementById('notice_holder');
	notice.style.display = (state=='show') ? 'block' : 'none';
	if(state!='show') {
		nc = document.getElementById('div_notice_text');
		nc.innerHTML = " ";
	} // remove content
	if(state=='show') { window.scrollTo(0,0); } // scroll to the top of the page 
}

function noticeContent(cont) {
	setNotice("show");
	cont = unescape(cont)
	replaceThis = "+";
	cont = cont.replace(/\+/g," ");
	document.getElementById('div_notice_text').innerHTML = cont;
}

function columnHeights() {
		/*
		leftDiv = document.getElementById('div_leftbar');
		middleDiv = document.getElementById('div_contentarea');
		rightDiv = document.getElementById('div_rightbar');
		
		highest = middleDiv.offsetHeight;
		highest = (leftDiv.offsetHeight>highest) ? leftDiv.offsetHeight : highest;
		highest = (rightDiv.offsetHeight>highest) ? rightDiv.offsetHeight : highest;

		leftDiv.style.height = highest+"px";
		middleDiv.style.height = highest+"px";
		rightDiv.style.height = highest+"px";
		*/
}

if(window.addEventListener) window.addEventListener("load", columnHeights, false); // for non IE browsers
else if(window.attachEvent) window.attachEvent("onload", columnHeights);			 // for IE
