// JavaScript Document
function WsT (o)
	{ window.status=o.title;}

function WsR ()
	{ window.status=wndwSts;}
	
function RszC3b()
	{ if (document.body.clientHeight > 550) document.getElementById('tdIfHldr').height=document.body.clientHeight-200;else document.getElementById('tdIfHldr').height=360;}

function CntrWndw (chckSW, IE)
	{ if (IE) { var bh=document.documentElement.clientHeight;var bw=document.documentElement.clientWidth;} else { var bh=window.innerHeight;var bw=window.innerWidth;} var ah=screen.availHeight;var aw=screen.availWidth;if ((bh < 550 || bw < 940) || chckSW) {var w=1000;var h=730;window.moveTo ((aw-w)/2, (ah-h)/2/2);window.resizeTo (w, h);}}
	
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments;document.MM_returnValue=false;
  for (i=0;i<(args.length-1);i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function LctnTm ()
	{var lctnTm=new Date(lctnTmMis*1000); var ds=new Array ('sun','mon','tue','wed','thu','fri','sat');document.getElementById('lctnTm').innerHTML=ds[lctnTm.getDay()]+'@'+(lctnTm.getHours() < 13 ? (lctnTm.getHours() == 0 ? '12' :lctnTm.getHours()) : lctnTm.getHours()-12)+':'+(lctnTm.getMinutes()<10?'0'+lctnTm.getMinutes():lctnTm.getMinutes())+(lctnTm.getHours()<12?'am':'pm');lctnTmMis += 60-lctnTm.getSeconds();setTimeout (LctnTm, (60-lctnTm.getSeconds())*1000);}
	
function Rthght (id)
{eval('var rTh=rThght'+id);var rT="";var d, h, m;if (rTh > 0){d=rTh / 86400;if (d >= 1){d=Math.floor (d);rT=d+"d:";rTh -= d*86400;}h=rTh / 3600;rT += (h >= 1 ? Math.floor(h) + "h:" : "");rTh -= (h >= 1 ? Math.floor(h) * 3600 : 0);m=rTh / 60;rT += (m >=1 ? Math.floor(m) + "m:" : "");rTh -= (m >= 1 ? Math.floor(m) * 60 : 0);rT += rTh + "s";}	eval("document.getElementById('reThought"+id+"').innerHTML=rT");eval('rThght'+id+'++'); setTimeout (Rthght, 1000, id);}
	
function PdswtlTR (o,c,fc)
	{o.style.backgroundColor=c;o.style.color=fc;}
	
var fldFcs;
function ClkFld (f,t)
	{ if (f.value == t) f.value = '';return true;}
function OtFld (f,t)
	{ if (f.value == '' && fldFcs!=f) f.value = t;return true;}
function BlrFld (f,t)
	{ if (f.value == '') f.value = t;return true;}
	
function VldtFld (frm,fld,v)
	{if (eval ('document.forms[frm].'+fld+'.value') && eval('document.forms[frm].'+fld+'.value != v')){document.getElementById(fld).style.borderColor="#666666";return true;}else document.getElementById(fld).style.borderColor="red";return false;}
function VldtPsswrd (frm,fld1,fld2)
	{if (eval ('document.forms[frm].'+fld1+'.value') == eval('document.forms[frm].'+fld2+'.value')){document.getElementById(fld1).style.borderColor="#666666";document.getElementById(fld2).style.borderColor="#666666";return true;}else {document.getElementById(fld1).style.borderColor="red";document.getElementById(fld2).style.borderColor="red";}return false;}