//<!---


function popForm(url) {
   winStats='toolbar=no,location=no,directories=no,menubar=no,'
   winStats+='scrollbars=no,width=400,height=500'
   if (navigator.appName.indexOf("Microsoft")>=0) {
      winStats+=',left=100,top=50'
    }else{
      winStats+=',screenX=100,screenY=50'
    }
   teaseWin=window.open(url,"",winStats)
}

function openVideo(vidPath) {
	var launchPath = '/video.cfm?vidPath='+vidPath;
	var n=open(launchPath,'Video','toolbar=no,directories=no,status=no,menubar=no,scrolling=no,scrollbars=no,resizable=no,width=360,height=320,top=20,left=20');
}

function openPresentation() {
	var n=window.open('/presentation.cfm','Presentation','toolbar=no,directories=no,status=no,menubar=no,scrolling=no,scrollbars=no,resizable=no,width=770,height=505,top=10,left=10');
	n.focus();
}

//auto jump form fields
var downStrokeField;
function autojump(fieldName,nextFieldName,fakeMaxLength)
{
var myForm=document.forms[document.forms.length - 1];
var myField=myForm.elements[fieldName];
myField.nextField=myForm.elements[nextFieldName];

if (myField.maxLength == null)
   myField.maxLength=fakeMaxLength;

myField.onkeydown=autojump_keyDown;
myField.onkeyup=autojump_keyUp;
}

function autojump_keyDown()
{
this.beforeLength=this.value.length;
downStrokeField=this;
}

function autojump_keyUp()
{
if (
   (this == downStrokeField) && 
   (this.value.length > this.beforeLength) && 
   (this.value.length >= this.maxLength)
   )
   this.nextField.focus();
downStrokeField=null;
}
//--->

