function open_window(destination)
	{window.open(destination);}
function jumpMenu(targ,selObj,restore)
	{
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if(restore)selObj.selectedIndex=0;
	}
//function newWindow(destination,height,width)
//	{window.open(destination,'newWindow',config='height=' + height + ',width=' + width + ',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no')}
function dateNow()
	{
	// Grab date properties
	var my_date = new Date()
	var my_month = my_date.getMonth()
	var my_num = my_date.getDate()
	var my_year = my_date.getYear()

	// Year
	document.form.date_year.options[3].selected = true
	// Day
	document.form.date_day.options[my_num-1].selected = true
	// Month
	}
function hiddenDate()
	{
	// Year
	var sel = document.form.date_year; 
	var year = sel[sel.selectedIndex].text; 
	// Day
	var sel = document.form.date_day;
	var day = sel[sel.selectedIndex].text; 
	// Month
	var sel = document.form.date_month;
	var month = sel.selectedIndex; 
	document.form.date.value = year + "-" + month + "-" + day
	}



// Calendar Functions:
//--------------------------------------------
function calcontrol(ctl)
	{
    document.CALPARMS.FORMACTION.value = ctl;
    document.CALPARMS.submit();
	}

function monthpicked()
	{
    document.CALPARMS.FORMACTION.value = "IGNORE";
    var obj = document.CALPARMS.MONTHPICK;
    var ix = obj.selectedIndex;
    document.CALPARMS.MONTH.value = obj.options[ix].value;
    document.CALPARMS.submit();
	}

function yearpicked()
	{
    document.CALPARMS.FORMACTION.value = "IGNORE";
    var obj = document.CALPARMS.YEARPICK;
    var ix = obj.selectedIndex;
    document.CALPARMS.YEAR.value = obj.options[ix].value;
    document.CALPARMS.submit();
	}
