//
function popupawindow(url,w,h) {
   if ( w <= 0 ) { w =200 ; }
   if ( h <= 0 ) { h =200 ; }
   if ( url.length >= 1) {
      var name = "Yo" ;         // name of popup window
      var tbar = "no" ;         // display toolbar in popup window
      var loca = "no" ;         // display location bar in popup window
      var dirt = "no" ;         // display directory in popup window
      var stat = "no" ;         // display status bar in popup window
      var menu = "no" ;         // display menu bar in popup window
      var scrl = "yes" ;         // display scroll bar in popup window
      var resz = "no" ;         // allow user to resize popup window
      var xpos = 0   ;         // X position of the popup window
      var ypos = 0   ;         // Y position of the popup window
      var left = 0   ;         // X position of the popup window
      var top  = 0   ;         // Y position of the popup window
      var onloadpopstring ;
      onloadpopstring =  "toolbar="   + tbar ;
      onloadpopstring += ",location="    + loca ;
      onloadpopstring += ",directories=" + dirt ;
      onloadpopstring += ",status="      + stat ;
      onloadpopstring += ",menubar="     + menu ;
      onloadpopstring += ",scrollbars="  + scrl ;
      onloadpopstring += ",resizable="   + resz ;
      onloadpopstring += ",screenx="     + xpos ;
      onloadpopstring += ",screeny="     + ypos ;
      onloadpopstring += ",left="        + left ;
      onloadpopstring += ",top="         + top  ;
      onloadpopstring += ",width="       + w    ;
      onloadpopstring += ",height="      + h    ;
      remote = window.open(url,name,onloadpopstring);
   }
   return ;
}

//

window.onerror=null
        var bName = navigator.appName;
        var bVer = parseInt(navigator.appVersion);
var NS4=(bName=="Netscape" && bVer >=4)
var IE4=(bName=="Microsoft Internet Explorer" && bVer>=4)
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
if (NS4 || IE4) {

var clicked="toc";

        toc1on=new Image();
        toc1on.src = "images/back02.gif";
        toc1off = new Image();
        toc1off.src = "images/back01.gif";
        toc1off.border="0";


        toc2on=new Image();
        toc2on.src = "images/next02.gif";
        toc2off = new Image();
        toc2off.src = "images/next01.gif";
        toc2off.border="0";

}

function img_act(imgName) {
if (NS4 || IE4) {
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
}
 }

function img_inact(imgName) {
if (NS4 || IE4) {
      if ( imgName == clicked )
	{
	  
	}
     else
 	{
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
	}
}
}

function img_click(imgName) {
if (NS4 || IE4) {
      if (clicked != "toc")
	{
        imgclick = eval(clicked + "off.src");
        document [clicked].src = imgclick;
       } 
 
        clicked = imgName;   
	 imgclick = eval(imgName + "on.src");
        document [imgName].src = imgclick;
	   
}        
}
//


function flip_pix() {
	if (document.images) {
		var num_arg = arguments.length;
		if (num_arg == 0 || (num_arg % 2) != 0) return;
                for (var i=0; i<num_arg; i) {
			var j = i+1;
			var imgname = arguments[i];
			var imgsrc = arguments[j];
			document.images[imgname].src = eval(imgsrc+'.src');
			i+=2;
		}
	}
}

//