function randImage(max, postfix, prefix, alt) {
	// If variables are not defined then set the defaults
	postfix = (postfix == undefined || postfix == '') ? '.jpg' : postfix;
	alt = (alt == undefined || alt == '') ? 'Image' : alt;
	
	// Clean "unacceptable" characters from the alt tag
	alt = alt.replace(/&/,'&amp;');
	alt = alt.replace(/"/,'&quot;');
	alt = alt.replace(/</,'&lt;');
	alt = alt.replace(/>/,'&gt;');
	
	// Generate a random image number
	var img = Math.ceil(Math.random()*max);
	
	// Output the image
	document.write('<img src="'+prefix+img+postfix+'" title="'+alt+'" alt="'+alt+'" />');
}

// Used on Macabi Form to show or hide field onclick
function ShowMe(d) {
		if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
		else { document.getElementById(d).style.display = "none"; }
}