
/********************************************
Popup für logging Mail und Internet anfragen 
über unsere Seite
********************************************/
function plog(anfrage, domain)
{
	anfrage == 1 ? anfrage = "net" : anfrage = "mail";
	win = window.open('http://www.fewoinfo.com/netlog.php?log=' + anfrage + '&domain=' + domain + '', '', 'width=1, height=1, left=-500, top=-500, resizable=yes, alwaysLowered=yes');
	win.blur();
	window.setTimeout('win.close()', 200);	
}

function wopener(theURL) {
 var h = screen.height/1.2;
 var b = screen.width/1.2;
 var set = "width=" + b + ",height=" + h + ",scrollbars=yes,resizable=yes";
  window.open(theURL,'_blank',set);
}

function wopener2(theURL) {
 var h = 600;
 var b = 480;
 var breite = screen.width;
 var hoehe = screen.height;
 var links = (breite - b)/2;
 var oben = (hoehe - h)/2;
 var set = "width=" + b + ",height=" + h + ",scrollbars=yes,resizable=yes, status=no,left=" + links + ", top=" + oben + "";
  window.open(theURL,'_blank',set);
}

function wopener3(theURL) {
 var h = 350;
 var b = 300;
 var set = "width=" + b + ",height=" + h + ",scrollbars=no,resizable=no";
  window.open(theURL,'_blank',set);
}			

function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

function opener(buchungsLink)
{
 		 var breite = screen.width;
 		 var hoehe  = screen.height;
 		 var oben   = (hoehe - 600)/2;
		 var links = (breite-(480+450))/2;
		// window.moveTo(links,oben);
		 links += 492;
		 win=window.open(buchungsLink, 'Buchungsanfrage', 'width=450,height=602,left=' + links + ',top=' + oben + ', status=no,scrollbars=no')
}

