function Afenster(url_comefrom,bereich,a_title) {	
  add = window.open("http://www.wiwi-online.de/afiles/popups/nouserlight.php?a_title="+a_title+"&bereich="+bereich+"&url_comefrom="+url_comefrom, 
  "neu","width=616,height=400,location=0,menubar=0,personalbar=0,status=0");
  add.focus();
}

var neu=null;
function Aimgfenster(id,profil_checker) {	
  neu=window.open('', 'remote', 'directories=no,width=800,height=480,location=0,menubar=0,personalbar=0,status=0,resizable=yes,scrollbars=yes');
    if (neu != null) {
      if (neu.opener == null) {
        neu.opener = self;
      }
      neu.location.href = 'http://www.wiwi-online.de/afiles/popups/imganz.php?id='+id+'&p2z='+profil_checker;
    }	
  neu.focus();
}		
function Zusammenfassung() {	
  add = window.open("http://www.wiwi-online.de/afiles/popups/zusammenfassung.php", 
  "_blank","width=1100,height=1700,location=0,menubar=1,personalbar=0,status=0,resizable=yes,scrollbars=yes");
  add.focus();
}
function Lebenslauf(plink) {	
  add = window.open("http://www.wiwi-online.de/afiles/popups/lebenslauf.php?plink="+plink, 
  "neu","width=1100,height=1700,location=0,menubar=1,personalbar=0,status=0,resizable=yes,scrollbars=yes");
  add.focus();
}
function dani(nr,kd) {   		
    var xmlHttpReq = false;
    var self = this;
		var strURL = "/afiles/includes/dani.php";						   
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);		
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');		
    self.xmlHttpReq.onreadystatechange = function() {}				
		var qstr = 'url=' + escape(nr) + '&kd=' + escape(kd);
    self.xmlHttpReq.send(qstr);		
}
function prepareLinks(kd) {
  var a = document.getElementsByTagName('a'); 
  for(i=0; i<a.length; i++) {
	  if (a[i].target == '_blank' || a[i].target == '_new' || a[i].target == 'new' || a[i].target == 'blank') {  	
      a[i].setAttribute('onclick', 'javascript:dani(this.href,'+kd+');');
		}
  }
}
