﻿
function Obfuscation()
{
	this.source = "";
	this.result = "";
	this.error = "";

	this.obfuscate = Obfuscation_obfuscate;
}

function Obfuscation_obfuscate()
{
	if (null == this.source || "undefined" == typeof(this.source) || "" == this.source)
	{
		this.error = "you must first put the JavaScript into the source property";
		return false;
	}

	var stringSource = this.source;
	var pos = 0;
	
	var regexp = new RegExp(/^var /);
	var ar = regexp.exec(stringSource);

	alert(stringSource.substring(ar.index));
}


