<!-- Begin javascript 
//------
var locIbMit = 0;
var locIbrsu ;
var locIbses ;
var jan = new Object();
janflg = false;

function SetMit(mit,rsu,ses)
{	//IBMIT.Content
	if (mit == 0) return;
	var today = new Date();
	mls = today.getTime();
	mls = (mls - mls % 1000) / 1000;
	locIbTim = mit - mls;
	locIbrsu = rsu;
	locIbses = ses;
}

function GetMit()
{	var today = new Date();
	mls = today.getTime();
	mls = (mls - mls % 1000) / 1000;
	mls = mls + locIbTim;
	return mls;
}
function txtMnuOver(idm)
{	idm.style.color = "yellow";
	return "true";
}
function txtMnuOut(idm)
{	idm.style.color = "#FFFFFF";
	return "true";
}
function runPage(pag,tit,uid,sid,oth)
{ sit = pag;
  if (sit == "") sit = "0";
  //sit = DocBase.content+'cgi-bin/ibblsite.pl?id='+sit+','+GetMit()+','+uid+','+sid+'&t='+tit+oth;
  sit = '/cgi-bin/'+ApplName+'.pl?id='+sit+','+GetMit()+','+uid+','+sid+'&t='+tit+oth;
  return sit;
}

function runForm(pag,tit,uid,sid,oth)
{ sit = pag;
  if (sit == "") sit = "0";
  //sit = DocBase.content+'cgi-bin/ibblsite.pl?id='+sit+','+GetMit()+','+uid+','+sid+'&t='+tit+oth;
  sit = '/cgi-bin/'+ApplName+'.pl?id='+sit+','+GetMit()+','+uid+','+sid+'&t='+tit+oth;
//  sit = 'cgi-bin/runpage.pl?id='+sit+','+uid+','+sid+','+GetMit()+'&t='+tit;
  return sit;
}
function goIbbl(loc,v,tit)
{ sit = loc;
  if (sit == "") sit = "empty.html";
  wdw = v;
  if (wdw == "") wdw = "_onLine";
  //if (jan.janflg) janflg = !jan.closed;
  if (!janflg || jan.closed) 
  { //ops = "toolbar=no,location=no,directories=no,resizable=yes,height=493,width=756,";
    ops = "resizable=yes,height=493,width=756,";
    ops = ops+"left=222,top=170,dependent=yes";
    ops = ops + ",scrollbars=yes,titlebar=no";
    jan = open(sit,wdw,ops);
	janflg = true;
  }
  jan.focus();
}

function closeJan()
{ if (janflg) jan.close();
  janflag = false;
}

function posIbWindow()
{ 	//wl = 170; wt = 100; ww = 600; wh = 400;
    if ((screen.width > 800) && (screen.height > 600))
    	p = p + "left=170,top=170,height=500,width=810";
	else
  		p = "left=170,top=100,height=400,width=600";
	return p;
}

function posWindow(tp,wh,ww)
{ 	if (ww == 0) ww = 600; 
    //if ((screen.width > 800) && (screen.height > 600)) ww = 700;
	if (wh == 0) wh = 3*ww/4;
	if (tp == 0)
	{	wl = (screen.width - ww) / 2;
		wt = (screen.height - wh) / 2;
	}
	else 
	{	if (tp < 0)
		{	wl = 1;
			wt = -tp;
		}
		else
		{	wl = screen.width - ww - 11;
			wt = tp;
		}
	}
	p = 'left='+wl+',top='+wt+',height='+wh+',width='+ww;
	return p;
}

function openWin(tp,wdw,pag,tit,sid,uid,wh,wl,modo,oth)
{ if ((wdw == '') || (wdw == '_onLine')) return;
  if (modo != 0) 
	sit = runPage(pag,tit,sid,uid,oth);
  else
  	sit = pag;
  //try { nm = jan.name; } catch(docer) {janflg = false;}
  //if (jan.janflg) janflg = !jan.closed;
  //if (!janflg || jan.closed) 
  ops = "status=yes,toolbar=not,location=not,directories=not,dependent=yes,titlebar=not";
  if ((wh != 0) && (wl != 0))
  	ops = ops + ',scrollbars=not,resizable=yes';
  else
  	ops = ops + ',scrollbars=yes,resizable=yes';
  ops = ops + ","+ posWindow(tp,wh,wl);
  return  open(sit,wdw,ops);
}

function goToPage(v,pag,tit,sid,uid,wh,wl)
{ sit = runPage(pag,tit,sid,uid);
  goToWin(v,sit,tit,sid,uid,wh,wl);
}
 
function goToWin(v,pag,tit,sid,uid,wh,wl)
{ wdw = v;
  if (wdw == "") wdw = "_ibOnLine";
  try { nm = jan.name; } catch(docer) {janflg = false;}
  //if (jan.janflg) janflg = !jan.closed;
  if (!janflg || jan.closed) 
  { ops = "toolbar=no,location=no,directories=no,resizable=yes,dependent=yes,scrollbars=yes,titlebar=no";
  	ops = ops + ","+ posWindow(0,wh,wl);
    jan = open(sit,wdw,ops);
	janflg = true;
  }
  jan.focus();
}

/*
function launchHtmlf(frm,pag,sid,uid)
{ parent.frames[frm].location = DocBase.content+'cgi-bin/runpage.pl?fch='+pag+'id='+uid+','+sid+','+IBMIT.Content;
}
function launchHtmlw(pag,sid,uid)
{  document.location = DocBase.content+'cgi-bin/runpage.pl?fch='+pag+'&id='+uid+','+sid+','+IBMIT.Content;
}
function launchHtmld(doc,pag,sid,uid)
{  doc.location = DocBase.content+'cgi-bin/runpage.pl?fch='+pag+'&id='+uid+','+sid+','+IBMIT.Content;
}
*/
//-->
