// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
function toggle( targetId ){
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target.style.display == "block"){
			target.style.display = "";
		} else {
			target.style.display = "block";
		}
	}
}
function closeToggle(className) {
	var theTags = document.getElementsByTagName('p');
	for (var i=0; i<theTags.length; i++){
		if (theTags[i].className == className){
			theTags[i].style.display = 'none';
		}
	}
}
function ShowWaitDisplay() {
	waitArea = document.getElementById('WaitNote','Car');
	XX = 108;
	YY = 154;
	waitArea.style.left=document.body.scrollLeft + XX;
	waitArea.style.top=document.body.scrollTop + YY;
	waitArea.style.display="block";
	
	waitArea.style.visibility="visible";
	return true;      
}
function HideSubmitPopup() {
	hPopup = document.getElementById("WaitNote","Car");
	hPopup.style.display="none";
	return true;
}

function dispMonth(y, m, h, f) {
	ajax = new ajax_object('/includes/cal.cfm?y=' + y + '&m=' + m + '&header=' + h + '&func=' + f + '&r=' + Math.floor(Math.random()*10000), monthResponse);
	ajax.load();
}

function monthResponse() {
	document.getElementById('calendar').innerHTML = ajax.responseText;
	ajax = undefined;
}
function $(el) {
	if (typeof (el) == 'string') {
		return document.getElementById(el);
	} else {
		return el;
	}
}