//---------------------------------------------------------------------------
// go to the next screen
//---------------------------------------------------------------------------

function nextScreen() {
	var ns4 = ( document.layers ) ? true : false;

	if ( ns4 == false ) {
		document.getElementById("bodyDiv").innerHTML='<font color="red" size="3"><strong>Please wait...</strong></font>';
	} // end if
	
	document.Maintain.Next.value = 'Next';
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the previous screen
//---------------------------------------------------------------------------

function prevScreen() {
	var ns4 = ( document.layers ) ? true : false;

	if ( ns4 == false ) {
		document.getElementById("bodyDiv").innerHTML='<font color="red" size="3"><strong>Please wait...</strong></font>';
	} // end if
	
	document.Maintain.Prev.value = 'Prev';
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the create screen
//---------------------------------------------------------------------------

function gotoCreate() {
	document.Maintain.Create.value = 'Create';
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the compare screen
//---------------------------------------------------------------------------

function gotoCompare( index ) {
	document.Maintain.Compare.value      = 'Compare';
	document.Maintain.CompareIndex.value = index;
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the compare step
//---------------------------------------------------------------------------

function gotoCompareStep( step ) {
	document.Maintain.CompareStep.value = 'CompareStep';
	document.Maintain.FactorStep.value  = step;
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the importance screen
//---------------------------------------------------------------------------

function gotoImportance() {
	document.Maintain.Importance.value = 'Importance';
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// go to the recommend screen
//---------------------------------------------------------------------------

function gotoRecommend() {
	document.Maintain.Recommend.value = 'Recommend';
	
	document.Maintain.submit();
}

//---------------------------------------------------------------------------
// open the legal window
//---------------------------------------------------------------------------

function openLegalWindow( url ) {
	var windowName = 'LegalWindow';
	
	var handle = window.open( url, windowName, 'width=400,height=100,toolbar=no,resizable=no,scrollbars=yes' );
}
