
//
// Neues Fenster öffnen
//
function OpenWindow(theURL,winName,winCenter,x,y,features) {
  var param = "width=" + x + ",height=" + y + ( features=="" ? "" : "," + features );
  var win = window.open(theURL,winName,param);

  if (theURL.indexOf('http://') == -1) {
    if (winCenter) win.moveTo((screen.width-x)/2,(screen.height-y)/2);
    win.focus();
  }
}

//
// Neues Fenster öffnen mit der Breite 400 Pixel
//
function up() {
  var width = 400;
  
  var args = up.arguments;
  
  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=no,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}


//
// Neues Fenster öffnen mit der Breite 600 Pixel
//
function info() {
  var width = 600;
  
  var args = info.arguments;
  
  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=no,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}






//
// Neues Fenster öffnen mit der Breite 800 Pixel
//
function openup() {
  var width = 800;
  
  var args = openup.arguments;
  
  var theURL   = args[0] ;
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}


//
//  Basel aufrufen
//
function Basel() {
  OpenWindow('http://www.baslerstab.ch','Stadtplan',1,800,600,'scrollbars=yes')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}

//
//  Stadtplan aufrufen
//
function Stadtplan() {
  OpenWindow('http://www.mybasel.ch/verkehr_stadtplan.cfm','Stadtplan',1,800,600,'scrollbars=yes')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}


//
//  Realplayer aufrufen
//
function Realplayer() {
  OpenWindow('http://www.realplayer.de','Realplayer',1,800,600,'scrollbars=yes')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}

//
//  Region aufrufen
//
function Region() {
  OpenWindow('http://213.164.65.51/immoline/region.html','Region',1,880,700,'scrollbars=yes')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}


//
//  Mail aufrufen
//
function Mail() {
 OpenWindow('http://213.164.65.51/immoline/kontakt/mail.php','MehrInfo',1,800,600,'scrollbars=no')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}

//
//  Empfehlung aufrufen
//
function Empfehlung() {
 OpenWindow('http://213.164.65.51/immoline/empfehlen/empfehlung.php','Empfehlung',1,170,250,'scrollbars=no')
}

function ZweiFrames(URL1,F1,URL2,F2) {
  parent.frames[F1].location.href=URL1;
  parent.frames[F2].location.href=URL2;
}


//
// Neues Fenster öffnen mit der Breite 800 Pixel
//
function pop() {
  var width = 800;
  
  var args = pop.arguments;
  
  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus(); 
}
function poplink() {
  var width = 520;

  var args = poplink.arguments;

  var theURL   = args[0];
  var height   = (args[1] ? args[1] : 200);
  var toolbar  = (args[2] == 1 ? "yes" : "no");
  var location = (args[3] == 1 ? "yes" : "no");

  var param = "scrollbars=yes,width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location;
  var win = window.open(theURL,'coll',param);

  win.moveTo((screen.width-width)/2,(screen.height-height)/2);

  win.focus();
}
