function show_prompt()
{
	var name = prompt("Please enter your search term");
	if (name!=null && name!="")
  	{
		document.search.search.value = name;
  		document.search.submit();
  	}
}

<!--//--><![CDATA[//><!--
/*function showhide(rownum) 
{
   if(document.getElementById) 
   {
      var rownumid = document.getElementById(rownum).style;
      if(navigator.userAgent.indexOf("Firefox") != -1)
	  {
         if(rownumid.display == "block")
		 {
            rownumid.display = "none";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>+ EXPAND OPTIONS +</a>";
         }
         else if(rownumid.display == "none") 
		 {
            rownumid.display = "block";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>- HIDE OPTIONS -</a>";
         }
		 else
		 {
            rownumid.display = "none";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>+ EXPAND OPTIONS +</a>";
         }
      }
      else 
	  {
         if(rownumid.display == "block") 
		 {
            rownumid.display = "none";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>+ EXPAND OPTIONS +</a>";
         }
         else if(rownumid.display == "none") 
		 {
            rownumid.display = "block";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>- HIDE OPTIONS -</a>";
         }
		 else 
		 {
            rownumid.display = "none";
			document.getElementById("expand").innerHTML = "<a onclick=\"return showhide('extras')\" class='expand'>+ EXPAND OPTIONS +</a>";
         }
      }
      return false;
   }
   else 
   {
      return true;
   }
}*/

function showhide(rownum) 
{
   if(document.getElementById) 
   {
      var rownumid = document.getElementById(rownum).style;
      if(navigator.userAgent.indexOf("Firefox") != -1)
	  {
         if(rownumid.display == "block")
		 {
            rownumid.display = "none";
         }
         else 
		 {;
            rownumid.display = "block";
         }
      }
      else 
	  {
         if(rownumid.display == "block") 
		 {
            rownumid.display = "none";
         }
         else 
		 {
            rownumid.display = "block";
         }
      }
      return false;
   }
   else 
   {
      return true;
   }
}

function showhideAll(path,amount)
{
	var i=1;
	for(i=1;i<=amount;i++)
	{
		showhide(path+i);
	}
}
//--><!]]>

function limitText(limitField,limitCount,limitNum)
{
	if(limitField.value.length > limitNum)
	{
		limitField.value = limitField.value.substring(0, limitNum);
	}
	else 
	{
		limitCount.innerHTML = limitNum - limitField.value.length;
	}
}

<!--
function confirmDelete(message)
{
	var agree = confirm(message);
	if(agree)
	{
		return true ;
	}
	else
	{
		return false ;
	}
}
// -->

function check(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	if ( typeof(window['field' + searchClass]) == 'string' || typeof(window['field' + searchClass]) == 'undefined') {
		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) ) {
				classElements[j] = els[i];
				classElements[j].checked = true;
				j++;
			}
		}
		window['field' + searchClass] = 1;
	}
	else {
		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) ) {
				classElements[j] = els[i];
				classElements[j].checked = false;
				j++;
			}
		}
		window['field' + searchClass] = 'string';
	}
}
