var lastSearchPannel;
function MyOpenWindow(sFileName,wwidth,wheight,winname,sScrollbars,iTop,resizable1)
{ var topvalue = 0; if(sScrollbars=="" || sScrollbars=="yes" || sScrollbars=="1" || arguments.length<5)
 sScrollbars="yes"; else sScrollbars = "no"; if(winname == "") winname = "defaultwindowname";
 if (resizable1==1) {resizable2="yes";} else {resizable2="no";}
 ww = screen.width;hh = screen.height;if (wwidth==""){wwidth=ww;wheight=hh;}
if(wwidth > ww) {xx=0;} else {xx=Math.round((ww-wwidth)/2)-5;};if(wheight > hh) {yy=0;} else {yy=Math.round((hh-wheight)/2);};
if(iTop == "" || arguments.length < 6)  topvalue = yy;  else  topvalue = iTop;
options ='resizable='+resizable2+',location=no, toolbar=no, status=no, left='+xx+',top='+topvalue+', menubar=no, height='+wheight+', width='+wwidth+', scrollbars = '+sScrollbars+'';
file =sFileName;  window.open(file,winname,options);}
function weather(sFileName) {ww = screen.width;hh = screen.height;wwidth = 790; wheight = 504;
 if(wwidth > ww) {xx=0;} else {xx=Math.round((ww-wwidth)/2)-5;};
if(wheight > hh) {yy=0;} else {yy=Math.round((hh-wheight)/2);};
 options ='location=no, toolbar=no, status=no, left='+xx+', top=40, menubar=no,height='+wheight+', width='+wwidth+', scrollbars = yes';
file =sFileName;window.open(file,'weather',options);}
