function checkUserID(x){
	if(x){
		if(x == 'skipped'){
			return true;
		} else {
			<!--// send user id to ajax php page to see if it's in the database //-->
			// Create the new script element and assign the a src attribute
			var newScriptCheckID = new Element('script', { 'src': 'http://apps.exploratorium.edu/nsdl/research/checkUserID.php?userID='+x});
			
			// Put the new script into the page
			document.getElementsByTagName('head').item(0).appendChild(newScriptCheckID);
		  }
	}
}
function displayForm(){
	var JSESSIONID = readCookie('JSESSIONID');
	window.location = "http://apps.exploratorium.edu/nsdl/research/form.php?JSESSIONID="+JSESSIONID;
}
function checkIDCallback(response){
	var num = response.num;
	if(num != 1){
		<!--// person id isn't found - this is weird but erase the cookie and display the form //-->
		eraseCookie('ELRCPERSONID');
		var takeSurvey = confirm('Would you like to help improve this resource with a short survey?');
		if(takeSurvey == true){
			displayForm();
		} else {
			document.cookie ="ELRCPERSONID=skipped;expires=" + expires_date.toGMTString()  +";path=/;domain=.exploratorium.edu"; 	
		}
	}
}