<!-- 
//****************************
// header
 
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage(frame, arg) {
  if (frame == window) {
    printThis();
  } else {
    link = arg; // a global variable 
    printFrame(frame);
  }
  //return false;
}

function printThis() {
  if (pr) { // NS4, IE5
    window.print();
  } else if (da && !mac) { // IE4 (Windows)
    vbPrintPage();
  } else { // other browsers
    alert("Sorry, your browser doesn't support this feature.");
  }
}

function printFrame(frame) {
  if (pr && da) { // IE5
    frame.focus();
    window.print();
    link.focus();
  } else if (pr) { // NS4
    window.print();
  } else if (da && !mac) { // IE4 (Windows)
    frame.focus();
    setTimeout("vbPrintPage(); link.focus();", 100);
  } else { // other browsers
    alert("Sorry, your browser doesn't support this feature.");
  }
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}
function bookmark()
{
if (pr && da) 
{
	var url = document.location;
	var description = document.title;
	//alert(description);
	window.external.AddFavorite(url, description);
}
}

function sendfriend(path)
{

	var furl = path + 'formfriend.pgm?emailsubj=' + document.title + '&site=' + escape(document.location)	
	document.location = furl;
}

function submitSearch()
{
	setCookie('0');
	document.searchForm.submit();
}

//****************************
//findrep

// quick browser tests
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;
	
		function showdiv(obj1, obj2, yesno)
		{
			if (ie4 || ie5) 
			{	
				if (yesno == "no")
				{
					document.all[obj1].style.visibility = 'hidden';
					document.all[obj2].style.visibility = 'hidden';
				} else
				{
					document.all[obj1].style.visibility = 'visible';	
					document.all[obj2].style.visibility = 'visible';			
				}
			}
			
			if (ns4)
			{		
				if (yesno == "no")
				{
					document.layers[obj1].visibility = 'hidden';
					document.layers[obj2].visibility = 'hidden';
				} else
				{
					document.layers[obj1].visibility = 'visible';			
					document.layers[obj2].visibility = 'visible';			
				}
			}
		}
	 
		//  Check the value in the country drop down to determine if the form should be submitted
		//  on this change.
		function checkcont()
		{
			if ((document.repform.RSCOUN.value != ''))// && (document.repform.RSMKID.value != ''))
			{
				document.repform.RSSTNM.value = '';
				document.repform.RSAREA.value = '';
				document.repform.submit();
			}
		} 
		function checkmark()
		{
			if ((document.repform.RSMKID.value != ''))
			{
				document.repform.submit();
			}
		}
		
		//  Check the value in the State drop down to determine if the form should be submitted
		//  on this change.
		function checkstate()
		{
			if (document.repform.RSSTNM.value != '')
			{		
				document.repform.RSAREA.value = '';
				document.repform.submit();
			}
		} 
		
		//  Check the value in the State drop down to determine if the form should be submitted
		//  on this change.
		function checkarea()
		{
			//  Check if there are 3 characters in the area code
			if (document.repform.RSAREA.value.length == 3)
			{		
				document.repform.submit();
			}
		} 		
	
		function checkrep()
		{
			//  Check the country value
			if ((document.repform.RSCOUN.value == 'USA') || (document.repform.RSCOUN.value == 'CAN'))
			{
				//  The country is either canada or US, so display the state
				showdiv('state1', 'state2', 'yes');
				if ((document.repform.RSCOUN.value == 'USA') && (document.repform.RSSTNM.value != ''))
				{
					showdiv('market1', 'market2', 'yes');
				}
				else
				{
					showdiv('market1', 'market2', 'no');
				}
	
			} else
			{
				showdiv('state1', 'state2', 'no');
				showdiv('market1', 'market2', 'no');
			}
			
			// Check to see if China was selected - we need market now.
			// They DON'T want market now. 
	//		if (document.repform.RSCOUN.value == 'CHN')
	//		{
	//			showdiv('market1', 'market2', 'yes');
	//		}
	
		} 
		function showarea(areaval)
		{
			if (areaval == 'Y')
			{
				showdiv('area1', 'area2', 'yes');
			}
			else
			{
				showdiv('area1', 'area2', 'no');
			}
		}
	
//Google Analytics Script
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

	try {
		var pageTracker = _gat._getTracker("UA-4586888-2");
		pageTracker._trackPageview();
	} catch(err) {}



//--> 
