// Layer anzeigen
function showlayer(layername,ein_aus) {
	var divlay = document.getElementById(layername);
	divlay=divlay.style;
	var displayType='hidden';
	var displayStyle='none';
	if (ein_aus == 'ein') {
	    displayType='visible';
	    displayStyle='block';
	}
	divlay.display=displayStyle;
	divlay.visibility=displayType;
}
// ENDE


// MouseOver-Farben in der Navi ändern
function NaviColorAktiv(IdName)
{
document.getElementById(IdName).style.backgroundColor = "#FFFFFF";
}

function NaviColorMo(IdName)
{
document.getElementById(IdName).style.backgroundColor = "#FBFBFA";
}
function NaviColor(IdName)
{
document.getElementById(IdName).style.backgroundColor = "#F1EFE9";
}
// ENDE

// MouseOver-Farben in den Pfeilen ändern
function BtnPfeilColorMo(IdName)
{
document.getElementById(IdName).style.backgroundColor = "#B50000";
}
function BtnPfeilColor(IdName)
{
document.getElementById(IdName).style.backgroundColor = "#FFFFFF";
}
// ENDE


// Vergrößern der Textarea 
var enableEvent = true;
function focusOn(object) {
	object.rows = 8;
	}
function focusOff(object) {
	if (enableEvent) object.rows = 4;
	}		
function FieldChange() {
	if (event.propertyName == 'value')
	{
		 var senderObj = dge('InputText');
		 var max = 2000;
		 if( senderObj.value.length > max )
		 	senderObj.value = senderObj.value.substr(0, max);
		var targetObj = dge('lblQuantity');
			if ( targetObj != null )
				targetObj.innerText = max - senderObj.value.length;
		}
	}
// ENDE


// Temporäres Einblenden
var globalMsgContainerId = '';
function showTempMsg(msgContainerId)
{
	globalMsgContainerId = msgContainerId;
	document.getElementById(msgContainerId).style.display = 'block';
	window.setTimeout('hideTempMsg()', 2000);
}
function hideTempMsg()
{
	document.getElementById(globalMsgContainerId).style.display = 'none';
}
// ENDE

