function limitText(textArea, length) {
  if (textArea.value.length > length) {
	  textArea.value = textArea.value.substr(0,length);
  }
}
function clearBox(e){
  if(e.value == e.id){
	  e.value = "";
	  e.style.color = '#FFF';
  }
}
function fillBox(e){
  if(e.value == ""){
	  e.value = e.id;
	  e.style.color = '#777';
  }
}
var m8x = '.co.uk';
var kx5 = 'oddvalue';
var c6k = 'info';
function doe(){
	document.write('[<'+'a href="mailto:'+c6k+'@'+kx5+m8x+'" title="'+c6k+'@'+kx5+m8x+'">'+c6k+'@'+kx5+m8x+'</'+'a>]');
}
function onKonamiCode(fn) {
    var codes = (function(){
            var c = [38,38,40,40,37,39,37,39,66,65];
            onKonamiCode.requireEnterKey && c.push(13);
            return c;
        })(),
        expecting = function(){
            expecting.codes = expecting.codes || Array.apply({}, codes);
            expecting.reset = function() { expecting.codes = null; };
            return expecting.codes;
        },
        handler = function(e) {
            if (expecting()[0] == (e||window.event).keyCode) {
                expecting().shift();
                if (!expecting().length) {
                    expecting.reset();
                    fn();
                }
            } else { expecting.reset(); }
        };
    window.addEventListener ?
        window.addEventListener('keydown', handler, false)
        : document.attachEvent('onkeydown', handler);
}
	onKonamiCode.requireEnterKey = false; // True/false
	onKonamiCode(function(){
		window.location = '/konami/';
	});

