//-----------------------------------------------------------------------------------
// General Partmed JavaScript Functions
//-----------------------------------------------------------------------------------

//----------------------------------------------------------------------------
// SetAction is used to set the action variable and submit the form.  This is
//   used by links or buttons to submit the form.
//----------------------------------------------------------------------------
function SetAction (actionValue) {
	document.forms[0].action.value = actionValue;
	document.forms[0].submit();
}

//------------------------------------------------------------------------------
// SetSubmit is used to set the submit_tag variable and submit the form. 
// This is used by links or buttons to submit the form.
//------------------------------------------------------------------------------
function SetSubmit (submitValue) {
	document.forms[0].submit_tag.value = submitValue;
	document.forms[0].submit();
}

//-----------------------------------------------------------------------------------
// Open Window functions to display a new page
//-----------------------------------------------------------------------------------

function Open_Window_Help (URL, width, height) {
	helpWindow = window.open (URL,'w2','width=' + width + ',height=' + height + ',toolbar=0,menubar=0,resizable=1,status=0,scrollbars=1,left=100,top=50');
	helpWindow.focus();
}

function Close_Window_Help () {
	helpWindow.close();
}