<!-- hide from older browser
   function hide()
   {
	var TM = parent.document.getElementById('tm');
	TM.style.visibility="hidden";
	var TMD = parent.document.getElementById('tmDOW');
	TMD.style.visibility="hidden";	
	var TMB = parent.document.getElementById('tmBoth');
	TMB.style.visibility="hidden";
   }
   function unhide()
   {
	var TM = parent.document.getElementById('tm');
	TM.style.visibility="visible";
   } 
   function oneDOW()
   {
	var TM = parent.document.getElementById('tmDOW');
	TM.style.visibility="visible";
   }      
   function one()
   {
	var TM = parent.document.getElementById('tm');
	TM.style.visibility="visible";
   }  
   function both()
   {
	var TM = parent.document.getElementById('tmBoth');
	TM.style.visibility="visible";
   }      
   function addApp()
   {
   	var SelList = document.frmMain.select1;
   	SelList.length = 6;
   	SelList[0]= new Option("","");
   	SelList[2]= new Option("Agriculture: Post-Harvest","Tech/post_harvest.htm");  
   	SelList[3]= new Option("Agriculture: Pre-Harvest","Tech/pre_harvest.htm");  
   	SelList[4]= new Option("Brining","Tech/brining.htm");  
	SelList[5]= new Option("Concrete Acceleration","Tech/concrete.htm");
   	SelList[6]= new Option("Drilling Fluid Additive","Tech/drilling.htm");  
	SelList[7]= new Option("Dust Control","Tech/dust.htm");   	
   	SelList[8]= new Option("Food Processing","Tech/food.htm");  
   	SelList[9]= new Option("Hydrocarbon Dehydration","Tech/hydro.htm");     
	SelList[10]= new Option("Ice Melting - Road and Highway","Tech/ice_melt_hwy.htm");   
	SelList[11]= new Option("Ice Melting - Sidewalks","Tech/ice_melt_side.htm"); 	  		
   	SelList[12]= new Option("Industrial","Tech/industrial.htm");  
   	SelList[13]= new Option("Refrigeration","Tech/refrid.htm");  
   	SelList[14]= new Option("Roads: Base Stabilization","Tech/base_bsb.htm");  
   	SelList[15]= new Option("Roads: Full Depth Reclamation","Tech/base_fdr.htm");  
   	SelList[16]= new Option("Tire Weighting","Tech/tire.htm");  
   	SelList[17]= new Option("Water Treatment (Non-potable)","Tech/water.htm");  

   }
   function addProduct()
   {
   	var SelList = document.frmMain.select2;
   	SelList.length = 10;
	SelList[0]= new Option("","");
	SelList[1]= new Option("Anhydrous Calcium Chloride 94-97% Mini-Pellets","Tech/techanhydrous.htm"); 
	SelList[2]= new Option("BRINERS CHOICE™ Anhydrous Calcium Chloride Pellets","Tech/briners.htm"); 
	SelList[3]= new Option("COMBOTHERM™ Blended Deicer","Tech/combotherm.htm"); 
	SelList[4]= new Option("Calcium Chloride 83-87% Granulated","Tech/calchlorgran.htm");
	SelList[5]= new Option("DOWFLAKE™ Xtra 83-87% Calcium Chloride Flakes","Tech/dowflakextra.htm") ;
	SelList[6]= new Option("Food Grade Anhydrous 94-97% Calcium Chloride Pellets","Tech/fganhydrous.htm") ;
	SelList[7]= new Option("LIQUIDOW™ Technical Grade Calcium Chloride Solution","Tech/liquidow.htm") ;
	SelList[8]= new Option("LIQUIDOW™ Food Grade Calcium Chloride Solution","Tech/liquidowfg.htm") ;
	SelList[9]= new Option("PELADOW™ DG Calcium Chloride Briquettes","Tech/peladowdg.htm") ;
	SelList[10]= new Option("PELADOW™ Premier Snow & Ice Melter", "Tech/peladow.htm") ;
   
   }
   function addProductSearch()
   {
   	var SelList = document.frmMain.select2;
   	SelList.length = 10;
	SelList[0]= new Option("","");
	SelList[1]= new Option("Anhydrous Calcium Chloride 94-97% Mini-Pellets","ANHYD 94-97% MINI-PELLET"); 
	SelList[2]= new Option("BRINERS CHOICE™ Anhydrous Calcium Chloride Pellets","BRINERS CHOICE"); 
	SelList[3]= new Option("COMBOTHERM™ Blended Deicer","COMBOTHERM"); 
	SelList[4]= new Option("Calcium Chloride 83-87% Granulated","Calcium Chloride 83-87% Granulated");
	SelList[5]= new Option("DOWFLAKE™ Xtra 83-87% Calcium Chloride Flakes","DOWFLAKE") ;
	SelList[6]= new Option("Food Grade Anhydrous 94-97% Calcium Chloride Pellets","FOOD GRADE Anydrous") ;
	SelList[7]= new Option("LIQUIDOW™ Technical Grade Calcium Chloride Solution","LIQUIDOW") ;
	SelList[8]= new Option("LIQUIDOW™ Food Grade Calcium Chloride Solution","LIQUIDOW FOOD GRADE") ;
	SelList[9]= new Option("PELADOW™ DG Calcium Chloride Briquettes","PELADOW DG") ;
	SelList[10]= new Option("PELADOW™ Premier Snow & Ice Melter", "PELADOW") ;
   
   } 
    	function doStartUn()
	{
		ChildReset()
		parent.topHello('sel1');
		both();
	}
    	function doStart()
	{
		ChildReset();
		parent.topHello('sel1');
		hide();
	}
    	function doStartDOW()
	{
		ChildReset();
		parent.topHello('sel1');
		oneDOW();
	}	
    	function doStartOne()
	{
		ChildReset();
		parent.topHello('sel1');
		one();
	}
    	function doStartBoth()
	{
		ChildReset();
		parent.topHello('sel1');
		both();
	}		
	function ChildReset()
	{

	var menu = parent.document.getElementById('sel1');
	if (menu.style.backgroundColor != 'white') { 
	  menu.style.backgroundColor = 'white'; 
	  menu.style.color = '#535353';	
	}
	
	menu = parent.document.getElementById('sel3');
	if (menu.style.backgroundColor != 'white') { 
	  menu.style.backgroundColor = 'white'; 
	  menu.style.color = '#535353';	
	}	
	menu = parent.document.getElementById('sel4');
	if (menu.style.backgroundColor != 'white') { 
	  menu.style.backgroundColor = 'white'; 
	  menu.style.color = '#535353';	
	}	
	menu = parent.document.getElementById('sel5');
	if (menu.style.backgroundColor != 'white') { 
	  menu.style.backgroundColor = 'white'; 
	  menu.style.color = '#535353';	
	}	
	menu = parent.document.getElementById('sel6');
	if (menu.style.backgroundColor != 'white') { 
	  menu.style.backgroundColor = 'white'; 
	  menu.style.color = '#535353';	
	}
	}		    
   function addAppContact()
   {
   	var SelList = document.frmMain.select1;
   	SelList.length = 17;
	SelList[0]= new Option("","");
   	SelList[1]= new Option("Agriculture: Post-Harvest","Agriculture: Post-Harvest");  
   	SelList[2]= new Option("Agriculture: Pre-Harvest","Agriculture: Pre-Harvest");
   	SelList[3]= new Option("Brining","Brining");  
	SelList[4]= new Option("Concrete Acceleration","Concrete Acceleration");
   	SelList[5]= new Option("Drilling Fluid Additive","Drilling Fluid Additive");  
	SelList[6]= new Option("Dust Control","Dust Control");   	
   	SelList[7]= new Option("Food Processing","Food Processing");  
   	SelList[8]= new Option("Hydrocarbon Dehydration","Hydrocarbon Dehydration");     
	SelList[9]= new Option("Ice Melting - Road and Highway","Ice Melting - Road and Highway");   
	SelList[10]= new Option("Ice Melting - Sidewalks","Ice Melting - Sidewalks"); 	  		
   	SelList[11]= new Option("Industrial","Industrial");  
   	SelList[12]= new Option("Refrigeration","Refrigeration");  
   	SelList[13]= new Option("Roads: Base Stabilization","Roads: Base Stabilization");  
   	SelList[14]= new Option("Roads: Full Depth Reclamation","Roads: Full Depth Reclamation");  
   	SelList[15]= new Option("Tire Weighting","Tire Weighting");   
   	SelList[16]= new Option("Not Applicable","Not Applicable");  	 	
   } 
   function addProductContact()
   {
   	var SelList = document.frmMain.select2;
   	SelList.length = 12;
	SelList[0]= new Option("","");
	SelList[1]= new Option("Anhydrous Calcium Chloride 94-97% Mini-Pellets","Anhydrous Calcium Chloride 94-97% Mini-Pellets"); 
	SelList[2]= new Option("BRINERS CHOICE™ Anhydrous Calcium Chloride Pellets","BRINERS CHOICE™ Anhydrous Calcium Chloride Pellets"); 
	SelList[3]= new Option("COMBOTHERM™ Blended Deicer","COMBOTHERM™ Blended Deicer"); 
	SelList[4]= new Option("Calcium Chloride 83-87% Granulated");
	SelList[5]= new Option("DOWFLAKE™ Xtra 83-87% Calcium Chloride Flakes","DOWFLAKE™ Xtra 83-87% Calcium Chloride Flakes") ;
	SelList[6]= new Option("Food Grade Anhydrous 94-97% Calcium Chloride Pellets","Food Grade Anhydrous 94-97% Calcium Chloride Pellets") ;
	SelList[7]= new Option("LIQUIDOW™ Technical Grade Calcium Chloride Solution","LIQUIDOW™ Technical Grade Calcium Chloride Solution") ;
	SelList[8]= new Option("LIQUIDOW™ Food Grade Calcium Chloride Solution","LIQUIDOW™ Food Grade Calcium Chloride Solution") ;
	SelList[9]= new Option("PELADOW™ DG Calcium Chloride Briquettes","PELADOW™ DG Calcium Chloride Briquettes") ;
	SelList[10]= new Option("PELADOW™ Premier Snow & Ice Melter", "PELADOW™ Premier Snow & Ice Melter") ;
	SelList[11]= new Option("Not Applicable","Not Applicable");
   
   }   
function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
function cleanString(name)
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  return regex;
}   

function dodacheck(val) 
{
	var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;
	var strPass = val.value;
	var strLength = strPass.length;
	var lchar = val.value.charAt((strLength) - 1);
	if(lchar.search(mikExp) != -1) {
	var tst = val.value.substring(0, (strLength) - 1);
	val.value = tst;
   }
}
function doanothercheck( form ) 
{
	var mikExp = /[$\\@\\\#%\^\&\*\(\)\[\]\+\_\{\}\`\~\=\|]/;
	if(form.value.length < 1) 
	{
		alert("Please enter something.");
		return false;
	}
	if(form.value.search(mikExp) == -1) {
		//alert("Correct Input");
		return true;
	}
	else 
	{
		alert("Sorry, but the following characters\n\r\n\r@ $ % ^ & * # ( ) [ ] \\ { + } ` ~ =  | \n\r\n\rare not allowed!\n");
		return false;
		form.select();
		form.focus();
		return false;
	}
	return true;
}
   //-->   