onclick button in lightbox

hi there,i’am newbie here. i still cant get the event_id value to redirect another page when click a custom button in lightbox…is there any chances here…or my code are not correct…help me…

scheduler.locale.labels.button_help="Edit Details";   
scheduler.form_blocks.textarea.button_click=function(event_id){
parent.location="'.atkconfig("atkroot").'dispatch.php?atknodetype=dhtmlxConnector_php.schedule&atkselector="+event_id+"&atkaction=edit";
} 


scheduler.config.lightbox.sections=[	
		
			{name:"description", height:130, map_to:"text", type:"textarea" , focus:true, button:"help"},
 			{name:"time", height:72, type:"time", map_to:"auto"}
			]	

Configuration code which you are using is correct, but the onclick command itself has not valid js syntax

parent.location="’.atkconfig(“atkroot”).'dispatch.php?atknodetype=dhtmlxConnector_php.schedule&atkselector="+event_id+"&atkaction=edit";

Try to change it as

parent.location=“dispatch.php?atknodetype=dhtmlxConnector_php.schedule&atkselector=”+event_id+"&atkaction=edit";