function confirmQ(req){
	if (confirm(req)==true){return true;}
	else{return false;}
}
function recieve_value(page, field, result){
  	DIM1 = (document.getElementById(field).value)
	doajax(page+DIM1,result)
}
function ccss4(OID1, OCNAME1, OID2, OCNAME2, OID3, OCNAME3, OID4, OCNAME4){
	var nodeObj1 = document.getElementById(OID1);
	nodeObj1.className = OCNAME1;
	var nodeObj2 = document.getElementById(OID2);
	nodeObj2.className = OCNAME2;
	var nodeObj3 = document.getElementById(OID3);
	nodeObj3.className = OCNAME3;
	var nodeObj4 = document.getElementById(OID4);
	nodeObj4.className = OCNAME4;
} 
if ( window.CKEDITOR ){
	(function()
	{
		var showCompatibilityMsg = function()
		{
			var env = CKEDITOR.env;

			var html = '<p><strong>Your browser is not compatible with CKEditor.</strong>';

			var browsers =
			{
				gecko : 'Firefox 2.0',
				ie : 'Internet Explorer 6.0',
				opera : 'Opera 9.5',
				webkit : 'Safari 3.0'
			};

			var alsoBrowsers = '';

			for ( var key in env )
			{
				if ( browsers[ key ] )
				{
					if ( env[key] )
						html += ' CKEditor is compatible with ' + browsers[ key ] + ' or higher.';
					else
						alsoBrowsers += browsers[ key ] + '+, ';
				}
			}

			alsoBrowsers = alsoBrowsers.replace( /\+,([^,]+), $/, '+ and $1' );

			html += ' It is also compatible with ' + alsoBrowsers + '.';

			html += '</p><p>With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.</p>';

			var alertsEl = document.getElementById( 'alerts' );
			alertsEl && ( alertsEl.innerHTML = html );
		};

		var onload = function()
		{
			if ( !CKEDITOR.env.isCompatible )
				showCompatibilityMsg();
		};
		if ( window.addEventListener )
			window.addEventListener( 'load', onload, false );
		else if ( window.attachEvent )
			window.attachEvent( 'onload', onload );
	})();
}
