function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}
function processNewsletterSignup() {
	var contentNode = dojo.byId('newsletterSignupContent');
//	var loaderDIV = dojo.byId("newsletterSignupLoader");
//	loaderDIV.style.height = contentNode.offsetHeight + 'px';
//	loaderDIV.style.width = contentNode.offsetWidth + 'px';
//	contentNode.innerHTML += draw_loader_small(myHeight, myWidth);
    dojo.xhrPost({
	    url: 'do/newsletter.php?action=addUser', 
		handleAs: "json-comment-filtered",
		load: function(response){
				if (response.status == 'success') {
					contentNode.innerHTML = response.content;
				} else if (response.status == 'ae') {
					alert(response.content);
				} else if (response.status == 'nd') {
					alert(response.content);
				} else if (response.status == 'env') {
					alert(response.content);
				} else {
					alert('I\'m sorry, something happened when I processed the request. Please try again.' + "\n" + 'Error code NSL-001.');
				}
			},
       	error: 	function(error,args){
					alert('I\'m sorry, something happened when I processed the request. Please try again.' + "\n" + 'Error code NSL-001.' + "\n" + error);
				},
        form: 'newsletterAdd'
   });
}
