function noPostBack(sNewFormAction)
{
    document.forms[0].action = sNewFormAction;
    document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
    document.forms[0].target = '_blank';
}
    
function noPB()
{
}

function bestprice(ausg) {
    dis = window.open(ausg,"my2","toolbar=0,resizable=0,status=no,width=615,height=350,");
}

function loadimage(BildGross){
   var ausg = "image.aspx?&art=" + BildGross
   dis = window.open(ausg,"Infos","toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=840,height=640,top=100,left=100");
   }
   
function PrintPopUp(){
    var ausg = "controls/pages/print.aspx?PRINT=TRUE"
    dis = window.open(ausg,null,"toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=840,height=640,top=100,left=100");
}

function scrollToAnchor(anchorName)
{
    document.location.href="#" + anchorName;
}
   
 function printpreview(ausg) {
    dis = window.open(ausg,"KGE","toolbar=yes,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=840,height=640,top=100,left=100");
}

function hideInput()
{
  document.getElementById("tblShippingInsert").style.display = 'none';
  document.getElementById("divShippingFix").style.display = 'block';
  
}

function showInput()
{  
  document.getElementById("tblShippingInsert").style.display = 'block';
  document.getElementById("divShippingFix").style.display = 'none';   
}

function checkInput(rbCashOnDelivery)
{
    if (document.getElementById(rbCashOnDelivery) != null)
        if (document.getElementById(rbCashOnDelivery).checked)
        {
            hideInput();
        }
}

// correctly handle PNG transparency in Win IE 5.5 & 6.
function correctPNG() 
{
   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 (!window.attachEvent == 'undefined') window.attachEvent("onload", correctPNG);


/* öffnet das Garantie-Popup */
function openGuarnateePopUp(url)
{
    window.open(url,'Infos','toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=520,height=520,top=100,left=100');
}


