






function checkUpload()
{
if(document.formEdit.pdffile.value == "")
  {
    document.getElementById('idHeadline').style.display='block';
    document.getElementById('idHeadline2').style.display='block';
    document.getElementById('idText').style.display='block';
    document.getElementById('idText2').style.display='block';
    document.getElementById('idBild').style.display='block';
    document.getElementById('idBild2').style.display='block';
  }
  else
  {
    document.getElementById('idHeadline').style.display='none';
    document.getElementById('idHeadline2').style.display='none';
    document.getElementById('idText').style.display='none';
    document.getElementById('idText2').style.display='none';
    document.getElementById('idBild').style.display='none';
    document.getElementById('idBild2').style.display='none';
  }
}







function showFlTextDel(){
document.formEdit.flText.value = "";
document.formEdit.flTextHtml.value = "";
document.formEdit.flTextRTF.value = "";
}
function showFlText(text){
  var text;
  //alert(text);
document.formEdit.flText.value += text;
}

function showFlTextExport(Export){
var Export;
document.formEdit.flTextHtml.value += Export;
}

function showFlTextRTF(RTF){
var RTF;
document.formEdit.flTextRTF.value += RTF;
}


///////////////////////////
function mehrUp(w){
eval("document.getElementById('mehr"+w+"')").style.display = 'block';
eval("document.getElementById('text"+w+"')").innerHTML = "";
}



function vorschauen(){
  
   var fileZ = 0;//Zähler nur für FileInputs
  for(w=0;w<document.formEdit.length;w++){

    if(document.formEdit.elements[w].name == "file[]"){
        if(document.formEdit.elements[w].value != ""){
            eval("document.formEdit.V_bild_"+fileZ).value = document.formEdit.elements[w].value;
            eval("document.formEdit.V_bildtext_"+fileZ).value = document.formEdit.elements[w+1].value;
        }
        fileZ++;
    }
}
}

function pruefe(what,much)
{
var anzahl = what.value.length;
if(anzahl > much)
{
alert("Achtung! Es sind nur "+much+" Zeichen in diesem Feld erlaubt.");
what.value = what.value.substring(0,much);
}
}

function pruefe2(howmany) {
var anzahl = document.nachrichtR.nachrichtRedak.value.length;

if(anzahl > howmany)
{
	alert("Achtung! Es sind nur "+howmany+" Zeichen im Nachrichtenfeld erlaubt.");
	document.nachrichtR.nachrichtRedak.value = document.nachrichtR.nachrichtRedak.value.substring(0,howmany);
	return false;
}
}

//Flasheditor setzt hiddenField auf 1 wenn der Editor Text geändert wird
function changedFlText(what)
{
document.formEdit.flTextChanged.value = what;
}
