

// NOTE:
// As written, this function can only be safely used once per page.
// That's because of the single page-scoped variable that's used.

numberoftimes = 0;

function onlyonce() {
	numberoftimes += 1;
	if (numberoftimes > 1) {	
		var theMessage = "Clicking once is sufficient.  Please wait while the response loads.";
        alert(theMessage);
        return false;
	} else {
	    return true;
	}

}