
//nc relaodpage
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

//status zeile
var txt = "";
function szeile(anzeige)
   {
    status = anzeige;
   }
   
 /// Fenster 
 		var Fenster = 0;
		var Fenster;
		function upload(meineSeite,meinName,w,h,scroll)
		{
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
			Fenster = window.open(meineSeite,meinName,settings)
			Fenster.focus();
		}
		
// Function für Newsletter
var fensterNL = 0;
function newslett()
{
	if(fensterNL!=0&&fensterNL.closed!=true)
	{
		fensterNL.focus();
		fensterNL = open("#", "newsletter", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "newsletter";
		document.formular.submit();
	}
	else
	{
		fensterNL = open("#", "newsletter", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "newsletter";
		document.formular.submit();
	}
}
// Function für Newsletter
var fensterGS = 0;
function gspiel()
{
	if(fensterGS!=0&&fensterGS.closed!=true)
	{
		fensterGS.focus();
		fensterGS = open("#", "gewinnspiel", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "gewinnspiel";
		document.formular.submit();
	}
	else
	{
		fensterGS = open("#", "gewinnspiel", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "gewinnspiel";
		document.formular.submit();
	}
}

// Function für Warenkorb INSERT
var fensterWK = 0;
function wkInsert()
{
	if(fensterWK!=0&&fensterWK.closed!=true)
	{
		fensterWK.focus();
		fensterWK = open("#", "wkInsert", "width=364,height=300,scrollbars=Yes,resizable=Yes,status=no");
		document.formular.target = "wkInsert";
		document.formular.submit();
	}
	else
	{
		fensterWK = open("#", "wkInsert", "width=364,height=300,scrollbars=Yes,resizable=Yes,status=no");
		document.formular.target = "wkInsert";
		document.formular.submit();
	}
	
}
