 if (document.all && document.cookie && (i=document.cookie.indexOf("cords="))>-1){
    cords=document.cookie.substring(i+7);
    if ((i=cords.indexOf(','))>-1) cords=cords.substring(0,i);
    sp=cords.split(':');
	 if (sp[0]<730) sp[0]=730;
	 if (sp[1]<530) sp[1]=530;
    if (sp.length==2){ 
		 window.resizeTo(sp[0],sp[1]); 
		 window.status='Reset to last saved position';
	 }
 } else if(typeof opener=="undefined") resizeTo(786,540);

 if ((i=prog_col.indexOf(prog))>-1) bgColor=prog_col.substring(i+4,i+11);

 appname= navigator.appName; ver = navigator.appVersion.substring(0,1);
 if ( (appname=="Netscape") && (ver>2) ) ok=1;
 if ( (appname=="Microsoft Internet Explorer") && (ver>3) ) { 
	ie4=1; ok=1; 
	w1=0;  h0=0;
	ww=-1; hh=-1;
 }


function rem2(){
	w0=document.body.offsetWidth;   h0=document.body.offsetHeight;
	try{
		window.resizeTo(w0+8,h0+100);
		w1=document.body.offsetWidth;   h1=document.body.offsetHeight;
		ww=w0-w1+8;                     hh=h0-h1+100;
		window.resizeTo(w0+ww,h0+hh);
		tt=1;
		remAsCookie();
	} catch(e){}
	lastT=-999;
}

function remAsCookie(){
	if (tt==-999) return;
	var mw=document.body.offsetWidth+ww;
	var mh=document.body.offsetHeight+hh;
	document.cookie="cords='"+mw+":"+mh+",'; expires="+exp.toGMTString()+"; path=/";
	window.status=document.cookie;
}

function rememberIt(){
	if (ie4!=1) return;
	if (tt==-999)  {
		if (lastT==-999) { setTimeout('rem2()',3500); lastT=1; }
	}
	else remAsCookie();
}


/*
function rememberIt(){
  var mh,mw,ml,mt;
  if (!document.all) return;
  if (tt==-999) {
    var w0,w1,h1,h1;
    w0=document.body.offsetWidth;   h0=document.body.offsetHeight;
    window.resizeTo(w0+8,h0+100);
    w1=document.body.offsetWidth;   h1=document.body.offsetHeight;
    ww=w0-w1+8;                     hh=h0-h1+100;
    window.resizeTo(w0+ww,h0+hh);
	 tt=1;
  }

  mw=document.body.offsetWidth+ww;
  mh=document.body.offsetHeight+hh;
  ml=(lastL=window.screenLeft)-ll;
  mt=(lastT=window.screenTop)-tt;
  document.cookie="cords='"+mw+":"+mh+",'; expires="+exp.toGMTString()+"; path=/";
//  status=document.cookie;
}
function didMoved(){
  l=window.screenLeft; t=t=window.screenTop;
  if (lastT==-999) { lastT=t; lastL=l; }
  else if (lastT!=t || lastL!=l) rememberIt();
}
// setInterval("didMoved()",5000);
*/
