function winewXY(olink,w,h,scrl,bResbl) { return winewXYs(olink.href,olink.target,w,h,scrl,bResbl); }
function winewXYs(shref,starget,w,h,scrl,bResbl) {
if(typeof(bResbl)=="undefined") bResbl=false;
if(typeof(scrl)=="undefined") scrl="no";
lpos = (screen.width) ? (screen.width-w)/2 : 0;
tpos = (screen.height) ? (screen.height-h)/2 : 0;
sSets = "height="+h+",width="+w+",top="+tpos+",left="+lpos+",scrollbars="+scrl+ ( bResbl ? ",resizable" : "" );
win = window.open(shref,starget,sSets);
return false; 
}

function winnewXY(shref,starget,w,h,scrl,bResbl) {
if(typeof(bResbl)=="undefined") bResbl=false;
if(typeof(scrl)=="undefined") scrl="no";
lpos = (screen.width) ? (screen.width-w)/2 : 0;
tpos = (screen.height) ? (screen.height-h)/2 : 0;
sSets = "height="+h+",width="+w+",top="+tpos+",left="+lpos+",menubar=1,toolbar=1,location=1,status=1,scrollbars="+scrl+ ( bResbl ? ",resizable" : "" );
win = window.open(shref,starget,sSets);
return false; 
}

var oHelpPopWindow=null;
function newHelpwin(sNameHtm)
{
	if(oHelpPopWindow!=null)
		if(oHelpPopWindow.location!=null)
			oHelpPopWindow.close();
	oHelpPopWindow = window.open(sNameHtm,"help", "scrollbars=yes,width=550,height=500,top=30,left=60");
	//oPopWindow.location = sNameHtm;
	var sTest = oHelpPopWindow.location;
	return false;
}

var ocalcPopWin=null;
function calcPopWin(sNameHtm)
{
 if (ocalcPopWin!=null)
  if (ocalcPopWin.location!=null)
    ocalcPopWin.close();
  ocalcPopWin = window.open(sNameHtm, "commisscalc", "scrollbars=yes,width=300,height=300,top=30,left=60");
  return false;
}


