// ------------------------------------------------------------------

	function dispBox(name)
	{
		b_image = name;
		document.getElementById('big_image').src = 'pub/images/' + b_image;
	}

	function dispBox2(name, place)
	{
		b_image = name;
		document.getElementById(place).src = 'pub/images/' + b_image;
	}

// ------------------------------------------------------------------

	function MM_findObj(n, d) { //v4.01
	 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	 if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

// ------------------------------------------------------------------

	function funnel_win(theURL,winName,width,height) {
		var myWin = window.open(theURL,winName,'width=' + width + ',height=' + height + ',top=' + (screen.height-height)/2 + ',left=' + (screen.width-width)/2 + ',scrollbars=yes');
	}

// ------------------------------------------------------------------

	function showProductDescription(sku_id) {
		thisWidth = 300;
		thisHeight = 300;
		var myWin = window.open('registration.asp?page=PRODUCTDESCRIPTION&sku_id=' + sku_id + '&p=3','ProductDescription','width=' + thisWidth + ',height=' + thisHeight + ',scrollbars=yes');
	}

// ------------------------------------------------------------------

	function showMainHelp(url) {
		thisWidth = 400;
		thisHeight = 500;
		var myWin = window.open('pub/docs/registration_help.htm#' + url,'Help','width=' + thisWidth + ',height=' + thisHeight + ',top=0,left=' + (screen.width-thisWidth-15) + ',scrollbars=yes');
	}
	
// ------------------------------------------------------------------

	var number_of_submit_clicks = 0;
	
	function only_once()
	{
		number_of_submit_clicks += 1;
  		if (number_of_submit_clicks > 1)
		{
			var theMessage = "Please be patient. The form has been submitted. Pressing submit multiple times will result in your account being billed multiple times. You will receive a response momentarily.";
			alert(theMessage);
			return false;
		}
		else
		{
			return true;
		}
	}		
	

// ------------------------------------------------------------------

	function turnOn(imgName) {
		if (document.images) {
			document[imgName].src = eval(imgName + 'on.src');
		}
	}
	
	function turnOff(imgName) {
		if (document.images) {
			document[imgName].src = eval(imgName + 'off.src');
		}
	}
	
	function cms_popup(theURL,winName,width,height) {
		var myWin = window.open(theURL,winName,'width=' + width + ',height=' + height + ',top=' + (screen.height-height)/2 + ',left=' + (screen.width-width)/2 + ',scrollbars=yes');
	}

// ------------------------------------------------------------------

	function toggleDiv(id,flagit) {
		if (flagit=="1"){
			if (document.layers) document.layers[''+id+''].visibility = "show"
			else if (document.all) document.all[''+id+''].style.visibility = "visible"
			else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
		}
		else {
			if (document.layers) document.layers[''+id+''].visibility = "hide"
			else if (document.all) document.all[''+id+''].style.visibility = "hidden"
			else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
		}
	}

// ------------------------------------------------------------------


	function enlargeRuler() {
		minPageHeight = 287;
		minRulerHeight = 0;
		if (document.layers) {
			if (window.innerHeight > minPageHeight) document.images['ruler'].height = (window.innerHeight - minPageHeight) + minRulerHeight;
		}
		else if (document.documentElement.clientHeight > 0) {
			if (document.documentElement.clientHeight > minPageHeight) document.images['ruler'].height = (document.documentElement.clientHeight - minPageHeight) + minRulerHeight;
		}
		else {
			if (document.body.clientHeight > minRulerHeight) document.images['ruler'].height = (document.body.clientHeight - minPageHeight) + minRulerHeight;
		}
	}
	
	function myRuler() {
		minPageHeight = 287;
		minRulerHeight = 0;
		if (document.layers) document.write ('<img src=\"' + rootURL + 'pub/images/dot.gif\" width=\"1\" height=\"'+((window.innerHeight > minPageHeight) ? (window.innerHeight - (minPageHeight + 10)) + minRulerHeight : 1)+'\" name=\"ruler\">');
			else document.write ('<img src=\"' + rootURL + 'pub/images/dot.gif\" width=\"1\" height=\"1\" name=\"ruler\">');
	}
	
	url = document.location.href;
	xend = url.lastIndexOf("/") + 1;
	rootURL = url.substring(0, xend);