// FILE:	sch_disp.js
// LAST MOD:	4/15/02
// ID:		@(#)sch_disp.js	1.1

var verNum;
verNum = parseInt(navigator.appVersion);

function QbDcTEST(s)
{   var d = s.options[s.selectedIndex].value;
    window.top.location.href = d;
    s.selectedIndex=0;
}

// for deleting records in hist maint. called from hst_mnt.php <body onload=setButtonName; >
function setButtonName(){
	sch_cri.document.SchCriForm.Search.value = "Delete";
	sch_cri.document.SchCriForm.Search.src = DelImageBtn;
	sch_cri.document.SchCriForm.Search.onclick = CheckButton; // see function below
}

function CheckButton()
{
	//sets the hidden input field value to 'del'. This is checked in hst_updt.php
	// if the value == 'del' then we use the delete query, else use the update query
	sch_input.document.MntInputForm.buttonValue.value = "del";
	INP_UpdtDta('HST','DEL');  // INP_UpdtDta() is in input.js. This function sets the form action
	                           // and loads hst_updt.php when delete button is clicked.
}