function $(id){	return document.getElementById(id);}$('digit1').focus();$('digit1').onkeypress = keyPressed;setInterval("checkDigits()", 10);var done = false;function checkDigits(){	if (!done)	{		if (($('digit1').value).length != 1 || !is_numeric($('digit1').value))		{			$('digit1').select();			$('digit1').focus();		}		else if (($('digit2').value).length != 1 || !is_numeric($('digit2').value))		{			$('digit2').select();			$('digit2').focus();		}		else if (($('digit3').value).length != 1 || !is_numeric($('digit3').value))		{			$('digit3').select();			$('digit3').focus();		}		else if (($('digit4').value).length != 1 || !is_numeric($('digit4').value))		{			$('digit4').select();			$('digit4').focus();		}		else		{			done = true;						//$('code_entry').style.display = 'none';			//$('loading_bar').style.display = 'block';			//$('padder').style.display = 'block';						$('code_field').value = $('digit1').value + $('digit2').value + $('digit3').value + $('digit4').value;						$('code_form').submit();		}	}}function keyPressed(e){	if (e.target == $('digit1'))	{		//alert(e.keyCode);	}}function is_numeric(input)
{
   return (input - 0) == input && input.length > 0;
}
