Problem press button

Hello I get an error " Cannot call method ‘createWindow’ of undefined " when pressing on my button " Ouvrir Fiche RDV " but I do not see how this is resolved.
Here are some of my code :

scheduler.locale.labels.button_fiche=“Ouvrir Fiche RDV”;
scheduler.form_blocks.textarea.button_click=showButtonContent;
//scheduler.form_blocks.textarea.button_click=function(){
//alert();

		//}

		function showButtonContent(){
		//alert();
		var myWins;
		//myWins = new dhtmlXWindows();
     		w1 = myWins.createWindow("id", 800, 50, 700, 560);
     		//w1.setText("FICHE RDV");
     		//myForm = w1.attachLayout("2E");
     		//myForm.cells("a").hideHeader();
     		//myForm.cells("b").hideHeader();
     		//myForm.cells("b").setHeight(140);
     		//myForm1 = myForm.cells("a").attachURL("xbp_form_crud/index.php");
     		//myForm2 = myForm.cells("b").attachURL("xbp_form_crud/index2.php");
     
   }

Thank you for your help