// JavaScript Document

//pop ups. lots of pop ups.
function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=460,left = 200,top = 200');");
}

function popUpSmall(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=460,height=460,left = 250,top = 250');");
}

//General form functions
function load(formName) {
  var list = document[formName].list;
  var str = list.options[list.selectedIndex].value;
  if (str != "") location.href = str;
}
function textClear (input) {
	if ( input.value == input.defaultValue ) {input.value = "";}
}

function textRestore (input) {
	if ( input.value == "" ) {input.value = input.defaultValue;}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
