function sendMail() {
    if (document.forms[0].name.value == "") {
       alert("Namnet måste anges!");
       return false;
    }
    if (document.forms[0].message.value == "") {
       alert("Skriv in även ditt meddelande!");
       return false;
    }
    if (document.forms[0].address.value == "") {
       document.forms[0].address.value = "Du har glömt e-mail adressen!";
       return false;
    }
    // Construct a mailto: URL with all the details:
       document.forms[0].action = "mailto:info@karpenilsson.com"
       document.forms[0].name.value +
       "?message="+
       document.forms[0].address.value;
    return true;
  }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features).focus();
}
   //  sIMPLE sLIDE sHOW with Description sCRIPT by
   //  Chetan M Soni(csoni@email.com), 8/1999.
   //
   //  NOTICE: To my knowledge this script works with
   //  Netscape 3.0+ and Internet Explorer 4.0+.  By 
   //  using this script you agree that I am not     
   //  responsible for any type of damage it causes. 
   //  To use this script freely, you must leave this
   //  comment intact.
   //
   //  If you need help using the script, email me at 
   //  csoni@email.com, and I'll be happy to help.

   //  Browser checker   
   
   Browser_Name = navigator.appName;
   Browser_Ver  = parseInt(navigator.appVersion);
   if((Browser_Name == "Netscape" && Browser_Ver >= 3) || (Browser_Name == "Microsoft Internet Explorer" && Browser_Ver >= 4)) Browser_Gen = ">=3rd";
   else Browser_Gen = "<3rd";

   if (Browser_Gen == '>=3rd') {
   

   num_of_slides = 5;    // Declare the number of slides in your show
   slide_num = 1;        // Which slide loads ups first

   // Description of each slide
   desc1 = "First Slide - the number one, with a RED Background";
   desc2 = "Second Slide - the number two, with a ORANGE Background";
   desc3 = "Third Slide - the number three, with a GREEN Background";
   desc4 = "Fourth Slide - the number four, with a BLUE Background";
   desc5 = "Fifth Slide - the number five, with a PURPLE Background";
   }

   //  These functions alter the slide_num accordingly
   function firstslide(){
     slide_num = 1;
     changeslide();
   }
   function prevslide(){
     slide_num = slide_num - 1;
     if(slide_num < 1){
       slide_num = num_of_slides;
     }
     changeslide();
   }
   function nextslide(){
     slide_num = slide_num + 1;
     if(slide_num > num_of_slides){
       slide_num = 1
     }
     changeslide();
   }
   function lastslide(){
     slide_num = 5;
     changeslide();
   }


   //  This function changes the slide and the description box according to the slide_num
   function changeslide(){        

     //  Changes the slide
     eval('document.picbox.src = "pic' + slide_num + '.jpg"');

     //  Changes the description box
     eval('document.descform.descbox.value = "Slide ' + slide_num + ': ' + eval('desc' + slide_num) + '"');
   }
   // end hiding contents