<!--
function OpenWindow( url, width, height, options, name ) {
	if ( ! width ) width = 600;
	if ( ! height ) height = 400;
	if ( ! options ) options = "scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
	if ( ! name ) name = "outsideSiteWindow";

	var newWin = window.open( url, name, "width=" + width + ",height=" + height + "," + options );
	}

function OpenChiclet(url,title) {
	window.open(url,title,"toolbar=false location=false  status=false");
}

function SubmitChanges()
{
	document.form1.change.value="yes";
	document.form1.submit();
}

function ResetLeft()
{
	document.form1.change.value="yes";
	document.form1.resetleft.value="yes";
	document.form1.submit();
}
function ResetRight()
{
	document.form1.change.value="yes";
	document.form1.resetright.value="yes";
	document.form1.submit();
}

function autoTab(input, len, e) 
{	var isNN = ( navigator.appName.indexOf("Netscape") != -1 );
    var keyCode	= (isNN) ? e.which : e.keyCode ; 
	var filter	= (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46] ;
	if( input.value.length >= len && !containsElement(filter, keyCode) ) 
	{	input.value = input.value.slice(0, len) ;
		input.form[(getIndex( input ) + 1) % input.form.length].focus() ;
	}
	return true;
}

function containsElement(arr, ele) 
{	var found = false
	var index = 0;
	while( !found && index < arr.length )
	if( arr[index] == ele )
		found = true ;
	else
		index++;
	return found;
}

function getIndex(input) 
{	var index = -1
	var i = 0
	var found = false ;
	while( i < input.form.length && index == -1 )
	if( input.form[i] == input)
		index = i ;
	else 
		i++;
	return index;
}

//-->