function init728()
{
if (typeof frames['OHub'] != 'undefined')
	frames['OHub'].location.href = 'http://optimizedby.rmxads.com/st?ad_type=iframe&ad_size=728x90&section=200731'; return false
}

function frmtNum(num, dflt, min, max, curr, str)
{
if (dflt == '')
return dflt
else
 num = num.toString().replace(/$|,/,'');
 if(isNaN(num) || num < min || num > max )
 num = dflt;
 sign = (num == (num = Math.abs(num)));
 num = Math.floor(num*100+0.50000000001);
 cents = num%100;
 num = Math.floor(num/100).toString();
 if(cents<10)
 cents = "0" + cents;
 if (curr == 1)
 return (((sign)?'':'-') + num + '.' + cents)
 else
 return (((sign)?'':'-') + num);
;
}

function pgr(pg)
{
document.forms[0].pg.value=pg;
document.forms[0].submit();
}

function opendialog(address, w, h)
{
var winl = (screen.width) * 0.8;
var wint = (screen.height) / 3;
winprops = 'dialogheight:'+h+'px; dialogwidth:'+w+'px; dialogtop:'+wint+'px; dialogleft:'+winl+'px;help:no;status:no;resizable:yes';
win = window.showModelessDialog(address, '',winprops);
}