
/* ---------------------------------------------------------------------- */

function changeBGcolor(newColor) {
		if(document.bgColor) {
			document.bgColor = newColor;
		    parent.leftFrame.document.bgColor = newColor;
			parent.rightFrame.document.bgColor = newColor;
			parent.topFrame.document.bgColor = newColor;
			parent.bottomFrame.document.bgColor = newColor;
		} else if(document.body.style.backgroundColor) {
			document.body.style.backgroundColor = newColor;
			parent.leftFrame.document.bgColor = newColor;
			parent.rightFrame.document.bgColor = newColor;
			parent.topFrame.document.bgColor = newColor;
			parent.bottomFrame.document.bgColor = newColor;
		}
	}
/* ---------------------------------------------------------------------- */
var newwin=null;
function winopen(theurl,thename,thetool,thestat,theresize,thescroll,theloc,thetop,theleft,theheight,thewidth) {
winTitle = thename;
fPath = theurl;
fWidth = thewidth;
fHeight = theheight;

sh = screen.height;
sw = screen.width;
if(theheight > sh) {theheight = sh;}
if(thewidth > sw) {thewidth = sw;}
if(theheight == 0) {theheight = sh;}
if(thetop == 0) {
if(theheight != sh) {
shTemp = parseInt(sh/2);
whTemp = parseInt(theheight/2);
thetop = parseInt(shTemp-whTemp);
}
}
if(thewidth == 0) {thewidth = sw;}
if(theleft == 0) {
if(thewidth != sw) {
swTemp = parseInt(sw/2);
wwTemp = parseInt(thewidth/2);
theleft = parseInt(swTemp-wwTemp);
}
}

imgH = theheight;
imgW = thewidth;
//alert(imgH+'\n' +imgW);

newwin = window.open(theurl,thename,"toolbars="+thetool+",status="+thestat+",resizable="+theresize+",scrollbars="+thescroll+",location="+theloc+",left="+theleft+",top="+thetop+",height="+theheight+",width="+thewidth+"")
//if(document.all) {newwin.resizeTo(imgW,imgH);}

}
/* ---------------------------------------------------------------------- */

function blurLinks() {
for(var i=0 ; i < document.links.length ; i++) 
document.links[i].onfocus=BlurIt; 
} 

function BlurIt() {
if (this.blur)  this.blur(); 
}

/* ------------------------------------------------------------------------------------------- */

function replacePage(leftPath,rightPath){
	/* top.bottomFrame.location.href=bottomPath; */
	top.leftFrame.location.href=leftPath;
	top.rightFrame.location.href=rightPath;
}

/* ------------------------------------------------------------------------------------------- */

