function buttonOver(elem){
	if (document.all){
		elem.style.borderRightColor='0765A7';
		elem.style.borderBottomColor='0765A7';
		elem.style.borderLeftColor='FFFFFF';
		elem.style.borderTopColor='FFFFFF';	
	}
	else {
		elem.style.borderRightColor='#0765A7';
		elem.style.borderBottomColor='#0765A7';
		elem.style.borderLeftColor='#FFFFFF';
		elem.style.borderTopColor='#FFFFFF';	
	}
}

function buttonOut(elem){
	if (document.all){
		elem.style.borderLeftColor='0765A7';
		elem.style.borderTopColor='0765A7';
		elem.style.borderRightColor='0765A7';
		elem.style.borderBottomColor='0765A7';
	}
	else {
		elem.style.borderLeftColor='#0765A7';
		elem.style.borderTopColor='#0765A7';
		elem.style.borderRightColor='#0765A7';
		elem.style.borderBottomColor='#0765A7';
	}
}

function buttonDown(elem){
	if (document.all){
		elem.style.borderRightColor='FFFFFF';
		elem.style.borderBottomColor='FFFFFF';
		elem.style.borderLeftColor='0765A7';
		elem.style.borderTopColor='0765A7';
	}
	else {
		elem.style.borderRightColor='#FFFFFF';
		elem.style.borderBottomColor='#FFFFFF';
		elem.style.borderLeftColor='#0765A7';
		elem.style.borderTopColor='#0765A7';
	}
}

function buttonUp(elem){
	if (document.all){
		elem.style.borderRightColor='0765A7';
		elem.style.borderBottomColor='0765A7';
		elem.style.borderLeftColor='FFFFFF';
		elem.style.borderTopColor='FFFFFF';
	}
	else {
		elem.style.borderRightColor='#0765A7';
		elem.style.borderBottomColor='#0765A7';
		elem.style.borderLeftColor='#FFFFFF';
		elem.style.borderTopColor='#FFFFFF';
	}
}

function printButton()
{
	if (window.location.protocol != 'file:')
	{
		document.writeln('<input name="button" type="button" class="buttons" value="print" onclick="print();"/>');
	}
}


function isEnterKeyPressed (oEvent)
{
	if (oEvent.keyCode)
	{
		iAscii = oEvent.keyCode;
	}
	else if (oEvent.which)
	{
		iAscii = oEvent.which;
	}
	else
	{
		return false;
	}
	
	if (iAscii == 13)
	{
		return true;
	}
}
