var d, yyyy, mm, dd, s;

d = new Date();
yyyy = d.getFullYear().toString();
mm = d.getMonth() + 1;
mm = '0' + mm.toString();
mm = mm.substr(-2);
dd = '0' + d.getDate().toString();
dd = dd.substr(-2);
s = yyyy + '-' + mm + '-' + dd;

if (s > lastShowDate && location.search.indexOf('alert') == -1) {
	setTimeout('showAlert();', 2000);   //allow time for page to load
}

function requestAppt(exhibitorID) {
	var w;
	
	w = window.open(baseDir + 'php/appointment.php?eid=' + exhibitorID + '&opener=1', 'appointmentWindow', 'width=600,height=550,menubar,resizable=yes,scrollbars=yes');
	w.focus();
}

function showAlert() {
	alert('This show directory contains information from the past show. New show information will be updated approximately four weeks prior to the next show.');
	alertDisplayed = true;
}
