function openWin( windowURL, windowName, windowFeatures )
{
return window.open( windowURL, windowName, windowFeatures ); 
} 

function openurl(url, name, width, height)
{
var lp = window.screen.width/2-width/2;
var tp = window.screen.height/2-height/2;
var newWindow = openWin(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top="+tp+",left="+lp+"");
newWindow.focus();
}

function opendlg(url, name, width, height)
{
var lp = window.screen.width/2-width/2;
var tp = window.screen.height/2-height/2;
var newWindow = openWin(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+tp+",left="+lp+"");
newWindow.focus();
}

function openmsg(subj)
{
var width = 350;
var height = 450;
var lp = window.screen.width/2-width/2;
var tp = window.screen.height/2-height/2;
var newWindow = openWin("?fis=suppmsg&subj=fff", "suppmsg", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+tp+",left="+lp+"");
newWindow.focus();
}

function openwiki(ws)
{
var width = window.screen.width*0.8;
var height = window.screen.height*0.8;
var lp = window.screen.width/2-width/2;
var tp = window.screen.height/2-height/2;
var url = '?fis=wikifis&ws='+ws;
var newWindow = openWin(url, 'wiki', "width="+width+",height="+height+",top="+tp+",left="+lp+"");
newWindow.focus();
}
                                                            
function GetCity(elm,Ind)
{ 
var oForm=elm.form;
if (oForm)
  {
  var pCityID = oForm["cityid_"+Ind]; 
  if (pCityID) opendlg("/?fis=getcity&form="+oForm.name+"&ind="+Ind+"&cityid="+pCityID.value,"getcity",400,450);
  }
}

function ClearCity(elm,Ind)
{ 
var oForm=elm.form;
if (oForm)
  {
  var pCityID = oForm["cityid_"+Ind];
  if (pCityID) pCityID.value = "";
  var pCityCH = oForm["citych_"+Ind];
  if (pCityCH) pCityCH.value = "";
  var pCity = oForm["city_"+Ind];
  if (pCity) pCity.value = "";
  }
}

function setVis(id)
{
  var pDIV = document.getElementById(id);
  if (pDIV) 
    if (pDIV.style.display == 'none') 
      pDIV.style.display = 'block'
      else
      pDIV.style.display = 'none';
}

function doJump(selObj)
{
  parent.location=selObj.options[selObj.selectedIndex].value;
}

function openrss(rss)
{
var width = 450;
var height = 450;
var lp = window.screen.width/2-width/2;
var tp = window.screen.height/2-height/2;
var newWindow = openWin("/?fis=rssadd&rss="+rss, "rssadd", "width="+width+",height="+height+",top="+tp+",left="+lp+"");
newWindow.focus();
}

function Show(id)
{
  var p = document.getElementById(id);
  if (p) p.style.display = "block";
}

function Hide(id)
{
  var p = document.getElementById(id);
  if (p) p.style.display = "none";
}

function InvVis(id)
{
  var p = document.getElementById(id);
  if (p) if (p.style.display=="none") {p.style.display = "block"} else {p.style.display = "none"};
}