function imgchange(name,img)
{
    document.images[name].src=img;
}

var my_win=0;

function new_win(link1,wh,he,xpos,ypos,win_name,status,toolbar,resize,menubar,scrollbars)
{
    if(!link1) link1='';
    if(!win_name) win_name='homewin';
    if(!xpos) xpos=0;
    if(!ypos) ypos=0;
    if(!wh) wh=290;
    if(!he) he=590;
    if(!status) status='no';
    if(!toolbar) toolbar='no';
    if(!resize) resize='no';
    if(!menubar) menubar='no';
    if(!scrollbars) scrollbars='no';
    if (my_win) {
        if(!my_win.closed) {
            my_win.close();
        }
    }
    my_win=window.open(link1, win_name,"scrollbars="+scrollbars+", status="+status+", toolbar="+toolbar+", resizable="+resize+",width="+wh+",height="+he+",screenx="+xpos+",screeny="+ypos+", left="+xpos+", top="+ypos);
}

isopen=false;

function winOpen(url,windowname,breite,hoehe,scroll,resize,tool,status,menu,location)
{ if( (isopen) && (!popUp.closed) ){ winClose(popUp); }
    popUp = window.open(url,windowname,"width="+breite+",height="+hoehe+",screenX=40,screenY=20,scrollbars="+scroll+",resizable="+resize+",toolbar="+tool+",status="+status+",menubar="+menu+",location="+location+"");
    if(popUp && popUp.focus)
    {
            popUp.focus();
    }
  isopen=true;
}

function alphaImages() {
        var els = document.getElementsByTagName("IMG");
        var s, w, h;
        for (var i=0; i<els.length; i++) {
                s = els[i].src;
                if (s.toLowerCase().indexOf(".png") != -1) {
                        els[i].src = "http://www.mediamarkt.hu/index/p.gif";
                        els[i].style.filter += "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + s + "', sizingMethod=image);";
                }
        }
}

if (navigator.userAgent.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Windows") != -1)
        window.attachEvent("onload", alphaImages);

