/**
 * Seitenfunktionalität: Kontakt (kontakt)
 *
 * @package 
 * @subpackage 
 *
 * @author Stefan Hogrebe
 * @copyright h.n WebServices (http://www.hn-webservices.de)
 * @version $Revision$
 * <br>
 * $Header$
 */

function NeuFenster(myurl, mywidth, myheight, title, scroll, resize) {
	if (!mywidth)
		mywidth = 350
	if (!myheight)
		myheight = 350
	if (!title)
		title = 'Fenster'
	if (!scroll)
		scroll = 'no'
	if (!resize && resize != 0)
		resize = 1

	par = '"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scroll + ',resizable=yes,copyhistory=0,width=' + mywidth + ',height=' + myheight + '"'
	newWin = window.open(myurl,title,par);
//	newWin.moveTo(100,200);
	if (resize)
		newWin.resizeTo(parseInt(mywidth), parseInt(myheight)+10);
	newWin.focus();
}


function switch_layer(element_id) {
	if (document.getElementById(element_id).style.display == 'none')
		document.getElementById(element_id).style.display = 'block';
	else
		document.getElementById(element_id).style.display = 'none';
}

function checkFotoLoeschen(myelement)
{

    if (!myelement.checked)
        return false;

	return confirm("Das Foto wird gelöscht, nachdem das Angebot gespeichert wurde!\n" +
                   "Um ein bestehendes Foto zu überschreiben, bitte nur ein neues Foto wählen, kein Löschen.\n(OK=Ja, Abbrechen=Nein)");
}
