// JavaScript Document
function ShowProgress()
{
  strAppVersion = navigator.appVersion;
  if (document.MyForm.FILE1.value != "" || document.MyForm.FILE2.value != "" || document.MyForm.FILE3.value != "")
  {
    if (strAppVersion.indexOf('MSIE') != -1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1) > 4)
    {
      winstyle = "dialogWidth=385px; dialogHeight:140px; center:yes";
      window.showModelessDialog('<% = barref %>&b=IE',null,winstyle);
    }
    else
    {
      window.open('<% = barref %>&b=NN','','width=375,height=115', true);
    }
  }
  return true;
}
	
var validKey = false;
function checkKeys(e, whom, totalLen, nextid){

	if( !e ) {
	//if the browser did not pass the event information to the
	//function, we will have to obtain it from the event register
	if( window.event ) {
	  //Internet Explorer
	  e = window.event;
	} else {
	  //total failure, we have no way of referencing the event
	  return;
	}
  }
  if( typeof( e.keyCode ) == 'number'  ) {
	//DOM
	e = e.keyCode;
  } else if( typeof( e.which ) == 'number' ) {
	//NS 4 compatible
	e = e.which;
  } else if( typeof( e.charCode ) == 'number'  ) {
	//also NS 6+, Mozilla 0.9+
	e = e.charCode;
  } else {
	//total failure, we have no way of obtaining the key code
	e='';
	//return true;
  }
  
  key = e;
  validKey = false;
  
  //check number keys and NUM pad
  if( (key >= 48 && key<=57) || (key >= 96 && key<=105) ){
	validKey=true;
		return true;
	}
	
	if( key == 8 ) //delete allowed
		return true;
	
	if( key == 9 ) //tab allowed
		return true;
	
	return false;
}


function checkJump(whom, totalLen, nextid){
		if( validKey && whom.value.length >= totalLen){
			document.getElementById(nextid).focus();
			document.getElementById(nextid).select();
			validKey = false;
		}
}

//end checking functions

