/* author: IMaS GmbH */
/* Creation date: 04.02.2004 */
function imgOver(pId) {
	document.getElementById(pId).className = 'over';
}

function imgOut(pId,pStyle) {
    var tmp = document.getElementById(pId);
    if (tmp)
	    tmp.className = 'out'+pStyle;
}

function allOver (pId, pClass) {
	document.getElementById(pId).className = pClass;
}

function allOut (pId, pClass) {
	document.getElementById(pId).className = pClass;
}

function clickBut(pButton, pStart, pEnd) {
	for (var i = pStart; i <= pEnd; i++) {
		//alert ('sbut'+i);
		document.getElementById('sbut'+i).className = 'button';
	}
	pButton.className = 'butpush';
}

function openBestinfo (pURL) {
	var bestInfo = window.open(pURL,"Bestellliste","width=640,height=480,left=0,top=0,directories=no,resizable=no,scrollbars=yes,menubar=no,location=no,toolbar=no");
	bestInfo.focus();
	return false;
}

function highlightRowOver (pId) {
	var n;
	for (n=0; n < 50; n++) {
		if (document.getElementById(pId + '_' + n)) {
			document.getElementById(pId + '_' + n).className = 'body3HK';
		} else {
			break;	
		}
	}
}

function highlightRowOut (pId, pClass) {
	var n;
	for (n=0; n < 50; n++) {
		if (document.getElementById(pId + '_' + n)) {
			document.getElementById(pId + '_' + n).className = pClass;
		} else {
			break;	
		}
	}
}

