function openDialog(title,url,width,height) {

	heightNew = parseInt(height)-80
	widthNew = parseInt(width)-20
	//heightNew = parseInt(height)
	//widthNew = parseInt(width)
	
	
	buttonText = 'Schliessen'
	
	node = dijit.byId('DialogFenster');
	
	if (node)
		node.destroyRecursive(true);

	var sitcont = '<iframe src="'+url+'" width="'+widthNew+'px" height='+heightNew+'px">'
	sitcont = sitcont + '</iframe>'
	sitcont = sitcont + '<div align="center" style="margin-top:10px" width="'+widthNew+'px" height="40px">'
	sitcont = sitcont + '<button dojoType="dijit.form.Button" type="submit">'+buttonText+'</button>'
	sitcont = sitcont + '</div>'
	
	myStyle="width: "+width+"px; height: "+height+"px;"
	
	node = dojo.doc.createElement('div')
	dojo.addClass(node, "dlgDiv");
	
	var myDialog = new dijit.Dialog({ id: 'DialogFenster', title:title, content: sitcont, style:myStyle},node);
   
	myDialog.startup();
	myDialog.show(); 
}

function openDialogBAK(title,url,width,height) {

	heightNew = parseInt(height)-80
	widthNew = parseInt(width)-20
	
	buttonText = 'Schliessen'
	
	node = dijit.byId('DialogFenster');
	
	if (node)
		node.destroyRecursive(true);

	var sitcont = '<iframe src="'+url+'" width="'+widthNew+'px" height='+heightNew+'px">'
	sitcont = sitcont + '</iframe>'
	sitcont = sitcont + '<div align="center" style="margin-top:10px" width="'+widthNew+'px" height="40px">'
	sitcont = sitcont + '<button dojoType="dijit.form.Button" type="submit">'+buttonText+'</button>'
	sitcont = sitcont + '</div>'
	
	myStyle="width: "+width+"px; height: "+height+"px;"
	
	node = dojo.doc.createElement('div') 
	var myDialog = new dijit.Dialog({ id: 'DialogFenster', title:title, content: sitcont, style:myStyle},node);
   
	myDialog.startup();
	myDialog.show(); 
}
