function open_articles_comments(ids) {
	/*
	var id = ids + "[module]";
	
	var params_id = ids + "[params]";
	
	var field =  get_item(id);
	
	var module_name = field.value;
		module_name = module_name.toLowerCase();
	if(module_name) {
		
		var fileSelect = "";
		var paramsList = "";
		
		for(var i=0; i<module_info[module_name]['panels'].length; i++) {
			
			//alert(module_info[module_name]['panels'][i]['name']);
			fileSelect +="<option value='"+ module_info[module_name]['panels'][i]['name'] +"'>" + module_info[module_name]['panels'][i]['name'] + "</option>";
			if(i == 0) {
				
				for(var ParamKey in module_info[module_name]['panels'][i]['params']) {
					paramsList +="<tr><td>" + ParamKey + ": &nbsp</td><td> <input type='text' name='" + ParamKey + "' value='" + module_info[module_name]['panels'][i]['params'][ParamKey] +"' /> </td></tr>";				
				}
				
			}
		}
		
		fileSelect = "<select id='param_file_select' name='file' onchange=\"file_change('"+ module_name +"');\">" + fileSelect+ "</select>";

		var params_file = get_item('params_file');
		params_file.innerHTML = fileSelect;
		var params_list = get_item('params_list');
		params_list.innerHTML = "<table>" + paramsList + "</table>";		
		
		
		
		*/
		var params_div = get_item('articles_comment_div');
		params_div.style.display = "";
		
		var handleCancel = function() {
			this.cancel();
		}

		var handleSubmit = function() {
			this.submit();
		}
				
		var onSuccess = function(o) {
			window.location.reload(true);
		}
		 
		articlesCommnets = new YAHOO.widget.Dialog('articles_comment_div', { modal:true, visible:false, width:"350px", fixedcenter:true, constraintoviewport:true, draggable:true });
		

		
		var listeners = new YAHOO.util.KeyListener(document, { keys : 27 }, {fn:handleCancel,scope:articlesCommnets,correctScope:true} );

		articlesCommnets.cfg.queueProperty("keylisteners", listeners);
		articlesCommnets.cfg.queueProperty("buttons", [ { text:"Submit", handler:handleSubmit } ]);
		
		
		
		
		articlesCommnets.render();		
		
		articlesCommnets.show();
		
			articlesCommnets.callback.success = onSuccess; 
		
}


function toggle_articles_comments(targ) {
	
	var itm = get_item('articles_' + targ);
	var itm2 = get_item('articles_img_' + targ);

	
	if ( itm.style.display == "" ) {
		
		itm.style.display = "none";

		//itm2.src = itm2.src.replace("minus", "plus"); 
		itm2.src = itm2.src.replace("collapse", "expand"); 
	}
	 else {
	 	
	 	itm.style.display = "";
		//itm2.src = itm2.src.replace("plus", "minus"); 
		itm2.src = itm2.src.replace("expand", "collapse"); 
				
	}
	

}
	
