var showFlag = false; //Ez fogja szabályozni a MyAccount sor megjelenését

function isIE50() { // Private method
  return isIE5() && !isIE55();
}

function isIE55() { // Private method
  return navigator.userAgent.indexOf("MSIE 5.5") > -1;
}

function isIE5() { // Private method
  return navigator.userAgent.indexOf("MSIE 5") > -1;
}

function isIE6() { // Private method
  return navigator.userAgent.indexOf("MSIE 6") > -1 && navigator.userAgent.indexOf("Opera") == -1;
}

function isIE() { // Private method
  return isIE5() || isIE6();
}

var chlogBlocksArray = new Array();
chlogBlocksArray[0] = "chlogBlockPro";
chlogBlocksArray[1] = "chlogBlockOne";

function showChlogBlock( obj ) {
	hideAllChlogBlock();
	document.getElementById(chlogBlocksArray[(obj - 1)]).style.display = "";
}

function hideAllChlogBlock() {
	for (var a=0;a<chlogBlocksArray.length;a++) {
		document.getElementById(chlogBlocksArray[a]).style.display = "none";
	}
	return;
}

function imgChange(imgID,pTodo,pMode) {
	if (pMode == 1) {
		if (document.images && imgID && pTodo && ( document.getElementById(imgID).src.search("_off") != -1 ||  document.getElementById(imgID).src.search("_on") != -1 ) ) {
			var imgStatus = "off";
			if (pTodo==1) imgStatus = "on";
			if (document.getElementById(imgID)) {
				var wsrc = document.getElementById(imgID).src;
				var w = wsrc.substr(0,wsrc.lastIndexOf("_")+1);
				var wExt = wsrc.substr(wsrc.lastIndexOf("."),4);
				document.getElementById(imgID).src = w + imgStatus + wExt;
			}
		}
	} else {
		if (document.images && imgID && pTodo && ( imgID.src.search("_off") != -1 ||  imgID.src.search("_on") != -1 ) ) {
			var imgStatus = "off";
			if (pTodo==1) imgStatus = "on";
			if (imgID) {
				var wsrc = imgID.src;
				var w = wsrc.substr(0,wsrc.lastIndexOf("_")+1);
				var wExt = wsrc.substr(wsrc.lastIndexOf("."),4);
				imgID.src = w + imgStatus + wExt;
			}
		}
	}
}

function leftMenuState(obj) {
 	var imgObj = "leftmenuarrow" + obj.id.substr(8,obj.id.length);
	var imgSrc = document.getElementById(imgObj).src
	if (obj.className.search("Over") == -1) {
		obj.className = "leftMenuElementOver";
		imgSrc = imgSrc.replace("_normal","_over");
	} else {
		obj.className = "leftMenuElement";
		imgSrc = imgSrc.replace("_over","_normal");
	}
	document.getElementById(imgObj).src = imgSrc;
}

function footerPosition() {
	if (isIE() && ( document.body.offsetHeight > document.body.scrollHeight)) {
		document.getElementById('footer').style.position = "absolute";
	} else if (!isIE() && ( document.body.offsetHeight < document.body.scrollHeight)) {
		document.getElementById('footer').style.position = "absolute";
	} else {
		document.getElementById('footer').style.position = "relative";
	}
}

function getObj(name) { 
    if (document.getElementById) {
      return document.getElementById(name);
    }
    else if (document.all) {
      return document.all[name]; 	 
    }
    else if (document.layers) {
      return document.layers[name];
    }
  }

  function FaqClick(intID) {
    var imgArrow = getObj('ifaq' + intID.toString());
    var divItem = getObj('dfaq' + intID.toString());
    if (divItem.style.display.toLowerCase() == 'none') {
      divItem.style.display = 'block';
      imgArrow.src = '/images/buttons/arrow_down.gif';
    }
    else {
      divItem.style.display = 'none';
      imgArrow.src = '/images/buttons/arrow_right.gif';
    }
    return(false);
  }

///////////////////////////////////////////////////////////////////////////////////////////////////

var idozit;
var layerTomb = new Array();
layerTomb[0] = "easy_readmore";
layerTomb[1] = "easy_buyit";
layerTomb[2] = "easy_tryit";

function showLayer( obj ) {
	hideAllLayer();
	StopTimer();
	if (obj == "easy_readmore") {
		document.getElementById("one_brochures").style.display = "none";
	} else {
		document.getElementById("easy_brochures").style.display = "none";
	}
	document.getElementById( obj ).style.display = "";
	return;
}

function hideLayer( obj ) {
	document.getElementById( obj ).style.display = "none";
	return;
}

function StopTimer() {
	if (window.idozit) {
		clearTimeout(idozit);
		idozit = "";
	}
	return;
}

function StartTimer() {
	idozit = setTimeout("hideAllLayer()",500);
}

function hideAllLayer() {
	document.getElementById("one_brochures").style.display = "";
	document.getElementById("easy_brochures").style.display = "";
	for (var b=0;b<layerTomb.length;b++) {
		hideLayer(layerTomb[b]);
	}
	return;
}

///////////////////////////////////////////////////////////////////////////////////////////////////

var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
var oldExp = new Date();
oldExp.setTime(exp.getTime() - (expDays*24*60*60*1000));

function SetCookie (name, value) {
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = "/";
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
		endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (document.cookie.substring(i, j) == arg)      
			return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}
	return null;
}

///////////////////////////////////////////////////////////////////////////////////////////////////

function showAtWork( obj ) {
	
	var bigSRC = obj.src.replace("At_work_small","At_work_large");
	
	var ablak = window.open('','siteatwork','status=no,width=940,height=650,scrollbars=yes,resizable=yes');
	
	if (bigSRC.search("EEOS_One")!=-1) {
		var prodName = "One";
	} else {
		var prodName = "Professional";
	}
	
	ablak.document.open();
	ablak.document.write("<html><head>");
	ablak.document.write("<title>EagleEyeOS :: Organized Security :: EagleEyeOS&trade; " + prodName + " at Work</title>");
	ablak.document.write("<link rel='stylesheet' type='text/css' href='/style/eeos_common.css'>");
	ablak.document.write("<META content='EagleEyeOS data and file security software. Security logging and file monitoring solution.' name='description'><META content='Data Security, File Security, Security Logging and Audit, File monitoring, Software' name='keywords'><META content='Data Security, File Security, Monitoring Software' name='TITLE'><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-2'><meta http-equiv='Content-Language' content='en'><meta name='author' content='EagleEyeOS Development Team'><meta name='reply-to' content='support@eagleeyeos.com'><META NAME='copyright' CONTENT='EagleEyeOS(c) 2005, All Rights Reserved.'><meta http-equiv='imagetoolbar' content='no'>");
	ablak.document.write("</head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><a href='javascript:;'onclick='window.self.close();'><img src='"+bigSRC+"' width='920' height='650' border='0' alt='Click on the picture to close the window!'></a></body></html>");

	ablak.focus();
	ablak.document.close();
}
///////////////////////////////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////////////////////////

function showISO(language) {
	
	var ablak = window.open('','siteatwork','status=no,width=485,height=660,scrollbars=yes,resizable=yes');
	ablak.moveTo(10,10);
	
	ablak.document.open();
	ablak.document.write("<html><head>");
	ablak.document.write("<title>EagleEyeOS :: Organized Security :: EagleEyeOS ISO 9001:2000 Certificate</title>");
	ablak.document.write("<link rel='stylesheet' type='text/css' href='/style/eeos_common.css'>");
	ablak.document.write("<META content='EagleEyeOS data and file security software. Security logging and file monitoring solution.' name='description'><META content='Data Security, File Security, Security Logging and Audit, File monitoring, Software' name='keywords'><META content='Data Security, File Security, Monitoring Software' name='TITLE'><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-2'><meta http-equiv='Content-Language' content='en'><meta name='author' content='EagleEyeOS Development Team'><meta name='reply-to' content='support@eagleeyeos.com'><META NAME='copyright' CONTENT='EagleEyeOS(c) 2005, All Rights Reserved.'><meta http-equiv='imagetoolbar' content='no'>");
	if (language == "hu") {
		ablak.document.write("</head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><a href='javascript:;'onclick='window.self.close();'><img src='/gallery/REGULAR%20IMAGES/ISO/iso_big_hu.jpg' width='468' height='656' border='0' alt='Click on the picture to close the window!'></a></body></html>");
	} else {
		ablak.document.write("</head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><a href='javascript:;'onclick='window.self.close();'><img src='/gallery/REGULAR%20IMAGES/ISO/iso_big_en.jpg' width='468' height='656' border='0' alt='Click on the picture to close the window!'></a></body></html>");
	}

	ablak.focus();
	ablak.document.close();
}

///////////////////////////////////////////////////////////////////////////////////////////////////


function showLicMat() {
	var ablak = window.open('','LicMat','statusbar=no,width=920,height=677,scrollbars=yes,resizable=yes');
	
	ablak.document.open();
	ablak.document.write("<html><head>");
	ablak.document.write("<title>EagleEyeOS :: Organized Security :: License Matrix</title>");
	ablak.document.write("<link rel='stylesheet' type='text/css' href='/style/eeos_common.css'>");
	ablak.document.write("<META content='EagleEyeOS data and file security software. Security logging and file monitoring solution.' name='description'><META content='Data Security, File Security, Security Logging and Audit, File monitoring, Software' name='keywords'><META content='Data Security, File Security, Monitoring Software' name='TITLE'><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-2'><meta http-equiv='Content-Language' content='en'><meta name='author' content='EagleEyeOS Development Team'><meta name='reply-to' content='support@eagleeyeos.com'><META NAME='copyright' CONTENT='EagleEyeOS(c) 2005, All Rights Reserved.'><meta http-equiv='imagetoolbar' content='no'>");
	ablak.document.write("</head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><img src='/gallery/REGULAR%20IMAGES/License%20Matrix/license_matrix_big.gif' width='1659' height='1536' border='0'></body></html>");

	ablak.focus();
	
	ablak.document.close();
}

///////////////////////////////////////////////////////////////////////////////////////////////////

function openBrossure( obj, brosType ) {
	var fileNameBegin = "brossure/brossure_" + obj.options[obj.selectedIndex].value;
	if (brosType==1) {
		var fileName = fileNameBegin + ".pdf";
	} else {
		var fileName = fileNameBegin + ".swf";

	}
	if (fileName.search("null") == -1) {
		var ablak = window.open(fileName,'brossure','status=no,width=400,height=600,resizable=yes');
		ablak.focus();
	}
}

function showTutorial(obj) {
	switch (obj) {
		case 1:
			var tutUrl = "EEOS2x_FullInstall_Fst1.swf&wtitle=Full_Installation";
			break;
		case 2:
			var tutUrl = "EEOS2x_Register_Fst2.swf&wtitle=Register";
			break;
		case 3:
			var tutUrl = "EEOS2x_FirstLogin_Fst3.swf&wtitle=First_Login";
			break;
		case 4:
			var tutUrl = "EEOS2x_GetUpdate_Fst4.swf&wtitle=Update";
			break;
		case 5:
			var tutUrl = "EEOS_One_fullinstall_1.swf&wtitle=Installation";
			break;
		case 6:
			var tutUrl = "EEOS_One_Activate_5.swf&wtitle=Activation";
			break;
		case 7:
			var tutUrl = "EEOS_One_EmailSetup_3.swf&wtitle=Settings";
			break;
		case 8:
			var tutUrl = "EEOS_One_BlockEnable_2.swf&wtitle=Enable Devices";
			break;

	}
	tutUrl = "http://center.eagleeyeos.com/tutorial/tv.php?fn=" + tutUrl;
	window.open(tutUrl, 'Tutorial', 'satus=no, toolbar=no, width=800, height=536');
}

function setAllSearchSite( obj ) {
	
}

function switchPrintMode( obj ) {
 	if (obj == 1) {
		var noPrintDisp = "none";
		var yesPrintDisp = "";
		document.getElementById("printHistory").offsetParent.width = 600;
		document.getElementById("printContent").width = 560;
	} else {
		var noPrintDisp = "";
		var yesPrintDisp = "none";
	}
	document.getElementById('noPrint1').style.display =
	document.getElementById('noPrint2').style.display =
	document.getElementById('noPrint3').style.display =
	document.getElementById('noPrint4').style.display =
	document.getElementById('noPrint5').style.display = 
	document.getElementById('noPrint6').style.display =
	document.getElementById('noPrint7').style.display = noPrintDisp;
	document.getElementById('yesPrint1').style.display =
	document.getElementById('yesPrint2').style.display = yesPrintDisp;	
}
function switchCenterPrintMode( obj ) {
 	if (obj == 1) {
		var noPrintDisp = "none";
		var yesPrintDisp = "";
		document.getElementById("printHistory").offsetParent.width = 600;
		document.getElementById("printContent").width = 560;
	} else {
		var noPrintDisp = "";
		var yesPrintDisp = "none";
	}
	document.getElementById('noPrint1').style.display =
	document.getElementById('noPrint2').style.display =
	document.getElementById('noPrint3').style.display =
	document.getElementById('noPrint4').style.display =
	document.getElementById('noPrint5').style.display = 
	document.getElementById('noPrint6').style.display =
	document.getElementById('noPrint7').style.display = noPrintDisp;
	document.getElementById('yesPrint1').style.display =
	document.getElementById('yesPrint2').style.display = yesPrintDisp;	
}

function switchCenterPrintModeDebug( obj ) {
 	if (obj == 1) {
		var noPrintDisp = "none";
		var yesPrintDisp = "";
		document.getElementById("printHistory").offsetParent.width = 600;
		document.getElementById("printContent").width = 560;
	} else {
		var noPrintDisp = "";
		var yesPrintDisp = "none";
	}
	document.getElementById('noPrint1').style.display = noPrintDisp;
	document.getElementById('noPrint2').style.display = noPrintDisp;
	document.getElementById('noPrint3').style.display = noPrintDisp;
	document.getElementById('noPrint4').style.display = noPrintDisp;
	document.getElementById('noPrint5').style.display = noPrintDisp;
	document.getElementById('noPrint6').style.display = noPrintDisp;
	document.getElementById('noPrint7').style.display = noPrintDisp;
	document.getElementById('yesPrint1').style.display = yesPrintDisp;
	document.getElementById('yesPrint2').style.display = yesPrintDisp;	
}
function switchCenterFormsPrintMode( obj ) {
	if (obj == 1) {
		var noPrintDisp = "none";
		var yesPrintDisp = "";
		document.getElementById("printHistory").offsetParent.width = 600;
		document.getElementById("printContent").width = 560;
	} else {
		var noPrintDisp = "";
		var yesPrintDisp = "none";
	}
	document.getElementById('noPrint1').style.display = noPrintDisp;
	document.getElementById('noPrint2').style.display = noPrintDisp;
	document.getElementById('noPrint3').style.display = noPrintDisp;
	document.getElementById('noPrint4').style.display = noPrintDisp;
	document.getElementById('noPrint5').style.display = noPrintDisp;
	document.getElementById('noPrint6').style.display = noPrintDisp;
	document.getElementById('yesPrint1').style.display = yesPrintDisp;
	document.getElementById('yesPrint2').style.display = yesPrintDisp;
}
function normalView() {
	window.history.go(0);
}
function loadSelect(sourceSelectName, targetSelectName, titleMatch) {
	var targetSelectSI = 0;
	for (var a=0; a<document.getElementsByName(sourceSelectName)[0].options.length; a++) {
		if (titleMatch != "") {
			if (document.getElementById(titleMatch).innerText == document.getElementsByName(sourceSelectName)[0].options[a].text) {
				targetSelectSI = a;
			}
		}
		document.getElementById(targetSelectName).options[a] = new Option(document.getElementsByName(sourceSelectName)[0].options[a].text,document.getElementsByName(sourceSelectName)[0].options[a].text);
	}
	document.getElementById(targetSelectName).selectedIndex = targetSelectSI;
}

function loadSelect2(sourceSelectName, targetSelectName, titleMatch) {
	alert(document.getElementsByName(sourceSelectName) + " " + document.getElementById(targetSelectName) + " " + document.getElementById(titleMatch));
	var targetSelectSI = 0;
	for (var a=0; a<document.getElementsByName(sourceSelectName)[0].options.length; a++) {
		if (titleMatch != "") {
			if (document.getElementById(titleMatch).innerText == document.getElementsByName(sourceSelectName)[0].options[a].text) {
				targetSelectSI = a;
			}
		}
		document.getElementById(targetSelectName).options[a] = new Option(document.getElementsByName(sourceSelectName)[0].options[a].text,document.getElementsByName(sourceSelectName)[0].options[a].text);
	}
	document.getElementById(targetSelectName).selectedIndex = targetSelectSI;
}




function openDivOver(obj) {
	obj.className = "openDivOver"
}
function openDivOut(obj) {
	obj.className = "openDivOut"
}
function openDivOutWhite(obj) {
	obj.className = "openDivOutWhite"
}


function showSelectedBrochure( obj ) {
	if (obj.selectedIndex > 0) {
		if (obj.options[obj.selectedIndex].value.search(".swf")!= -1) {
			ablakUrl = obj.options[obj.selectedIndex].value.replace(".swf",".html");
		} else {
			ablakUrl = obj.options[obj.selectedIndex].value;
		}
		window.open(ablakUrl,"Brochure","width=600,height=400,resizable=1,menubar=0,status=1");
	}
}

function showFlashBrochure(ablakUrl) {
	window.open(ablakUrl,"Brochure","width=600,height=400,resizable=1,menubar=0,status=1");
}

// flash beillesztés innen //
function veletlen() {
	most = new Date();
	y = "" + most.getTime();
	y = y. charAt(y.length - 3)
	/* if (y < 3) {
		return 4;
	} else if (y > 2 && y < 6 ) {
		return 8;
	} else if (y > 5 && y < 8 ) {
		return 6;
	} else {
		return 7;
	} */
	/* if (y < 3) {
		return 9;
	} else if (y > 2 &&  y < 7) {
		return 9;
	} else {
		return 10;
	} */
	return 9;
}
function veletlenFlash() {
	most = new Date();
	y = "" + most.getTime();
	y = y. charAt(y.length - 3)
	/* if (y <= 4) {
		return "infosec_2007.swf";
	} else {
		return "eeos_pro_3_final_coming.swf";
	} */
	return "eeos_pro_3_beta_over.swf";
}
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function v2_3_arrived_DoFSCommand(command, args) {
	var v2_3_arrivedObj = isInternetExplorer ? document.all.v2_3_arrived : document.v2_3_arrived;
	//
	// Place your code here.
	//
	showFlashBrochure(args);
}
// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub v2_3_arrived_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call v2_3_arrived_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
// flash beillesztés innen //


function showBorder( obj ) {
	obj.rows[0].cells[0].style.borderBottomStyle = "solid";
	obj.rows[0].cells[0].style.borderBottomColor = "#d1d1d1";
	obj.rows[0].cells[0].style.borderBottomWidth = "1px";
}
function hideBorder( obj ) {
	obj.rows[0].cells[0].style.borderBottomColor = "#FFFFFF";
	
	if (document.getElementById("moreInfoBox") != null ) {
		document.getElementById("moreInfoBox").style.display = "none";
	}
}

function showRegInfo( obj ) { 
	document.getElementById("moreInfoBox").style.display = "";
	document.getElementById("moreInfoContainer").innerHTML = functionDesc[obj];
	document.getElementById("moreInfoTitle").innerHTML = functionTitle[obj] + ":";
}

var functionDesc = new Array();
var functionTitle = new Array();

var messageLinks = new Array();
var messageBody = new Array();
var messageType = new Array();

function showError() {
	if (document.getElementById('errorContainer').innerHTML.length > 0) {
		document.getElementById('errorDisplayBox').style.display = "";
		document.getElementById('errorDisplayer').innerHTML = document.getElementById('errorContainer').innerHTML;
	}
}

function submitForm( obj ) {
	if (window.event.keyCode == 13) {
		for (var a=0;a<obj.length;a++) {
			if (obj[a].id.search('btn_register') != -1) {
				obj[a].select();
			}
		}
	}
}

function checkFields(obj) {

	var params = "?";
	
	if (obj == 1) {
		params += "Email=" + document.getElementById('EmailCell').firstChild.value;
	}
	if (obj == 2) {
		params += "&screenname=" + document.getElementById('ScreenNameCell').firstChild.value;
	}
	
	window.frames[0].location = "/modules/CheckAvail.aspx" + params;
}

function backEvent() {
	var errorFlag = false;
	var errorFlagScreen = false;
	var hibaUzi = "";
	
	if (document.getElementById('EmailValid').value == 1 && document.location.href.search("Email")!=-1) {
		errorFlag = true;
		hibaUzi = "This e-mail address is already taken. Please choose another one!\n";
	} else if (document.getElementById('EmailValid').value == 2 && document.location.href.search("Email")!=-1) {
		errorFlag = true;
		hibaUzi = "The e-mail field is empty!!\n";
	} else if (document.getElementById('EmailValid').value == 3 && document.location.href.search("Email")!=-1) {
		errorFlag = true;
		hibaUzi = "Type mismatch in e-mail field!\n";
	}
	
	if ( document.getElementById('ScreenNameValid').value == 1 && document.location.href.search("screenname")!=-1 ) {
		errorFlagScreen = true;
		hibaUzi = "This screen name is already taken. Please choose another one!";
	} else if ( document.getElementById('ScreenNameValid').value == 2 && document.location.href.search("screenname")!=-1) {
		errorFlagScreen = true;
		hibaUzi = "The screen name field is empty!";
	} else if ( document.getElementById('ScreenNameValid').value == 3 && document.location.href.search("screenname")!=-1) {
		errorFlagScreen = true;
		hibaUzi = "Type mismatch in screen name field!";
	}


	if (errorFlag == true || errorFlagScreen == true) {
		if (document.location.href.search("screenname")!=-1) {
			parent.document.getElementById('checkHeader').innerHTML = "Screen Name:";
		} else if (document.location.href.search("Email")!=-1) {
			parent.document.getElementById('checkHeader').innerHTML = "E-mail:";
		}
		parent.document.getElementById('checkDisplayer').innerHTML = '<table border="0" cellpadding="0" cellspacing="2" class="errorTable"><tr><td valign="top"><img src="/gallery/DWT Pictures/regular/misc/bullet_error_on.gif" border="0" vspace="4" width="11" height="6"></td><td style="font-size:10px;color:red;text-align:justify">' + hibaUzi + '</td></tr></table>';
		parent.document.getElementById('checkDisplayBox').style.display = "";
		parent.document.getElementById('checkOkBox').style.display = "none";
	} else {
		
		if (document.location.href.search("screenname")!=-1) {
			parent.document.getElementById('checkOkTitle').innerHTML = "Screen Name:";
//			parent.document.getElementById('checkOkDesc').innerHTML = "There is no error in screen name field!";
		} else if (document.location.href.search("Email")!=-1) {
			parent.document.getElementById('checkOkTitle').innerHTML = "E-mail:";
// 			parent.document.getElementById('checkOkDesc').innerHTML = "There is no error in e-mail field!";
		}

		parent.document.getElementById('checkOkDesc').innerHTML = "OK";

		parent.document.getElementById('checkDisplayBox').style.display = "none";
		parent.document.getElementById('checkOkBox').style.display = "";
	}
	
	
}

function displaySuccessMessage() {
	var browseURL = document.location.href;
	var browseURLArray = browseURL.split("?")[1].split("=");
	var timeInterval = 5000;
	if (browseURLArray[0] == "MessageID" && browseURLArray[1]!='' && browseURLArray[1] == parseInt(browseURLArray[1]) && ( browseURLArray[1] > 0 && browseURLArray[1] < messageLinks.length)) {
		document.getElementById("successContainer").innerHTML = messageBody[browseURLArray[1]];
		if (browseURLArray[1] == 1) {
			document.getElementById("successContainer").innerHTML += "<br><br><hr size='1' color='#d1d1d1'><br><div style='text-align:justify;'>PLEASE NOTE: Some customers have anti-spam software that employs 'Auto-response' or 'Challenge' methods to block unwanted e-mail. Our e-mail system does not work with these methods of blocking spam. We have received some customer feedback that our e-mail replies were caught in spam filters. If you do not receive an email from EagleEyeOS within couple of minutes, please check your spam folders or contact your e-mail administrator on this issue.<br><br>The IP addresses listed below should be included in your company's whitelist. Please contact your e-mail administrator regarding this information.<br><br>195.228.45.172<br>195.228.75.10<br>195.228.75.11</div>";
			timeInterval = 30000;
		}
		document.getElementById("successBox").style.display = "";
		if (messageType[browseURLArray[1]] == "Error") {
			document.getElementById("successContainer").className = "messageBoxError"
		} else {
			document.getElementById("successContainer").className = "messageBox"
		}
		var valtozo = setTimeout("jumpToURL(" + browseURLArray[1] + ")", timeInterval);
	} else {
		jumpToURL(1);
	}
}

function jumpToURL(obj) {
	document.location.href = messageLinks[obj];
}

function setNewPublisherState( obj ) {
	if (obj.selectedIndex == 1) {
		document.getElementById('newPublisherContainer').firstChild.readOnly = false;
		document.getElementById('newPublisherContainer').firstChild.disabled = false;
		document.getElementById('newPublisherContainer').firstChild.focus();
		document.getElementById('newPublisherContainer').firstChild.className = "formText";
	} else {
		document.getElementById('newPublisherContainer').firstChild.readOnly = true;
		document.getElementById('newPublisherContainer').firstChild.disabled = true;
		document.getElementById('newPublisherContainer').firstChild.className = "formTextDisabled";
	}
}
function newPublisherEnter( obj ) {
}
function tutorialViewer(ojjekt,tutobj)
{
    window.open('http://center.eagleeyeos.com/tutorial/tv.php?fn='+ojjekt+'&wtitle='+tutobj, 'Tutorial', 'satus=no, toolbar=no, width=800, height=536');
}

function toggleForestDescRow( obj ) {
	if (document.getElementById(obj).style.display == "none") {
		document.getElementById(obj).style.display = "";
	} else {
		document.getElementById(obj).style.display = "none";
	}
}

function positionResFilter() {
	// alert (document.getElementById(''));
}

function showMyAcc() {
	if (document.getElementById('myAccRow') && showFlag == true) {
		document.getElementById('myAccRow').style.display = "";
	}
}
var partnerLinkTomb = new Array();
function showAllPartners() {
	for (a=0;a<partnerLinkTomb.length;a++ ) {
		document.getElementById(partnerLinkTomb[a]).style.fontWeight = "normal";
	}
	document.getElementById('partner1').style.display = "none";
	document.getElementById('partner4').style.display = "";
	document.getElementById('allPartnerRow1').style.display = "none";
}

var scrollTimer;

function scrolling( obj ) {
	scrollTimer = setInterval("window.frames[0].scrollBy(0,"+obj+")",10);
}
function stopScroll() {
	clearInterval (scrollTimer)
	scrollTimer = "";
}

function showProBetaPicture(objURL, objWIDTH, objHEIGHT) {
	var ablak = window.open('','BetaPic','statusbar=no,width='+objWIDTH+',height='+objHEIGHT+',scrollbars=no,resizable=no');
	
	ablak.document.open();
	ablak.document.write("<html><head>");
	ablak.document.write("<title>EagleEyeOS :: Organized Security :: Professional v3.Beta Screenshot</title>");
	ablak.document.write("<link rel='stylesheet' type='text/css' href='/style/eeos_common.css'>");
	ablak.document.write("<META content='EagleEyeOS data and file security software. Security logging and file monitoring solution.' name='description'><META content='Data Security, File Security, Security Logging and Audit, File monitoring, Software' name='keywords'><META content='Data Security, File Security, Monitoring Software' name='TITLE'><meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-2'><meta http-equiv='Content-Language' content='en'><meta name='author' content='EagleEyeOS Development Team'><meta name='reply-to' content='support@eagleeyeos.com'><META NAME='copyright' CONTENT='EagleEyeOS(c) 2005, All Rights Reserved.'><meta http-equiv='imagetoolbar' content='no'>");
	ablak.document.write("</head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'><a href='javascript:;' onclick='window.self.close();'><img src='/products/images/" + objURL + "' border='0' alt='Click here to close!''></a></body></html>");

	ablak.focus();
	ablak.document.close();
}
function toggleFeatureMoreInfo(obj) {
	var nextElement = obj.parentNode.parentNode.parentNode.nextSibling
	if (nextElement.style.display == "none")
	{
		nextElement.style.display = "";
	}
	else
	{
		nextElement.style.display = "none";
	}
}

function beginDownload() {
	var objFrame = document.getElementById("downloadFrame");
	var prodNameH2 = document.getElementById("productName");
	var prodLink = document.getElementById("productLink");
	var brandName = "EagleEyeOS&trade;";
	var urlParam = new String();
	urlParam = document.location.search;
	if (objFrame != null && (urlParam != "")) {
		
		urlParam = parseInt( urlParam.split("=")[1] );
		switch (urlParam) {
			case 417:
			case 418:
			case 419:
			case 420:
			case 421:
			case 422:
			case 423:
			case 424:
				switch (urlParam) {
					case 417: //one
						prodNameH2.innerHTML = brandName + " Professional v3.1-hotfix-0";
						break;
					case 418: //pro
						prodNameH2.innerHTML = brandName + " One v3.0-hotfix-1";
						break;
					case 419: //viewer
						prodNameH2.innerHTML = brandName + " Viewer v1.0-hotfix-1";
						break;
					case 420:
						prodNameH2.innerHTML = brandName + " Easy Folder Protection v1.0-hotfix-0";
						break;
					case 421:
						prodNameH2.innerHTML = brandName + " Easy Quarantine v1.0-hotfix-0";
						break;
					case 422:
						prodNameH2.innerHTML = brandName + " Easy Zone v1.0-hotfix-0";
						break;
					case 423:
						prodNameH2.innerHTML = brandName + " Dispatcher v1.0-hotfix-0";
						break;
					case 424:
						prodNameH2.innerHTML = brandName + " Merger v1.0-hotfix-0";
						break;
				}
				prodLink.href = "http://fly.eagleeyeos.com/?HostID=" + urlParam;
				document.getElementById("productPanel"+urlParam).style.display = "";
				document.getElementById("loadingPanel").style.display = "none";
				//
				// To-do: kiszedni a kommentezest innen elesites elott.
				//
				objFrame.src = "http://fly.eagleeyeos.com/?HostID=" + urlParam;
				objFrame.onload = frameloaded;
				//
				break;
			default:
				redirectToOpen();
				break;
		}
	} else {
		redirectToOpen();
	}
}
function frameloaded() {
	// alert("juhhúú, betöltve");
}
function redirectToOpen() {
	document.location.href = "http://fly.eagleeyeos.com/?HostID=5";
}

function setLanguageElements() {
    // Baloldali navigációt lefordító rész innen
	var naviCont = document.getElementById("leftNavigation")
	var naviTempId = 0;
	for (var a=0;a<naviCont.childNodes.length;a++) {
		if (naviCont.childNodes[a].nodeName == "DIV") {
			naviTempId = a;
			break;
		}
	}
	if (naviCont.childNodes[naviTempId].nodeName == "DIV" ) {
		if (naviCont.childNodes[naviTempId].firstChild.rows[0].cells[1].firstChild.innerHTML.search("Up") != -1) {
			naviCont.childNodes[naviTempId].firstChild.rows[0].cells[1].firstChild.innerHTML = "&laquo;- Vissza";
		}
	}
	// Baloldali navigációt lefordító rész idáig
}