﻿// SML JScript File

//To clear search box
//this function is to clear the value data on the search box in the mast when a user clicks on it
//author: mary-chris hirsch
//created: 3/2009
    
     function ClearInput(value, id){ // This calls our function ClearInput, and the two variables we will need for it to function the original value and the id.
     var input = document.getElementById(id); // Gets the input field based on its id.
   
     if(value == input.value){ // If the default value is equal to the current value.
      input.value = ''; // Empty It.
         }else{ // Else the value is not equal to the current input field value.
     input.value = input.value; // Leave it the same.
     } // End Else.
         } // Close Function.


/* custom pop-up window function (use for custom-size popup windows) */
function makeLarge(url, wPx, hPx) {
	newWin=window.open(url, "popup", "width=" + wPx + ",height=" + hPx + ",top=50,left=50,scrollbars,resizable");
	newWin.focus();
}
