browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
        else version = "n2";
        if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";

        if (version == "n3")
{
        toc1on = new Image;
        toc1on.src = "kuvat/etusivu2.gif";
        toc2on = new Image;
        toc2on.src = "kuvat/palvelut2.gif";
        toc3on = new Image;
        toc3on.src = "kuvat/tuotteet2.gif";
        toc4on = new Image;
        toc4on.src = "kuvat/lemmikit2.gif";
        toc5on = new Image;
        toc5on.src = "kuvat/leiritoiminta2.gif";
	toc6on = new Image;
        toc6on.src = "kuvat/varauslomake2.gif";
	toc7on = new Image;
        toc7on.src = "kuvat/yhteystiedot2.gif";
	toc8on = new Image;
        toc8on.src = "kuvat/palaute2.gif";

        toc1off = new Image;
        toc1off.src = "kuvat/etusivu.gif";
        toc2off = new Image;
        toc2off.src = "kuvat/palvelut.gif";
        toc3off = new Image;
        toc3off.src = "kuvat/tuotteet.gif";
        toc4off = new Image;
        toc4off.src = "kuvat/lemmikit.gif";
        toc5off = new Image;
        toc5off.src = "kuvat/leiritoiminta.gif";
	toc6off = new Image;
        toc6off.src = "kuvat/varauslomake.gif";
	toc7off = new Image;
        toc7off.src = "kuvat/yhteystiedot.gif";
	toc8off = new Image;
        toc8off.src = "kuvat/palaute.gif";

}


function img_act(imgName) {
        if (version == "n3") {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
        }
}

function img_inact(imgName) {
        if (version == "n3") {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
        }
}

function noEntry() {

  for (i=5; i<12; i++) {
    if (document.forms[0].elements[i].value == "")
    {
      alert("Tyhjiä syöttökenttiä!");
      return false;
    }
  }
}


function popupPage2(page,w,h) {
	windowprops = "toolbar=no,width="+w+",height="+h+",directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	popup=window.open(page, "Popup", windowprops);
	popup.resizeTo(w,h);
	popup.focus();
}




