//Function clearBox() is activated on the onClick event of the Search Input Box.
//This function clears the contents of the Search Input Box.
			
				function clearBox() 
				{
					document.frmSimpleSearch.q.value = "" ;
				}  //end clearBox()
				function clearBoxTop() 
				{
					document.searchForm.q.value = "" ;
				}  //end clearBox()

			
//Function CheckInput() is activated on the onSubmit event of the Search Form.
//This function checks the contents of the Search Input Box for unchanged default input or blank input.
			
				function CheckInput() 
				{	
					validity = false;
					
					if (document.frmSimpleSearch.q.value == "" || document.frmSimpleSearch.q.value == "Search for:" )
					{
						alert("Please Enter Search Criteria in the Search box") ;
						document.frmSimpleSearch.q.value = "" ;
						document.frmSimpleSearch.q.focus();
					}//end if
					
					else
					{
						validity = true;
						var strServerName = window.location.host;
						if (strServerName.indexOf(":") != -1)
						// if port is found in strServerName, make the strServerName URL to Active state
						{
							var strServerPort = window.location.port;
							strServerPort = (strServerPort.substring(0,(strServerPort.length-1))) + "3";
							strServerName = (strServerName.substring(0,(strServerName.length-4)) + strServerPort);
						}
						document.frmSimpleSearch.action = "http://" + strServerName + "/search/search.aspx";
					}
					
					return validity;
				}  //end CheckInput()

			
				function CheckInputTop() 
				{	
					validity = false;
					
					if (document.searchForm.q.value == "" || document.searchForm.q.value == "Search for:" )
					{
						alert("Please Enter Search Criteria in the Search box") ;
						document.searchForm.q.value = "" ;
						document.searchForm.q.focus();
					}//end if
					
					else
					{
						validity = true;
						var strServerName = window.location.host;
						if (strServerName.indexOf(":") != -1)
						// if port is found in strServerName, make the strServerName URL to Active state
						{
							var strServerPort = window.location.port;
							strServerPort = (strServerPort.substring(0,(strServerPort.length-1))) + "3";
							strServerName = (strServerName.substring(0,(strServerName.length-4)) + strServerPort);
						}
						document.frmSimpleSearch.action = "http://" + strServerName + "/search/search.aspx";
					}
					
					return validity;
				}  //end CheckInput()
			