
function toggleLayer(whichLayer)
	{
		if (document.getElementById)
			{
				// this is the way the standards work
				var style2 = document.getElementById(whichLayer).style;
				style2.display = style2.display? "":"block";
			}
		else if (document.all)
			{
				// this is the way old msie versions work
				var style2 = document.all[whichLayer].style;
				style2.display = style2.display? "":"block";
			}
		else if (document.layers)
			{
				// this is the way nn4 works
				var style2 = document.layers[whichLayer].style;
				style2.display = style2.display? "":"block";
			}
	}
	
	
function ajaxFunction(){
	var ajaxRequest;  // The variable that makes Ajax possible!
	
	try{
		// Opera 8.0+, Firefox, Safari
		ajaxRequest = new XMLHttpRequest();
	} catch (e){
		// Internet Explorer Browsers
		try{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e){
				// Something went wrong
				alert("Your browser broke!");
				return false;
			}
		}
	}
	// Create a function that will receive data sent from the server
	ajaxRequest.onreadystatechange = function(){
		if(ajaxRequest.readyState == 4){
			document.form.results.value = 'ok'; //ajaxRequest.responseText;
		}
	}
	ajaxRequest.open("GET", "/includes/urlUpdate.cfm", true);
	ajaxRequest.send(null); 
}


// http://dhtmlpopups.webarticles.org

function fireMyPopup() {
<!-- Due to different browser naming of certain key global variables, we need to do three different tests to determine their values -->
pageTracker._trackPageview('/join/popup.html');
// Determine how much the visitor had scrolled

var scrolledX, scrolledY;
if( self.pageYOffset ) {
  scrolledX = self.pageXOffset;
  scrolledY = self.pageYOffset;
} else if( document.documentElement && document.documentElement.scrollTop ) {
  scrolledX = document.documentElement.scrollLeft;
  scrolledY = document.documentElement.scrollTop;
} else if( document.body ) {
  scrolledX = document.body.scrollLeft;
  scrolledY = document.body.scrollTop;
}

// Determine the coordinates of the center of browser's window

var centerX, centerY;
if( self.innerHeight ) {
  centerX = self.innerWidth;
  centerY = self.innerHeight;
} else if( document.documentElement && document.documentElement.clientHeight ) {
  centerX = document.documentElement.clientWidth;
  centerY = document.documentElement.clientHeight;
} else if( document.body ) {
  centerX = document.body.clientWidth;
  centerY = document.body.clientHeight;
}

  var leftOffset = scrolledX + (centerX - 600) / 2;
  var topOffset = scrolledY + (centerY - 400) / 2;

  document.getElementById("mypopup").style.top = topOffset + "px";
  document.getElementById("mypopup").style.left = leftOffset + "px";
  document.getElementById("mypopup").style.display = "block";
}



// end lightbox



