   // JavaScript Document

    // This is used with the Gotcha File
	function new_xs()
	{
		// loads new xs image
		if(document.getElementById)
		{
			// extract image name from image source (i.e. cut off ?randomness)
			thesrc = document.getElementById('user_profile').src;
			thesrc = thesrc.substring(0, thesrc.lastIndexOf('.') + 4);
			// add ?(random) to prevent caching
			document.getElementById('user_profile').src = thesrc + '?' + Math.round(Math.random()*100000);
		} 
		else 
		{
			alert('Sorry, cannot autoreload xs image\nSubmit the form and a new xs will be loaded');
		}
	}
