
        function popup(url, width, height, name)
        {
                   myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=no,locationbar=no,scrollbars=yes,dependent=yes' );
        }
         function popupmenu(url, width, height, name)
        {
                   myCMSFenster = window.open(url,name,'width=' + width + ',height=' + height + ',status=yes,resizable=yes,menubar=yes,toolbar=yes,locationbar=no,scrollbars=yes,dependent=yes' );
        }

        if(top.frames.length > 0)
           top.location.href=self.location;

        function conf()
        {
                check = confirm("Wollen Sie das wirklich?");
                return check;
        }

        function conf_exp2nor()
        {
                check = confirm("Beim Wechsel des Modus gehen Änderungen verloren!");
                return check;
        }

        function shopuser_toggle_delivery_info()
        {
                if(document.USERINFO.delivery_address.checked == true)
                {
                        document.USERINFO.d_company.disabled = false;
                        document.USERINFO.d_department.disabled = false;
                        document.USERINFO.d_partner.disabled = false;
                        document.USERINFO.d_street.disabled = false;
                        document.USERINFO.d_zip.disabled = false;
                        document.USERINFO.d_city.disabled = false;
                        document.USERINFO.d_tel.disabled = false;
                        document.USERINFO.d_telsms.disabled = false;
                        document.USERINFO.d_fax.disabled = false;
                        document.USERINFO.d_email.disabled = false;
                        document.USERINFO.d_www.disabled = false;
                }
                else
                {
                        document.USERINFO.d_company.disabled = true;
                        document.USERINFO.d_department.disabled = true;
                        document.USERINFO.d_partner.disabled = true;
                        document.USERINFO.d_street.disabled = true;
                        document.USERINFO.d_zip.disabled = true;
                        document.USERINFO.d_city.disabled = true;
                        document.USERINFO.d_tel.disabled = true;
                        document.USERINFO.d_telsms.disabled = true;
                        document.USERINFO.d_fax.disabled = true;
                        document.USERINFO.d_email.disabled = true;
                        document.USERINFO.d_www.disabled = true;
                }
                return 0;
        }


        userAgent = navigator.userAgent.toLowerCase();
        n4 = document.layers;
        ie = (document.all && userAgent.indexOf("mac")<0);
        w3c = document.documentElement;
        dhtml = ((n4 || ie || w3c) &&  userAgent.indexOf("aol")<0);

    function popupseiteempfehlen(url)
        {
                myCMSFenster = window.open(url,'Empfehlung','width=347,height=580,status=no,resizable=no,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
        }
        function popupempfehlung(url)
        {
                myCMSFenster = window.open(url,'Empfehlungsnotiz','top=0,left=0,width=347,height=400,status=no,resizable=no,menubar=no,toolbar=no,locationbar=no,scrollbars=no,dependent=no' );
        }
        function scrollit(xoffset,yoffset)
        {
                scrollTo(xoffset,yoffset);
        }
        function markArea(left,top,width,height,xoffset,yoffset,win_width,win_height)
        {
                        if(xoffset || yoffset || win_width || win_height)
                        {
                        //alert('scrollBy:'+xoffset+'x'+yoffset);
                        window.moveTo(0,0);
                        window.resizeTo(win_width,win_height);
                        scrollit(0,0);
                        }

                        if(n4)
                        {
                                document.layers['highlight'].left = left;
                                document.layers['highlight'].top = top;
                                document.layers['highlight'].width = width;
                                document.layers['highlight'].height = height;
                                document.layers['highlight'].visibility = 'show';
                        } else if (ie)
                        {
                                document.all['highlight'].style.left = left;
                                document.all['highlight'].style.top = top;
                                document.all['highlight'].style.width = width;
                                document.all['highlight'].style.height = height;
                                document.all['highlight'].style.visibility = 'visible';
                        } else if(w3c)
                        {
                                document.getElementById('highlight').style.left = left;
                                document.getElementById('highlight').style.top = top;
                                document.getElementById('highlight').style.width = width;
                                document.getElementById('highlight').style.height = height;
                                document.getElementById('highlight').style.visibility = 'visible';
                        }
        }
        function showselect()
        {
                userAgent = navigator.userAgent.toLowerCase();
                n4 = document.layers;
                ie = (document.all && userAgent.indexOf("mac")<0);
                w3c = document.documentElement;
                dhtml = ((n4 || ie || w3c) &&  userAgent.indexOf("aol")<0);
                //alert('ie:'+ie+' n4:'+n4+' w3c: '+w3c);
            if(ie)
                {
                    op_width=document.body.clientWidth;
                        op_height=document.body.clientHeight;
                    op_yoffset=document.body.scrollTop;
                        op_xoffset=document.body.scrollLeft;
                } else if(n4)
                {
                        op_width=window.innerWidth;
                    op_height=window.innerHeight;
                    op_yoffset=window.pageYOffset;
                        op_xoffset=window.pageXOffset;
                }

                if (document.selection.type!="None")
                {
                        var sel = document.selection;
                        var rng = sel.createRange();
                        var itm = rng.htmlText;
                        //alert((op_width)+"--"+(rng.boundingLeft-4)+","+(rng.boundingTop-4)+","+(rng.boundingWidth+7)+","+(rng.boundingHeight+7));
                        markArea(rng.boundingLeft-4,rng.boundingTop-4,rng.boundingWidth+7,rng.boundingHeight+7);
                        //rng.pasteHTML("<font color=\"#ff0000\"><b>"+itm+"</b></font>");
                }
        }

        var ns6 = (document.getElementById && !document.all) ? true : false;
        if(ns6)
                document.write('<link rel="stylesheet" href="hammer_ie.css">')

        function conf_text(text)
        {
                confirm(text);
        }

        function javaalert(text)
        {
                alert(text);
        }

        function goback()
        {
                history.back();
        }

        function send_form()
        {
                document.forms[0].submit();
        }

//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?');
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs)
{
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret =
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();

    switch (currArg){
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace":
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);  }