// JavaScript Document

///////////////////////////automatic text show/hide////////////////////////////////
///  the three parameters are the name of the div in which the proper input     ///
///  field resides (realDiv), the name of the div in which the input with       ///
///	 automatic text resides (displayDiv), and the name of the REAL input field  ///
///	  - for both change and restore (inputName).								///
///////////////////////////////////////////////////////////////////////////////////


function changeBox(realDiv, displayDiv, inputName)
 {
    document.getElementById(displayDiv).style.display='none';
    document.getElementById(realDiv).style.display='';
    document.getElementById(inputName).focus();
 }
 
 function restoreBox(realDiv, displayDiv, inputName)
 {
    if(document.getElementById(inputName).value=='')
    {
      document.getElementById(displayDiv).style.display='';
      document.getElementById(realDiv).style.display='none';
    }
 }
 



///////////////////////////select box reload///////////////////////////////
 
function reload(form){
  var val=form.category.options[form.category.options.selectedIndex].value; 
  self.location='browseCategory.php?cat=' + val ;
}