
<!--  
/* ClearInput(this.form,fieldname,selectName)
   Clears the specified input field and stores the cleared field value in a global variable */
var storedVal=''                                  //create global storedVal
function ClearInput(theForm,theField,selectName){
  var thisForm=eval('theForm.' + theField);       //create object variable to value field
  var selectList=eval('theForm.' + selectName);   //create object variable to the select object
  var selectValue=selectList.options[selectList.selectedIndex].value; //get selected value
  if (thisForm.value != '') {storedVal=thisForm.value;}               //if the formfield has a value, store original value
  if (selectValue == -1 || selectValue == "New") {thisForm.value=storedVal;} else {thisForm.value='';} //return stored value when select is moved back to origin
}
//-->
