// allgemein

function wechsel(bildName,bild) {
eval("document."+bildName).src=bild;
}

function reffocus(id) {
	document.getElementById(id).style.backgroundColor = "#FA6501";
	document.getElementById(id).style.color = "#FFFFFF";
}

function refblur(id) {
	document.getElementById(id).style.backgroundColor = "#E1E1E1";
	document.getElementById(id).style.color = "#414141";
}

function hintergrundon(idlo) {
document.getElementById(idlo).style.backgroundImage = "url('image/schraffurover.jpg')";
}
function hintergrundoff(idlo) {
document.getElementById(idlo).style.backgroundImage = "url('image/schraffur.jpg')";
}

function randInt(min,max)
{
        var div = (max - min) + 1
        var randNum = Math.random()
        for (var i = 0; i <= div - 1; i++)
        {
                if (randNum >= i / div && randNum < (i+1) / div)
                        {return i + min}
        }
}
