
function Start(ref)
{
    window.open('Downloadc.php?ref=' + ref + '&amp;view=1', '', 'toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,width=100,height=100');
    window.open('Vorschau.php?ref=' + ref, '', 'fullscreen=yes, scrollbars=no, width=1024, height=768');
}

function Download(ref)
{
    window.open('Downloadc.php?ref=' + ref, '', 'toolbar=no,menubar=no,scrollbars=no,resizable=no,status=no,location=no,width=100,height=100');
}

function Bild(bild)
{
    window.open('Bild.php?bild=' + bild, '', 'toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=no,location=no');
}

function Bild2(bild, pfad, ueber)
{
    window.open('Bild.php?bild=' + bild + '&pfad=' + pfad + '&ueber=' + ueber, '', 'toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=no,location=no');
}

////////////////////////////////////////////////////////////////////////////////

// Ändern des Wertes einer Checkbox
function WechselCheck(strForm, strElement)
{
    if (document.forms[strForm].elements[strElement].checked)
    {
        document.forms[strForm].elements[strElement].checked = false;
        document.forms[strForm].elements[strElement].focus();
    }
    else
    {
        document.forms[strForm].elements[strElement].checked = true;
        document.forms[strForm].elements[strElement].focus();
    }
}

// Farbe der Beschriftung ändern
function WechselFarbe(strElement, bCheck, strCheckText, strUncheckText)
{
    if (window.document.getElementById(strElement))
	{
        if (bCheck)
		{
            window.document.getElementById(strElement).style.color = "#FF0000";
            window.document.getElementById(strElement).firstChild.data = strCheckText;
        }
		else
		{
            window.document.getElementById(strElement).style.color = "#000000";
            window.document.getElementById(strElement).firstChild.data = strUncheckText;
		}
	}
}

// Den Fokus auf ein bestimmtes Steuerelement setzen
function SetFokus(strForm, strElement)
{
    setTimeout("window.document.forms['" + strForm + "'].elements['" + strElement + "'].focus()", 700);
}
