function get_url (url, k0 ,v0 ,k1 ,v1 ,k2 ,v2 ,k3 ,v3 ,k4 ,v4 )
{
    if (k0 && v0) url += "?" + k0 + "=" + escape(v0);
    if (k1 && v1) url += "&" + k1 + "=" + escape(v1);
    if (k2 && v2) url += "&" + k2 + "=" + escape(v2);
    if (k3 && v3) url += "&" + k3 + "=" + escape(v3);
    if (k4 && v4) url += "&" + k4 + "=" + escape(v4);
    return url;
}

function open_function(url,width,height,options)
{
    self.msgWindow = open(url, "Window", "width=" + width + ",height=" + height
        + ",screenX=" + (screen.width-width)/2
        + ",screenY=" + (screen.height-height)/2
        + ",dependent=yes"
        + ",left=" + (screen.width-width)/2
        + ",top=" + (screen.height-height)/2
        + options
    );
    if (self.msgWindow) {
        self.msgWindow.focus();
        if (self.msgWindow.opener == null) self.msgWindow.opener = self;
    }
}


function getWindowWidth() {
        if (window.innerWidth)
            return window.innerWidth;
        else if (document.body && document.body.offsetWidth)
            return document.body.offsetWidth;
    }
    function rebuildWindow() {

        Width = getWindowWidth();
//            window.status=Width;

            if(Width<870) {


              
              document.getElementById("sponsor").style.left= "454px";
              document.getElementById("elter").style.left= "370px";
              document.getElementById("atikon").style.left= "569px";

            } else {

              document.getElementById("sponsor").style.left= "654px";
              document.getElementById("elter").style.left = "570px";
              document.getElementById("atikon").style.left = "769px";



            }
        

    }
    function checkSize() {
        rebuildWindow();
/*        if(document.body && document.body.offsetWidth)
        window.onresize = rebuildWindow;*/
    }
    window.onload=checkSize;
       window.onresize=checkSize;
