// WHAT - What a Hypersuper Antispam Techology
// Anti-spam e-mailcímekhez
// Eredeti szerző: Bártházi András - http://weblabor.hu/cikkek/what
function whatCorrector() {
var replaces = 0;
	var alltags = document.getElementsByTagName("*");
	for (i=0; i < alltags.length; i++) {
		if (alltags[i].className == 'whateffect') {
			while (alltags[i].innerHTML.indexOf('.'+'kukac.') != -1 && replaces < 10000) {
				alltags[i].innerHTML = alltags[i].innerHTML.replace('.'+'kukac.', String.fromCharCode(64));
				replaces++;
			}
			while (alltags[i].innerHTML.indexOf('.'+'pont.') != -1 && replaces < 10000) {
				alltags[i].innerHTML = alltags[i].innerHTML.replace('.'+'pont.', '.');
				replaces++;
			}
		}
	}
}
//Visszakérdezés
function kerdes() {
  var agree = confirm("Biztosan folytassuk?");
  if (agree) return true;
  else return false;
}
function ckeditor1() {
	CKEDITOR.replace('a10-message',
		{
		removePlugins : 'bidi,button,dialogadvtab,div,filebrowser,flash,format,forms,horizontalrule,iframe,indent,justify,liststyle,pagebreak,showborders,stylescombo,table,tabletools,templates,resize,smiley',
		toolbar_Full :
			[
				['Undo','Redo','-','RemoveFormat','-','Bold', 'Italic','SpecialChar','-','TextColor','-','NumberedList','BulletedList','-','Blockquote','-','Maximize','-','About']
			]
		});
	whatCorrector();
}
function ckeditor2(){
	CKEDITOR.replace('a10-message');
	whatCorrector();
}
