function bid(l,g){var rw=window.radopen("PigeonBid.aspx?l="+l+"&g="+g+"&h="+screen.height,"rw");var w=f_clientWidth();var h=f_clientHeight();var winWidth=900;var winHeight=800;if(winWidth>w)winWidth=w;if(winHeight>h)winHeight=h;rw.setSize(winWidth,winHeight);rw.center();}
function getRadWindow(){var oWindow=null;if(window.radWindow)
oWindow=window.radWindow;else if(window.frameElement)
if(window.frameElement.radWindow)oWindow=window.frameElement.radWindow;return oWindow;}
function closeWindow(){var oWnd=getRadWindow();if(oWnd){oWnd.close();}else{window.opener='x';window.close();}}
function f_clientWidth(){return f_filterResults(window.innerWidth?window.innerWidth:0,document.documentElement?document.documentElement.clientWidth:0,document.body?document.body.clientWidth:0);}
function f_clientHeight(){return f_filterResults(window.innerHeight?window.innerHeight:0,document.documentElement?document.documentElement.clientHeight:0,document.body?document.body.clientHeight:0);}
function f_filterResults(n_win,n_docel,n_body){var n_result=n_win?n_win:0;if(n_docel&&(!n_result||(n_result>n_docel)))
n_result=n_docel;return n_body&&(!n_result||(n_result>n_body))?n_body:n_result;}