// JavaScript Document

//Ext.onReady(function() {
//	alert('test');
//});

function showHelp(bShow, uuid) {
//	if (bShow) {

		var win = new Ext.Window({
			title: 'Documentation',
			layout: 'fit',
			width: 500,
			height: 300,
			closeAction: 'hide',
			modal: true,
			items: new Ext.Panel({
				plain: true,
				autoScroll: true,
				autoLoad: { url: '/wikihelp/' + uuid + '.cfm' }
			}),
			buttons: [{
				text: 'Close',
				handler: function() {
					win.hide();
				}
			}]
		});
		win.show();
/*
		document.getElementById('validator_help').style.display='block';
		document.getElementById('validator_help_fixed').style.display='block';
		document.getElementById('validator_clicker').style.visibility = 'hidden';
		window.frames['validator_help_frame'].location.href = '/wikihelp/' + uuid + '.cfm';
	} else {
		document.getElementById('validator_help').style.display='none';
		document.getElementById('validator_help_fixed').style.display='none';
		document.getElementById('validator_clicker').style.visibility = 'visible';
	}
*/
}

function showHelpWindow(uuid) {
	win = window.open('/wikihelp/' + uuid + '.cfm', 'validator_help_win', 'scrollbars=1,resizable=1,menubar=0,width=600,height=400');
	win.moveTo(0,0);
}
