function popupWindow($url) {
	var winNew = window.open($url);
	if (winNew) {
		winNew.focus();
	} else {
		alert('We had trouble opening a popup window for the application form. Its possible you have a popup blocker enabled. Please disable it and try again.');
	}
}

function debug($message) {
	alert($message);
}