  function new_cap_image(){
    // loads new freeCap image
    if(document.getElementById){
        // extract image name from image source (i.e. cut off ?randomness)
	thesrc = document.getElementById("cap_image").src;
	thesrc = thesrc.substring(0,thesrc.lastIndexOf(".")+4);
	// add ?(random) to prevent browser/isp caching
	document.getElementById("cap_image").src = thesrc+"?"+Math.round(Math.random()*100000);
        //alert(document.getElementById("cap_image").src)
      }else{
        alert("Sorry, cannot autoreload image\nSubmit the form and a new image will be loaded");
    }
  }

function pop_up (alert_name, alert_email, alert_word){
	alert_message=alert_name+"\n"+alert_email+"\n"+alert_word;
	alert (alert_message);
}
