// *************************************************************************
// * DIV-SCRIPTS                                                           *
// * - Show/Hide-Funktionalitaet                                           *
// *************************************************************************
function divShowHide(showDiv, hideDiv)	{
	if (showDiv != '')	{
		document.getElementById(showDiv).style.display = 'block';
		document.getElementById(showDiv).style.visibility = 'visible';
	}
	if (hideDiv != '')	{
		document.getElementById(hideDiv).style.display = 'none';
		document.getElementById(hideDiv).style.visibility = 'hidden';
	}
	return;
}


// *************************************************************************
// * FENSTER-SCRIPTS                                                       *
// * - Verschiede Fenster-Skripte                                          *
// *************************************************************************
function NewWinPage(page)	{
	NewWindowPage = window.open(page, "NewWindowPage", "width=515,outerwidth=515,height=470,outerheight=560,toolbar=0,menubar=1,location=0,scrollbars=no,resizable=no");
	window.NewWindowPage.focus();
}
function NewWinPageSize(page,width,height)	{
	var outerwidth = width + 10;
	var outerheight = height + 60;
	var options = "width=" + width + ",outerwidth=" + outerwidth + ",height=" + height + ",outerheight=" + outerheight + ",toolbar=0,menubar=1,location=0,scrollbars=no,resizable=no";
	NewWinPageSize = window.open(page, "NewWindowPageSize", options);
	window.NewWindowPageSize.focus();
}
function OpenAgent()	{
	var winurl="/sixcms/list.php?page=esp_page_agent";
	var winname = "ESPWinAgent";
	var winoptions = "width=420,outerwidth=420,height=450,outerheight=480,toolbar=0,menubar=0,location=0,scrollbars=yes,resizable=yes";
	ESPWinAgent = window.open(winurl, winname, winoptions);
	window.ESPWinAgent.focus();
}
function OpenAnfahrt(id)	{
	if (id > 0)	{
		var winurl="/sixcms/detail.php?id=" + id;
		var winname = "ESPWinAnfahrt";
		var winoptions = "width=695,outerwidth=695,height=560,outerheight=620,toolbar=0,menubar=1,location=0,scrollbars=yes,resizable=yes";
		ESPWinAnfahrt = window.open(winurl, winname, winoptions);
		window.ESPWinAnfahrt.focus();
	}
}
function OpenWeitereInfo(id)	{
	if (id > 0)	{
		var winurl="/sixcms/detail.php?id=" + id;
		var winname = "ESPWinWeitereInfo";
		var winoptions = "width=520,outerwidth=520,height=470,outerheight=530,toolbar=0,menubar=1,location=0,scrollbars=yes,resizable=yes";
		ESPWinWeitereInfo = window.open(winurl, winname, winoptions);
		window.ESPWinWeitereInfo.focus();
	}
}
