<!--
//- submitButton.js
//- This function changes button state on mouseover event
function ChangeButtonState(btn,state,isrc)	{
		var len = btn.src.length;
		var iid = btn.src.substring((len-5),(len-4));
		if((iid == '0') && (state=='over'))	{btn.src=isrc;}
		if((iid == '0') && (state=='out'))	{btn.src=isrc;}
		if((iid == '0') && (state=='down'))	{btn.src=isrc;}
							
		if((iid == '1') && (state=='over'))	{btn.src=isrc;}
		if((iid == '1') && (state=='out'))	{btn.src=isrc;}
		if((iid == '1') && (state=='down'))	{btn.src=isrc;}
							
		if((iid == '2') && (state=='over'))	{}
		if((iid == '2') && (state=='out'))	{}
		if((iid == '2') && (state=='down'))	{}
	}


//- newWindow.js
//= this function opens a new, pre-sized centered window
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


//- tabNext.js
//- this function tabs to the next field
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;
}


function submit() {
	document.myForm.submit();
	}
//-->
