





//var quickLinksHTML = '<select onchange="navigateWithQuickLinks(this)">'
//                      + '<option>Quick Links</option>'
var quickLinksHTML = '<select onchange="navigateWithQuickLinks(this)">'
                      + '<option>Quick Links</option>'

/*					  
//BEGIN body of ADA
// ###############################################################################
quickLinksHTML=quickLinksHTML
+ '<div id="adacomp">'
+ '                  <SELECT NAME="browser" onChange="'
+ '			  switch (this.options[this.selectedIndex].value) { '
+ '			  case \'1\': sizeme(1); break;'
+ '			  case \'2\': sizeme(2); break;'
+ '			  case \'3\': sizeme(3); break;'
+ '			  case \'11\': colorme(1); break;'
+ '			  case \'12\': colorme(2); break;		'
+ '			  case \'13\': colorme(3); break;'
+ '			  case \'21\': bcolorme(1); break;'
+ '			  case \'22\': bcolorme(2); break;		'
+ '			  case \'23\': bcolorme(3); break;'
+ '			  case \'31\': html2text(); break;'
+ '			  case \'32\': radiolinks(); break;'
+ '			  case \'100\': window.location.reload(); break;'
+ '			  }">'
+ '                    <option  selected="selected">ADA MENU</option>'
+ '                    <OPTGROUP LABEL="Change font size">'
+ '                    <option value="1">Small (10pt)</option>'
+ '                    <option  value="2">Medium (13pt)</option>'
+ '                    <option value="3">Large (16pt)</option>'
+ '                    </OPTGROUP>'
+ '                    <OPTGROUP LABEL="Change Text color">'
+ '					 <option style="color:#FFf;background-color:#000000" value="13">White</option>'
+ '                    <option style="color:#E2DDB5;background-color:#000000" value="12">Cream</option>'
+ '                    <option style="color:#000000" value="11">Black</option>'
+ '                   '
+ '                    </OPTGROUP>'
+ '                    <OPTGROUP LABEL="Change Background color">'
+ '                    <option style="background-color:#FFF;color:#000000" value="21">White</option>'
+ '                    <option style="background-color:#E2DDB5;color:#000000" value="22">Cream</option>'
+ '                    <option style="background-color:#000000;color:#FFf;" value="23">Black</option>'
+ '                    </OPTGROUP>'
+ '                    <OPTGROUP id="content"  LABEL="Content">'
+ '                    <option  value="31">Plain Text</option>'
+ '                    <option  value="32">Highlight Links</option>'
+ '                    </OPTGROUP>'
+ '                    <option  value="100" style="color:#FF0000;font-weight:bold;">Reset settings</option>'
+ '                  </SELECT>'
+ '                </div>';
// ###############################################################################					  
//END body of ADA	
*/

					  + '<option value="../our_company/contact_us.html|_self">Contact Information</option>'

					  + '<option value="../email_newsletter.html|_self">Subscribe to Newsletter</option>'

                      + '</select>';
//----- Bottom Nav table
var bottomRowHTML = '<table cellspacing="0" cellpadding="0" border="0" width="100%" class="lowernavlinks"><tr>';


bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="application_areas/index.html"'
			   + ' target="_self">'
			   + 'Solutions</a></td>';

bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="system_architecture/index.html"'
			   + ' target="_self">'
			   + 'How It Works</a></td>';

bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="products/index.html"'
			   + ' target="_self">'
			   + 'Products</a></td>';

bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="support/index.html"'
			   + ' target="_self">'
			   + 'Support</a></td>';

bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="news/index.html"'
			   + ' target="_self">'
			   + 'Media</a></td>';

bottomRowHTML += '<td align="center" height="30" class="lowernavlinks"> <a class="lowernavlinks" style="font-size: 8pt"'
			   + ' href="our_company/index.html"'
			   + ' target="_self">'
			   + 'Our Company</a></td>';



bottomRowHTML += '</table>';

//----- Left Tabs Table
var browseAsHTML =
				'<table id="browseastable" class="topleftlinks" width="100%" cellspacing="0" cellpadding="4" border="0">'
              + '<tr>'
              + '<td class="browseitalic"></td>';


var label = "9";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'application_areas/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'Solutions</a>'
			 + '</td>'


var label = "11";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'system_architecture/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'How&nbsp;It&nbsp;Works</a>'
			 + '</td>'


var label = "13";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'products/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'Products</a>'
			 + '</td>'


var label = "16";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'support/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'Support</a>'
			 + '</td>'


var label = "19";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'news/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'Media</a>'
			 + '</td>'


var label = "21";

browseAsHTML += ''
			 + '<td valign="middle" class="browse" onmouseover="onLabel=true; dropChange('
			 + '\'' + label + '\''
			 + ', 1);" onmouseout="onLabel=false; setTimeout(\'revertDrop()\', 2000);"> '
			 + '<a class="browse" href="'
			 + 'our_company/index.html'	//remove ../
			 + '" target="'
			 + '_self'
			 + '">'
			 + 'Our&nbsp;Company</a>'
			 + '</td>'

             + '</tr>'
             + '</table>';
//----- Right Tabs Table
var mainTabsHTML = '<table id="maintabstable"  align="center" width="100%" cellspacing="0" cellpadding="0" border="0">'
                 + '<tr>'

                    + '</tr>'
                 + ' </table>';
var topTabsHTML =
//----- Search and top links table
				  '<span style="vertical-align: bottom;">'
                  + '<table id="toprighttable" class="toprighttable" border="0" cellspacing="0" cellpadding="0" align="right">'

					+ '<tr>'
					+ '<td class="toprightlabels">'
					+ '<span class="toprightsearch">'
					+ '<form name="searchForm" action="search_results.asp" method="get" style="margin-bottom:0px; text-align:right;">'
					+ '<input type="hidden" name="mode" value="anywords" />'
					+ '<input type="hidden" name="RZscope" value="FILE" />'
					+ '<input type="hidden" name="RZpath_option" value="URL" />'
					+ '<input type="hidden" name="RZlocation" value="" />'
					+ '<input type="hidden" name="RZfilenames" value="*.html" />'
					+ '<input type="hidden" name="RZsubfolders" value="true" /> '
					+ '<input type="hidden" name="RZexclude_dirs" value="revize,revizelogin,setup,pdm" />'
					+ '<input name="search" type="text" class="searchinput" value="search" onfocus="clearSearch(this)"/>'
					+ '<input type="button" class="searchbutton" value=" Go " '
					+ 'onclick="document.searchForm.submit()"/>'
					+ '</form>'
					+ '</span>'
					+ '</td>'
				+ '</tr>'
			+ '</table>'
			+ '</span>';

var onTable = false;
var onLabel = false;
//----- Dropdown menu table
var tableHeader = '<table width="100%" height="100%" border="0" class="dropdown" cellpadding="0" cellspacing="0" onmouseover="onTable = true; " onmouseout="onTable = false; setTimeout(\'revertDrop()\', 2000);">';
var tableFooter = '</tr></table>';
var filteredList;
var dropdownList;
var color1; var bgNormal; //new, easier-to-understand names
var color2; var bgHover;
var color3; var textNormal;
var color4; var textHover;
var dropdownlist1 = new Array();
var dropdownlist2 = new Array();

function navigateWithQuickLinks(formElement)
{
	var url = formElement.value;
	if (url == '') return;
	var targer = "";
	var pos = url.indexOf("|");
	if (pos != -1)
	{
		target = url.substring(pos+1);
		url = url.substring(0,pos);
	}
	url = replacesubstring(url,"../","");
	RZgoto(url, target);
}

function RZsubstring(str, startpos, endpos)
{
	if (typeof endpos == 'undefined') endpos = str.length + 1

	//----- Validate input string
	if (str == null || str.length == 0)	//if null or empty string
		return "";						//...return empty string

	//----- Validate end position
	if (endpos > str.length )			//greater than string length
		endpos = str.length;			//...set to length

	else if( endpos <= 0 )				//if end position before 1st character
		return "";						//...return empty string

	//----- Validate start position
	if( startpos >= endpos )  			//if start position greater than ending position
		return "";						//...return empty string

	else if (startpos < 0) 				//if start position less than 0
		startpos = 0;					//...assume 0

	//----- Return the substring
	return str.substring(startpos,endpos);
}
function replacesubstring( inStr, fromString, toString )
{
	var pos = 0
	if (inStr == null
	|| typeof inStr.length == 'undefined' //true or false
	|| inStr.length == 0) return '';

	var fromLen = fromString.length
	if (fromLen == 0) return inStr

	while (true)
	{
		pos = inStr.indexOf(fromString,pos)
		if (pos == -1) break
		inStr = RZsubstring( inStr, 0, pos )
		      + toString
		      + RZsubstring( inStr, pos + fromLen )
		pos += toString.length
	}
	return inStr
}


function setUpDropDowns() {

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Hospitals & Clinics",
								"http://www.cimtechniques.com/application_areas/hospitals_&_clinics.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Regional Blood Centers",
								"http://www.cimtechniques.com/application_areas/regional_blood_centers.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Research Laboratories",
								"http://www.cimtechniques.com/application_areas/research_laboratories.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Colleges & Universities",
								"http://www.cimtechniques.com/application_areas/colleges_&_universities.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Transportation of Critical Materials",
								"http://www.cimtechniques.com/application_areas/transportation_of_critical_materials.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Pharmaceutical Manufacturing",
								"http://www.cimtechniques.com/application_areas/pharmaceutical_manufacturing.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Warehouses & Repositories",
								"http://www.cimtechniques.com/application_areas/warehouses_&_repositories.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Food Services & Restaurants",
								"http://www.cimtechniques.com/application_areas/food_services_&_restaurants.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "9",
								"Energy & Utilities Conservation",
								"http://www.cimtechniques.com/application_areas/energy_&_utilities_conservation.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Architecture",
								"http://www.cimtechniques.com/system_architecture/Architecture.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Web Server",
								"http://www.cimtechniques.com/system_architecture/web_server.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Message Delivery",
								"http://www.cimtechniques.com/system_architecture/message_delivery.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Data Displays",
								"http://www.cimtechniques.com/system_architecture/user_access.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Reporting",
								"http://www.cimtechniques.com/system_architecture/reporting.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "11",
								"Installation",
								"http://www.cimtechniques.com/system_architecture/installation.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"CIMScan Software",
								"http://www.cimtechniques.com/products/cimscan_server_software.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"Sensors",
								"http://www.cimtechniques.com/products/cimalert_message_delivery_manager.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"Monitoring Stations",
								"http://www.cimtechniques.com/products/monitoring_stations.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"Gateways",
								"http://www.cimtechniques.com/products/sensors_&_instruments.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"Displays",
								"http://www.cimtechniques.com/products/displays.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "13",
								"Modbus Hardware Components",
								"http://www.cimtechniques.com/products/modbus_hardware_components.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "16",
								"Download Manuals and Documents",
								"http://www.cimtechniques.com/support/download_manuals_&_documents.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "16",
								"Download Updates",
								"http://www.cimtechniques.com/support/download_updates.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "16",
								"Report a Bug",
								"http://www.cimtechniques.com/support/report_a_bug.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "16",
								"Suggest a Product Improvement",
								"http://www.cimtechniques.com/support/suggest_a_product_improvement.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "19",
								"CIMScan in the News",
								"http://www.cimtechniques.com/news/cimscan_in_the_news.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "19",
								"Current Events",
								"http://www.cimtechniques.com/news/current_events.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "19",
								"Press Releases",
								"http://www.cimtechniques.com/news/press_releases.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "21",
								"Careers",
								"http://www.cimtechniques.com/our_company/careers.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "21",
								"Quality Policy",
								"http://www.cimtechniques.com/our_company/quality_policy.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "21",
								"Sales Representatives",
								"http://www.cimtechniques.com/our_company/sales_representatives.html",
								"_self");

		dropdownlist1.length++;
		dropdownlist1[dropdownlist1.length - 1]
			= new DropdownItem( "21",
								"Contact Information",
								"http://www.cimtechniques.com/our_company/contact_us.html",
								"_self");




}

function FixMenu(){



	//vertical align
	var ob =document.getElementById("browseas").getElementsByTagName("td");
	for(var i=0;i<ob.length;i++) ob[i].style.verticalAlign='top';
	
	var ob =document.getElementById("maintabs").getElementsByTagName("td");
	for(var i=0;i<ob.length;i++)  ob[i].style.verticalAlign='top';
	//end vertical align



	//select left side  menulinks
	var html_left=document.getElementById("browseas").getElementsByTagName("a");
	//select right side  menulinks
	var html_right=document.getElementById("maintabs").getElementsByTagName("a");
	
	
	
	// calculate number of characters allowed per line	
	var length_to_verify=50/(html_left.length+html_right.length);	
	
	var space=/&nb[s]p;/g;
	
	//left side menu
	for(var i=0;i<html_left.length;i++) 
	{	
		html_left[i].innerHTML=html_left[i].innerHTML.replace( space, ' ' );
		var alink=html_left[i].innerHTML;
		html_left[i].style.textAlign='center';
		
		if(alink.length>length_to_verify){
		var asplit=alink.indexOf(" ",length_to_verify);
		if (asplit!=-1) html_left[i].innerHTML=alink.substr(0,asplit)+"<br>"+alink.substr(asplit,alink.length);
		}		
	}
	
	//right side menu
	for(var i=0;i<html_right.length;i++) 
	{	
		html_right[i].innerHTML=html_right[i].innerHTML.replace( space, ' ' );
		var alink=html_right[i].innerHTML;
		html_right[i].style.textAlign='center';
		
		if(alink.length>length_to_verify){
		var asplit=alink.indexOf(" ",length_to_verify);
		if (asplit!=-1) html_right[i].innerHTML=alink.substr(0,asplit)+"<br>"+alink.substr(asplit,alink.length);
		}		
	}



}
//END javascript WORD WRAP
// ###############################################################################
function addTabs() {
	setTimeout('FixMenu()', 100); // WORD WRAP FIX execution
	if (document.getElementById("browseas")) {
		var browseascell = document.getElementById("browseas");
		browseascell.innerHTML = browseAsHTML;
		var maintabscell = document.getElementById("maintabs");
		maintabscell.innerHTML = mainTabsHTML;
		var toptabscell = document.getElementById("toptabs");
		if(toptabscell != null)
			toptabscell.innerHTML = topTabsHTML;
		var bottomnavcell = document.getElementById("lowerNavRow");
		bottomnavcell.innerHTML = bottomRowHTML;
	} else {
		document.all.browseas.innerHTML = browseAsHTML;
		document.all.maintabs.innerHTML = mainTabsHTML;
		document.all.toptabs.innerHTML = topTabsHTML;
		if (document.all.lowerNavRow) {
			document.all.lowerNavRow.innerHTML = bottomRowHTML;
		}
	}

	if (document.all && document.all != undefined && document.all.quickLinksLayer != undefined) {
		document.all.quickLinksLayer.innerHTML = quickLinksHTML;
	} else if (document.getElementById("quickLinksLayer")) {
		var qL = document.getElementById("quickLinksLayer");
		qL.innerHTML = quickLinksHTML;
	}
	document.body.style.marginTop = "0px";
}

function getArrayForTabNumber(dropdownlist, tabNumber) {
	var resultArray = new Array();
	for (var i = 0; i < dropdownlist.length; i++) {
		if (dropdownlist[i].tabNumber == tabNumber) {
			resultArray.length++;
			resultArray[resultArray.length - 1] = dropdownlist[i];
		}
	}
	return resultArray;
}

function DropdownItem(tabNumber, label, link, target) {
	this.tabNumber = tabNumber;
	this.label = label;
	this.link = link;
	this.target = target;
}

function RZgoto(url, target)
{
	url = RZbaseurl(url)
	if (target != 'true' && target != '_new')
		location = url;
	else
		window.open(url)	//always new window, no features
//		RZpopupUrl( '', url )	//always new window, no features
}

function RZbaseurl(url)
{
	//----- Append baseurl to url (location does not honor html <link...> tag)
	//		TODO: validate all browsers ignore html <link...> tag
	//		(also may need to consider links starting with ../)
	if (url.substring(0,4) != "http" && url.substring(0,4) != "www.")
		url = RZ.baseurlprefix + url
	return url
}


function dropChange(tabLabel, listNumber) {
	dropdownlist = (listNumber == 1 ? dropdownlist1 : dropdownlist2);
	filteredList = getArrayForTabNumber(dropdownlist, tabLabel);
	
	bgNormal = "#003399";
	bgHover = "";
	textNormal = "#FFFFFF";
	textHover = "#999933";
	var dropdownText = "";
	var cellWidth = 100 / (filteredList.length > 0 ? filteredList.length : 1) + 1;
	var dropdownrow = '<tr class="dropdownrow" style="color:' + bgHover + '; background-color:' + bgNormal + ';">';
	for (i = 0; i < filteredList.length; i++) {
		if (i != 0) {
			//This is the border bar for the dropdowns.
			dropdownText += '<td width="1" bgcolor=' + bgHover + '>'
			              + '<img style="visibility:hidden; width:1" /></td>';
		}
		dropdownText += '<td align="center" width="' + cellWidth + '%"'
		        	  + ' onclick="RZgoto('
		        	  + 	"'"
		        	  + 	filteredList[i].link
					  + 	"','"
					  + 	filteredList[i].target
		        	  + 	"'"
					  + 	')"'
					  + ' style="color:' + textNormal + '"'
					  + ' onmouseover="dropdownColorSwap(this, true);"'
					  + ' onmouseout="dropdownColorSwap(this, false);">'
					  + filteredList[i].label
					  + '</td>';
	}
	if (document.all && document.all != undefined) {
		document.all["horizdrop"].innerHTML = tableHeader + dropdownrow + dropdownText + tableFooter;
	} else if (document.getElementById("horizdrop")) {
		var horizdrop = document.getElementById("horizdrop");
		horizdrop.innerHTML = tableHeader + dropdownrow + dropdownText + tableFooter;
	}
}

function revertDrop(tabNumber) {
	if (!onTable && !onLabel) {
		if (document.all && document.all != undefined) {
			document.all["horizdrop"].innerHTML = "";
		} else {
			var horizdrop = document.getElementById("horizdrop");
			horizdrop.innerHTML = "";
		}
	}
}

function dropdownColorSwap(cell, over) {
	if (over) {
		cell.style.backgroundColor = bgHover; //previously color2
		cell.style.color = textHover; //previously undefined color4
	} else {
		cell.style.backgroundColor = bgNormal; //previously color1
		cell.style.color = textNormal; //previously color3;
	}
}

function clearSearch(theText) {
    if (theText.value == theText.defaultValue) {
        theText.value = ""
    }
}
