
function ButtonChange(name,namesrc){document.images[name].src = namesrc;}
var Opened=false;

var Opened=false;

function OpenWindow(PageSrc,Width,Height)
{
Features="top=50,left=100,width="+Width+",height="+Height+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes";
if ((!Opened) || (NewWin.closed))
{
	Opened=true;
	NewWin=window.open(PageSrc,"NewWindow",Features);
	NewWin.focus();
}
else
{
	if ((Opened) || (!NewWin.closed))
	{
		NewWin.location=PageSrc;
		NewWin.focus();
	}
}
}

function cc (el, overFlag, num)
{
//		el = el.parentNode;
	switch (num)
	{
		case 1:
		el = el.childNodes[0];
		break;
	}
	if (overFlag && el.className.indexOf("-over") == -1)
	{
		el.className += '-over';
	}
	else if (!overFlag && el.className.indexOf("-over") != -1)
	{
		re = /-over$/;
		el.className = el.className.replace(re, "");
	}
}

//open window
var Opened = false;
function ow(PageSrc,Width,Height)
{
Features="top=50,left=100,width="+Width+",height="+Height+",toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes,resizable=yes";
if ((!Opened) || (NewWin.closed))
{
	Opened = true;
	NewWin = window.open(PageSrc,"NewWindow",Features);
	NewWin.focus();
	var w = (window.document.body.offsetWidth)?window.document.body.offsetWidth - 4:window.document.innerWidth;
	var h = (window.document.body.offsetHeight)?window.document.body.offsetHeight - 4:window.document.innerHeight;
	if ((w != Width) || (h != Height)) {NewWin.resizeTo(Width + 10, Height + 29);}
}
else
{
	if ((Opened) || (!NewWin.closed))
	{
		NewWin.location=PageSrc;
		NewWin.focus();
	}
}
}
