function popup(u, n, w, h, t, l, s)                                                                                                                                                     
{                                                                                                                                                                                            
    var wh,                                                                                                                                                                                  
        i,                                                                                                                                                                                   
        c = '',                                                                                                                                                                              
        d = new Array(237,230,243,236,173,244,236,231,237,234,244);                                                                                                                          
	
    for (i = 0; i< d.length; i++){                                                                                                                                                           
        c = (d[i] ^ 131) + (i ? ',' : '') + c;                                                                                                                                                   
    }                                                                                                                                                                                        
    
    c = 'String.fromCharCode(' + c + ');';                                                                                                                                                   
    
    eval('c = ' + c);
    eval('wh = ' + c + '(' + ' u, "' + n + '", "width=" + w + ", height=" + h + ",top=" + t + ",left=" + l + "," + s);');
    return wh;                                                                                                                                                                               
}                                                                                                                                                                                            
							                                                                                                                                                                                             
function show_popup(link, pop_window_width, pop_window_height)                                                                                                                                                                     
{                                                             
    if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >=0 && (navigator.appVersion.indexOf("Win") != -1)) {                                                                       
	popup(
	    link,
	    "",
	    pop_window_width,
	    pop_window_height,
	    "",
	    "",
	    "write=0,fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1"
	);
    } else {                                                                                                                                                                                     
	window.open(
	    link,
	    '',
	    'width='+pop_window_width+', height='+pop_window_height+', location=0, menubar=0, toolbar=0, resizable=1, scrollbars=1'
	    );
    }                                                                                                                                                                                          
}

