function placebo() {} 

function formHandler(){
var URL = document.form.nfile.options[document.form.nfile.selectedIndex].value;
parent.location.href = URL;
}

closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=20,top=20,width=" + WIDTH + ",height=" + HEIGHT + ",resizable=yes,scrollbars=yes";
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup() {
url = "/x_sys/scripts/sitemap.php";
width = 440;  // width of window in pixels
height = 500; // height of window in pixels
delay = 0;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}


var newWin = null;

// Close the navigation window
function closeWin() {
	window.close(self);
}
// Load a new page into the creator's window
function loadPage(loc) {
	if (!opener)
		creator.location = loc;
	else	opener.location = loc;
}

// Create the navigation window
function createWin(loc,pg) {
	newWin = window.open(loc,'nav_win',
'left=20,top=20,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=500,height=500');
	newWin.creator = self;
}

// Create the navigation window
function createImmoWin(loc,pg) {
	newWin = window.open(loc,'nav_win',
'left=20,top=20,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=800,height=800');
	newWin.creator = self;
}

// Create the navigation window
function createFewoWin(loc,pg) {
	newWin = window.open(loc,'nav_win',
'left=20,top=20,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=850,height=800');
	newWin.creator = self;
}

// Create the navigation window
function createWinNL(loc,pg) {
	newWin = window.open(loc,'nav_win',
'left=20,top=20,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=350,height=500');
	newWin.creator = self;
}


var x=0;
var y=0;
var w=null;
var o=false;
var n=0;
var delay=10;

function openwindow() {
  w.moveTo(x*10,y*10);
  w.resizeTo(x*30,y*20);  
    x++;
    y++;
  if (x>20) {
    clearInterval(interval);
	w.location.href="/popup.html";
  }
  w.focus();
}
function closewindow() {
  x--;
  y--;
  w.moveTo(x*10,y*10);
  w.resizeTo(x*30,y*20);  
  if (x<=0) {
    clearInterval(interval);
	w.close();
	door(n);
  }
  w.focus();
}

function door(m) {
  if (x==0 || w.closed==true || w==null) {
    x=0;
	y=0;
	n=m;
    w=window.open("/popup.html",0,"toolbar=0,location=0,directories=0,status=1,menubar=0,width=1,height=1,scrollbars=1,resizable=1");
	w.moveTo(0,0);
    interval = setInterval('openwindow()',delay); 
  } else {
    w.location.href = "/popup.html";
    n=m;
    interval = setInterval('closewindow()',delay); 
  }
  
}

function noEntry() {
mt=document.formular.Email.value;
if ((mt.length<1)||(mt.substring(0,6)=="******")) {
alert("Dieses Feld muss ausgefuellt sein bevor das Formular abgeschickt wird.");
document.formular.Email.value="******Bitte fuellen Sie dieses Feld aus";
document.formular.Email.focus();

return false;
}
else { 
return true; 
}


}




