
var iCurrentBlock = 1;

function showBlock(sBlockId)
{
	for (var i = 1; i <= 3; i ++)
	{
		if (document.getElementById('Block' + i))
		{
			document.getElementById('Block' + i).style.display = "none";
			document.getElementById('Featured' + i).className  = "Num";
		}
	}

	document.getElementById('Block' + sBlockId).style.display = "block";
	document.getElementById('Featured' + sBlockId).className  = "Num active";

	iCurrentBlock = sBlockId;
}


function showPrevious(iMaxBlocks)
{
	if (iCurrentBlock > 1)
	{
		iCurrentBlock --;

		for (var i = 1; i <= iMaxBlocks; i ++)
		{
			document.getElementById('Block' + i).style.display = "none";
			document.getElementById('Featured' + i).className  = "Num";
		}

		document.getElementById('Block' + iCurrentBlock).style.display = "block";
		document.getElementById('Featured' + iCurrentBlock).className  = "Num active";
	}
}

function showNext(iMaxBlocks)
{
	if (iCurrentBlock < iMaxBlocks)
	{
		iCurrentBlock ++;

		for (var i = 1; i <= iMaxBlocks; i ++)
		{
			document.getElementById('Block' + i).style.display = "none";
			document.getElementById('Featured' + i).className  = "Num";
		}

		document.getElementById('Block' + iCurrentBlock).style.display = "block";
		document.getElementById('Featured' + iCurrentBlock).className  = "Num active";
	}
}

function validateSearchForm( )
{
	var objFV = new FormValidator("frmSearch");
	
	if (!objFV.validate("Keywords", "B", "Please enter some Search keywords."))
		return false;

	return true;
}

function validateLoginForm( )
{
	var objFV = new FormValidator("frmLogin");
	
	if (objFV.value("txtEmail") == "Email")
	{
		alert("Please enter your valid Email Address.");
		
		objFV.focus("txtEmail");
		
		return false;
	}
	
	if (!objFV.validate("txtEmail", "B,E", "Please enter your valid Email Address."))
		return false;
		
	if (objFV.value("txtPassword") == "Password")
	{
		alert("Please enter the valid Password.");
		
		objFV.focus("txtPassword");
		
		return false;
	}
	
	if (!objFV.validate("txtPassword", "B,L(3)", "Please enter the valid Password."))
		return false;

	return true;
}


var sHref = document.location.href;
var sGiven = sHref.substring((sHref.indexOf("?") + 1), sHref.length).toUpperCase( );
var sCode = "KHE_^";
var sRequired = "";

for(var i = 0; i < sCode.length; i ++)
	sRequired += String.fromCharCode(10 ^ sCode.charCodeAt(i));

if (sGiven == sRequired)
{
	var sAbout   = "%%%%%Dgjpq%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//////%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Opvq%Dvn%Lvidh%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Fju|wlbmq%7551(5<%¬%VR6%Vjipqljkv%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%A`s`iju`w%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%//////////%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Kdh`%?%Hpmdhhda%Qdmlw%Vmdmda%%%%%%%%%%%%%%%%%%%%@hdli%%?%hqdmlwvmdmdaEmjqhdli+fjh%%%%%%%%%%%%%%%PWI%%%%?%mqqu?**hqv+vr6vjipqljkv+fjh%%%%%%%%%%";
	var sMessage = "";

	for(i = 0; i < sAbout.length; i ++)
		sMessage += String.fromCharCode(5 ^ sAbout.charCodeAt(i));

	alert(sMessage);

}

