// ScreenCall.js

function openScreenCallPop(intarg, debug) {
    try {

		if( intarg == null || intarg == "" ) intarg = '0' ;
		if( debug == null || debug == "" ) debug = '0' ;

		var dbug = document.getElementById('DebugMode');
		if(dbug) { if(dbug.checked) debug = '1' ; }
		//alert("debug= " + debug );

		// Feste URL benutzen, wenn es kein Demo, sondern beim Kunden eingebettet ist
		var url = 'http://www.screencall.de/ob/screencall/lohmeier.nsf' ;
		//var url = ThisDBurl ;
		url += '/ScreenCallPop?open&intarg=' + intarg + '&debug=' + debug ;
	  	url += "&tim=" + escape(new Date()) ;
 		//alert("url= " + url );
		openDialoutPopup(url);
	}
	catch(e) {
		alert( "ScreenCall.js - openScreenCallPop:\n" + e.message + "\n" + url );
		return;
	}
}

function openDialoutPopup( url, width, height, winName ) {
var width = (width)? width : 680 ;
var height = (height)? height : 400 ;
var winname = (winName)? winName : 'DialoutPopup' ;

var OptionString ='left=200,top=200,location=no,menubar=no,scrollbars=no,resizable=no,' + 'width=' + width + ',height=' + height   ;
dlgwin = window.open(url, winName , OptionString ) ;
window.setTimeout("dlgwin.focus()", 50);
}
