var tacStatus = ":: Powered by SMTŪ. ::";
var tacSite = "";
var tacPowered = "powered";
function canRun(theForm)
{
	if (self.status == tacStatus)
		if (document.all(tacPowered).title == tacSite)
			return true;
	return false;
}

function Encrypt(theText, thePower) {
  // thePower must be atleast 10
  // Can encrypt all chars : 33~126
  output = new String;
  Temp = new Array();
  Temp2 = new Array();
  tempstr = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  TextSize = 20;
  for (i = 0; i < TextSize; i++) {
	rnd = Math.round(Math.random() * 4);
	if (i < theText.length)
	  Temp[i] = theText.charCodeAt(i) + rnd;
	else
	  Temp[i] = tempstr.charCodeAt(Math.round(Math.random() * (tempstr.length-1)));
	Temp2[i] = rnd + i + thePower + 60 - 10;
  }
  for (i = 0; i < TextSize; i++) {
	if (i == 0)
	  output = String.fromCharCode(theText.length + 60 + thePower);
	output += String.fromCharCode(Temp[i]);
	output += String.fromCharCode(Temp2[i]);
  }
  return output;
}

