$(document).ready(function() {	var serialForm = $('#serialForm');	$('#serialForm').children().each(function() {		var elementName = this.name;			if(elementName.indexOf("serial")>=0) {		//	alert(this.name);					var ob = $('#' + elementName);			var prevElement = ob.prev();			var nextElement = ob.next();		//	alert(nextElement.attr("name"));						var goback = false;						ob.keydown(function(event) {				if(!event) event = window.event;			//	alert(this.value.length);				if(this.value.length==0) {					goback = true;				//	alert(this.value.length);				}			});					ob.keyup(function(event) {				if(!event) event = window.event;				if(event.keyCode == 8 && goback==true) {//this.value.length==0) {					prevElement.focus();					return false;				} 				else if (event.keyCode == 13 && $('#jconfBox').length==0) {					//alert("Smuzzio");					SendForm("#serialForm", "orderLockbee.php?reset=true&subPage=licenseData");				}							if(this.value.length>3) {					nextElement.focus();					nextElement.val("");				}								goback = false;			});					}	});        $('#infoBox ul').children().each(function(index,value) {       var elementName = this.name;       var i = parseInt(index) +1;     //  alert(i);     //  alert(elem.name);                $(this).click(function() {            var txt = $('#splash_info_' + i).html();                       MyOwnAlert(txt);        });                $(this).hover(function() {            $(this).css('cursor', 'pointer');            $(this).addClass("splash_itm_red");            $(this).append($("<div class='splash_itm_arrow'></div>"));        //   $(this).append($("<span> ***</span>"));        },         function () {           $(this).find("div:last").remove();           $(this).removeClass("splash_itm_red");        });    });});function CheckLimit () {    var args = CheckLimit.arguments;	var e = args[1];        if(!e) e = window.event;	if (e.keyCode == 13) {	  //alert("TEST!");    }}
