dojo.require("dijit.Dialog");

dojo.addOnLoad(function(){
	dojo.query(".makeDialog").forEach(function(node, index, array){

		//alert(node.id);
		var tc='';

		tc = new dijit.Dialog({
		    title: node.title,
		    style: 'height: auto; border: 2px solid #ff0000'
		},
		node.id
	);

		tc = dijit.byId(node.id);
		tc.startup();

		console.log(tc);

	});

});

function showDig(where, order)
{
	dijit.byId(where).show();
	return false;
}

function hideDig(where, order)
{
	dijit.byId(where).hide();
	return false;
}
