/*open Window */
/************************************************************************************************************************************************/
/*HTML Sample Code */

var thisY=0;
var thisX=0;

function doPopupPosition(thisWidth,thisHeight,thisDocument,thisWindowName, thisXPosition, thisYPosition, thisScrollbar,thisPath) {

	if (bw.ie) {
	  thisX = window.screenLeft + thisXPosition;
	  thisY = window.screenTop + thisYPosition;
	/*X,Y Positionen fuer IE unter Mac */
	  if(bw.mac){
	  	thisX = thisXPosition + 28;
	  	thisY = thisYPosition + 115;
	  /*da unter Mac die Scrollbars nicht in der Fensterbreite(hoehe) integriert sind, wird die Scrollbarbreite
	  	bzw. Hoehe von den Fensterbreiten (hoehen) abgezogen */
	  	if(thisScrollbar==1){
		  	thisWidth = thisWidth -12;
		  	thisHeight = thisHeight -15;
	  	}
	  	/*wenn von einem Childwindow aus ein Fenster aufgehen soll geht der Pfad verloren, weshalb er als Variable uebergeben
	  		werden muss (thisPath). Vom Parentfenster aus ist thisPath='' */
		thisDocument = thisPath + thisDocument;
	  }
	}
	/*X,Y Positionen fuer NS 4 */
	if (bw.ns4) {
		thisX = window.screenX + thisXPosition;
		thisY = window.screenY + thisYPosition + 130;
		if(bw.mac){
			thisY = window.screenY + thisYPosition + 115;

		}
	}
	/*X,Y Positionen fuer NS 6 */
	else if (bw.ns6) {
	  thisX = window.screenX +  thisXPosition + 10;
	  thisY = window.screenY + thisYPosition + 114;
	  if(bw.mac)
			thisY = window.screenY + thisYPosition + 90;
	}

  eval (thisWindowName + " = window.open(\"" + thisDocument + "\",\"" + thisWindowName + "\",\"" + "toolbar=0,location=0,directories=0,status=0,scrollbars=" + thisScrollbar + ",resizable=0,copyhistory=1,width=" + thisWidth + ",height=" + thisHeight + ",top=" + thisY + ",left=" + thisX + ",screeny=" + thisY + ",screenx=" + thisX + "\")");
  //eval ("self." + thisWindowName + ".focus()");
}

/* laedt eine neue Seite in ein existierendes Childwindow */
function myWindowChange(myWindowName, myURL){
	eval (myWindowName + ".location.href='" + myURL + "'");
}

function myWindowClose(myWindowName){
	eval (myWindowName + ".close()");
}


/************************************************************************************************************************************************/