var a = 435;
//var v = '"';
var nav = true
function entra() {
  whos=document.all.userid.value+document.all.password.value
  switch (whos) {
              case "1c":
                location.replace("htm/slidingwar.htm?c");
                break;
              case "2n":
                location.replace("htm/slidingwar.htm?n");
                break;
              case "3s":
                location.replace("htm/slidingwar.htm?s");
                break;
              case "4t":
                location.replace("htm/slidingwar.htm?t");
                break;
              case "5r":
                location.replace("htm/slidingwar.htm?r");
                break;
              case "6a":
                location.replace("htm/slidingwar.htm?a");
                break;
  }
}
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
   if (navigator.appVersion.toLowerCase().indexOf("msie")==-1) {        //NOT IE
         document.getElementById("id").innerText="Prego usare IE6+ per accedere a GiasTech 2007\nPlease use IE6+ to access GiasTech 2007";
         document.getElementById("pw").style.display="none";
         document.getElementById("userid").style.display="none";
         document.getElementById("password").style.display="none";
         document.getElementById("Submit1").style.display="none";
   }
}
//window.attachEvent("onload", correctPNG);

