/*******************************************************************************/

function mOvr(src,clrOver)
{
	if (!src.contains(event.fromElement))
	{
		src.style.cursor = 'hand';
		src.bgColor=clrOver;
	}
}
	
/*******************************************************************************/

function mOut(src,clrIn)
{
	if (!src.contains(event.toElement))
	{
		src.style.cursor = 'default';
		src.bgColor=clrIn;
	}
}

/*******************************************************************************/

function MM_openBrWindow(theURL,winName,features)
{
	window.open(theURL,winName,features);
	
}

/*******************************************************************************/

function focusOpener()
{
	window.self.close();
	window.opener.focus();	
}

/*******************************************************************************/

function OpenWindow(theURL,winName,myWidth, myHeight)
{
	var myLeft = (screen.width-myWidth)/2;
	var myTop = (screen.height-myHeight)/2;
	features = "directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no";
	features+=",left="+myLeft+",top="+myTop;
	features+=",width="+myWidth+",height="+myHeight;
	newwindow = window.open(theURL,winName,features);
	if (window.focus) {newwindow.focus()}
}

/*******************************************************************************/

function cent(amount) {
// returns the amount in the .99 format 
    amount -= 0;
    amount = (Math.round(amount*100))/100;
    return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}

/*******************************************************************************/