
//+ Jonas Raoni Soares Silva
//@ http://jsfromhell.com/string/rot13 [rev. #1]

String.prototype.rot13 = function(){
	return this.replace(/[a-zA-Z]/g, function(c){
	return String.fromCharCode((c <= "Z" ? 90 : 122) >= (c = c.charCodeAt(0) + 13) ? c : c - 26);
	});
};







function makeItSo() {
	var location;
	var password=this.document.sendform.inputbox.value;
        var arrPasswords = ["invent34", "steven", "david",    "jaume"];
        
        if( jQuery.inArray(password, arrPasswords) == -1 )
        {
            alert ("Wrong password.");
            sendform.inputbox.focus();
            return;
        }
            

	if (password == "") {
		alert ("Please enter a password.");
		sendform.inputbox.focus();
		return;
	}
        
        

	zDir = "capek";

	//s = zDir;
	//r = s.rot13();
	//alert(r);

	
        location= zDir + "/invent.shtml";
	window.location.href = location;
}
		

