     function dynamicText(txt) {
       if(document.getElementById) {
         var oDesc=document.getElementById("remark");
         if (oDesc) {
           if(oDesc.innerHTML){
              oDesc.innerHTML = '<NOBR>' + txt + '</NOBR>&nbsp;';
           }
         }
       }
     }

     function goMenu(menuNr) {
         if(menu) top.frames[1].location = '../en/' + menu[menuNr].name + '.html';
       }


//--------------photos.html
     function getArg(arg) {
       argstr=location.href.substring(location.href.indexOf("?")+1) + "+";
       var nextpos,ispos;
       for(startpos=0; (nextpos=argstr.indexOf("+",startpos))!=-1; startpos=nextpos+1) {
         ispos=argstr.indexOf("=",startpos)
         if ((ispos>startpos) && (ispos<nextpos))
           if (argstr.substring(startpos,ispos)==arg)
             return argstr.substring(ispos+1,nextpos);
       }
       return "";
     }
     
     function setWinName() {
       var winChecked = document.getElementById("check")
       if (winChecked.checked == true)
         photoWinName = "";
       else
         photoWinName = "photo";
     }

//--------------about.html contact.html
     function emailMe(user,message,subj) {
       var domain = "mashedpotatoes.nl";
       var mail = user + "@" + domain;
       var subject="";
       if(subj) subject = "?subject="+subj;
       if(message) {
         document.write("<a href=\"mailto:"+mail+subject+"\">"+message+"</a>");
       }else{
         document.write("<a href=\"mailto:"+mail+subject+"\">"+mail+"</a>");
       }
     }

     function emailNow(user) {
       var domain = "mashedpotatoes.nl";
       var mail = "mailto:" + user + "@" + domain;
       document.location = mail;
     }


     function textCounter( field, countfield, maxlimit ) {
       if ( field.value.length > maxlimit )
       {
         field.value = field.value.substring( 0, maxlimit );
         msg = 'Please limit your entry to ' + maxlimit + ' characters.'
         alert(msg);
         return false;
       }
     }

     function checkFrames(w) {
        if ( w.top.document.name != 'frameset' ) {
          w.top.location.href='index.html'
        }
     }

