// popups for outside links
var winWidth = "670"			
var winHeight = "430"
var winScrollbars = "yes"
var winToolbar = "yes"
var winResizable = "yes"
var winLocation = "yes"
var winStatus = "yes"

function doDef(winURL) {
  window.open(winURL,"","width="+winWidth+",height="+winHeight+",scrollbars="+winScrollbars+",toolbar="+winToolbar+",resizable="+winResizable+",location="+winLocation+",status="+winStatus)
}








/* DROP DOWN MENU ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
this opens the menus and times out after we're not selecting anything...
found here: http://forums.devshed.com/archive/t-72317
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~= */
var overMenu = false;
var holder = "m0Sub";
var mySec = ""; /* */
var topPos = "21";

function getMenu(mm) {
	overMenu = true;
	window.clearTimeout(500);
	document.getElementById([holder]).style.visibility = "hidden";
	holder=[mm] + "Sub";
	var elt = document.getElementById([holder]);
	var parent = document.getElementById([mm]);
	elt.style.position = "absolute";
	elt.style.left = parent.offsetLeft + "px";
	elt.style.top = (parent.offsetTop + 15)  + "px";
	elt.style.top = topPos + "px"
	elt.style.zIndex = 1000;
	elt.style.visibility = "visible";
	}
function hideMenu() {
	document.getElementById([holder]).style.visibility = "hidden";
	}
function cleanUp() {
	overMenu = false;
	setTimeout("closeMenu()", 500);
	}
function retainMenu() {
	overMenu = true;
	window.clearTimeout(500);
	}
function closeMenu() {
	if(!overMenu) {
		document.getElementById([holder]).style.visibility = "hidden";
		if(mySec != "") {	
			holder=[mySec];
			document.getElementById([holder]).style.visibility = "visible";
			}
		}
	}
	
function resetFormSetFirst(form){
	var element, select;
	var i;
	for (i=0; i< form.elements.length; i++){
		element = form.elements[i];
		if (element.tagName == 'SELECT')
			element.selectedIndex = 0;
	}
}

function toggle(toggleId, e)
{
	if (!e) {
		e = window.event;
	 }
	 if (!document.getElementById) {
	 	return false;
	 }
	 var body = document.getElementById(toggleId);
	 if (!body) {
	 	return false;
	 } 
	 var im = toggleId + "_toggle";
	 if (body.style.display == 'none') {
	  	body.style.display = 'block';
	  	if (document.images[im]) {
	   		document.images[im].src = "/images/minus_icon.gif";
	  	}
	 } else {
	  	body.style.display = 'none';
	  	if (document.images[im]) {
	   		document.images[im].src = "/images/plus_icon.gif";
	  	}
	 }
	 if (e) {
		  // Stop the event from propagating, which
		  // would cause the regular HREF link to
		  // be followed, ruining our hard work.
		  e.cancelBubble = true;
		  if (e.stopPropagation) {
		   e.stopPropagation();
		 }
	 }
}
/* =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ */

