// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//author: Colin Cole -- cmcole@jamestower.com

//This will remove the start value when the user clicks into the textbox
function onFocusDeleteText(control)
{
	if(control.value != "" && control.value == control.getAttribute("startvalue")) {
		control.value = "";
		if (has(control,"dataclass")){
			if (control.className)
				control.className = control.getAttribute("dataclass");
			else
				control.setAttribute("class", control.getAttribute("dataclass"));
		}
	}	
}

//This will set it back to the start value, if the person didn't enter any data (happens when user leaves textbox)
function onBlurTextReplace(control)
{
	if(control.value == "") {
		control.value = control.getAttribute("startvalue");
		if (has(control,"emptyclass")){
			if (control.className)
				control.className = control.getAttribute("emptyclass");
			else
				control.setAttribute("class", control.getAttribute("emptyclass"));
		}
	}
}

//Firefox vs. IE --> checking to see if you actually want there to be styles.
function has(control,child){
  return ((control.hasAttribute && control.hasAttribute(child) ) || control.getAttribute(child));
}