// JavaScript Document
function newCaptcha() {
	// loads new freeCap image
	if(document.getElementById) {
			// extract image name from image source (i.e. cut off ?randomness)
		var theImage = document.getElementById("nd_antispam_captcha_image");
		var parts = theImage.src.split("&");
			// add ?(random) to prevent browser/isp caching
			// parts[0] should be id=page_id
			// parts[1] should be L=sys_language_uid
		theImage.src = parts[0] + "?set=" + Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot autoreload new image\nSubmit the form and a new image will be loaded");
	}
}