<!--
function cancelContribution(path) {
	if (confirm('If you cancel now, all of your contribution data will be lost. There is no undoing this action.\n\nAre you sure you wish to proceed?')) {
		window.location.replace('includes/processContribution?process-as=cancel');
	} else {
		window.location.replace(path);
	}
}

//step on thru the investor response wizards
function goForwardRegForm() {	
	var newStep = document.regForm.step.value;
	newStep++;
	document.regForm.step.value = newStep;
	document.regForm.submit();
}

function cancelRegForm() {
	if (confirm('Are you sure you would like to cancel this process?\n\nYour registration will NOT be complete.')) {
		document.regForm.step.value = "cancel";
		document.regForm.submit();	
  	} 
}

var IE=(navigator.appName=="Microsoft Internet Explorer");
var NS=(navigator.appName=="Netscape");
bVer = (IE) ? (parseFloat( navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE ")+5) )) : (parseFloat(navigator.appVersion));
flashenabled=false;


popped = null;


function popThis(_loc,width,height,parameters) {
		maxWidth=screen.availWidth;
		maxHeight=screen.availHeight;
		
		if ( (popped!=null) && !(popped.closed) ){
		      popped.close();
		}

		if (width == ""){
			width = 640;
		}
		if (height == ""){
			height = 480;
		}
		_top	= 50;
		_left	= 50;
		var _params = "width="+width+",height="+height+",toolbar=0,scrollbars=0,resizable=0,";
		if (IE) _params += ",top=" + _top + ",left=" + _left;
		else if (NS) _params += ",alwaysRaised=yes,screenX=" + _left + ",screenY=" + _top;
		popped=window.open(_loc,"popped",_params);

}

function nospamemail(name) {
	var domain = "jazzandheritage.org";
	document.write('<a href="mailto:' + name + '@' + domain + '" mce_href="mailto:' + name + '@' + domain + '" alt="Send an email to ' + name + '@' + domain + '" title="Send an email to ' + name + '@' + domain + '">');
	document.write(name + '@' + domain + '</a>');
}


var request = new XMLHttpRequest();
var async = false;

function buildXHR() {
	// Non-Windows XMLHttpRequest.
	if (window.XMLHttpRequest) {
		try {
			request = new XMLHttpRequest();
			async = true;
		} catch (e) {
			alert('Cannot create XMLHttpRequest:\n' + e);
			request = false;
		}
	// Windows XMLHttpRequest.
	} else if (window.ActiveXObject) {
		try {
			request = new ActiveXObject('Msxml2.XMLHTTP');
			async = false;
		} catch (e) {
			try {
				request = new ActiveXObject('Microsoft.XMLHTTP');
				async = false;
			} catch (e) {
				alert('Cannot create XMLHttpRequest:\n' + e);
				request = false;
			}
		}
	}
}

function getPrivilege() {
	// Request UniversalBrowserRead Privilege.
	try {
   		if (window.netscape) {
   			netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');	
   		}	
	} catch (e) {
//		alert('ERROR:\n' + e);
	}
}

function setSessionVar(varName,sessValue) {
	
	var xmlDoc = '';

	if (sessValue != '') {
	
		buildXHR();
		getPrivilege();
	
		request.onreadystatechange = function () {
			if (request.readyState == 4) {
				if (request.status == 200) {
					xmlDoc = request.responseText;
					if (typeof(xmlDoc) != 'undefined') {
					}
				} else {
					alert('file not found:' + request.status);
					return;
				}	
			}
		} 
		request.open("GET","/includes/set_session_var.php?varName="+varName+"&sessVal="+sessValue,false);
		request.send(null);
	}	
}
// -->