function emailAddress(username,label){  document.write("<a href=mail" + "to:" + username + "@" + "retygallery.com class=txtlink>" + label  + "</a>");}var sizearg = "?printsize_id=";var sizeval = 0;var finisharg = "&finish=";var finishval = 0;var photoarg = "&photo_id=";function validateAndSubmit(theform,photoid,script) {  for (i=0; i < theform.length; i++)  {     // run whole form      obj = theform.elements[i];           // ref particular element//      nam3 = obj.name.substring (0, 3); // 3-char name (maybe)//      nam4 = obj.name.substring (3, 4); // where to store it      if (obj.type == "select-one") {   // dropdowns      pos = obj.selectedIndex;        // which option selected      val = obj.options[pos].value;   // get selection      finishval = val;      }    else      if (obj.type == "radio") {     // checkboxes      if (obj.checked) {              // just the selected ones      val = obj.value;        sizeval = val;      }      }}  // strn = script + sizearg + sizeval + finisharg + finishval + photoarg + photoid;  strn = script + sizearg + sizeval + finisharg + finishval;  optstr = "width=700,height=700,menubar=no,toolbar=no,location=no,scrollbars=yes,resizable=yes,dependent=yes"; window.open(strn,'paypalWindow',optstr);  paypalWindow.focus();  return true;      }var itemval = 0;function validateMenu(theform,script,page) {  for (i=0; i < theform.length; i++)  {     // run whole form    obj = theform.elements[i];           // ref particular element    if (obj.type == "select-one") {   // dropdowns      pos = obj.selectedIndex;        // which option selected      val = obj.options[pos].value;   // get selection      itemval = val;    }  }  if (page){    strn = script + itemval + "/1";  } else {    strn = script + itemval;  }  window.location.href = strn;  return true;}function popupDetail(windowref,windowname,width,height) {    optstr = "width=" + width + ",height=" + height + ",menubar=no,toolbar=no,location=no,scrollbars=no,resizable=yes,dependent=yes";  window.open(windowref,windowname,optstr);  windowname.focus();}