Possible Answers

  1. document.myphoto.src = "url_of_the_image";
    as in
    document.myphoto.src = "http://www.webdevelopers.com/myphoto.jpg";

    or through a relative URL as
    document.myphoto.src = "myphoto.jpg";
  2. document.contactfrom.yourname.value = "some_text";
    as in
    document.contactform.yourname.value = "Please type your name here";