
//-------- POPUP  -----------------------------------
// this variable names the current window (for using the popUp as a remote)
window.name = "currentWindow";
// this function opens the pop-up window
var newWin;

function popUp(page,name,w,h) {
	pref='width='+w+',height='+h+',left=50,top=50,scrollbars=no,location=no,menubar=no,resizable=no,toolbar=no,status=no'
	window.open(page,name,pref);
}

function popUpPrint(page,name,w,h) {
	pref='width='+w+',height='+h+',left=20,top=20,scrollbars=yes,location=no,menubar=yes,resizable=yes,toolbar=yes,status=no'
	window.open(page,name,pref);
}

function popUpArchive(page,name,w,h) {
	pref='width='+w+',height='+h+',left=20,top=20,scrollbars=yes,location=no,menubar=no,resizable=yes,toolbar=no,status=no'
	window.open(page,name,pref);
}

function popUpBildgalerie(page,name,w,h) {
  	pref='width='+w+',height='+h+',left=20,top=20,scrollbars=no,location=no,menubar=no,resizable=no,toolbar=no,status=no'
  	window.open(page,name,pref);
  }
// function popUp(page, name, details) {
// newWin=window.open(page, name, details);
// newWin.focus();
// return false;
// }

// function Trailer(url) {
// newWin=window.open(url, 'trailer', 'width=440,height=380,scrollbars=no,location=no,left=50,top=50,menubar=no,resizable=no,toolbar=no,status=no');
// newWin.focus();
// return false;
// }

// function Photogallery(url) {
// newWin=window.open(url, 'photogallery', 'width=440,height=500,scrollbars=no,location=no,left=50,top=50,menubar=no,resizable=no,toolbar=no,status=no');
// newWin.focus();
// return false;
// }


//-------- EINGABEFELDER  -----------------------------------
// Wechselt die Farben der Eingabefelder

function cOnF(feld) {
feld.style.backgroundColor='FF5A00';
feld.style.color='white';
}

function cOnB(feld) {
feld.style.backgroundColor='white';
feld.style.color='#666666'
}

