function updateContent(id,type) {
	$('innerc').hide();
	if (type=="m")
		new Ajax.Updater('innerc', 'ajax_updater.php?id='+id);
	else if (type=="c")
		new Ajax.Updater('innerc', 'ajax_updater.php?c='+id);
	else if (type=="t")
		new Ajax.Updater('innerc', 'ajax_updater.php?id='+id+'&r=nul');
	document.getElementById('innerc').innerHTML = '<img src="loading.gif" />';
	$('innerc').appear();
}

function showReview(r,id) {
	var win = new Window({
		url: "/ajax_updater.php?r="+r+"&id="+id, 
		className: "dialog", 
		width:380, 
		height:400, 
		zIndex: 100, 
		resizable: true, 
		title: "Review Window", 
		showEffect:Effect.BlindDown, 
		hideEffect: Effect.Fold, 
		draggable:true, 
		wiredDrag: false
	});
	win.showCenter();
}
function showWindow(id,desc) {
	var win = new Window({
		url: "/ajax_updater.php?wnd="+id, 
		className: "dialog", 
		width:380, 
		height:400, 
		zIndex: 100, 
		resizable: true, 
		title: desc, 
		showEffect:Effect.BlindDown, 
		hideEffect: Effect.Fold, 
		draggable:true, 
		wiredDrag: false
	});
//		win.setStatusBar("Status bar info"); 
	win.showCenter();
}
