var f = document.forms[0];function doExpandAllButton() {	var f = document.forms[0];		for( i = 1; i <= parseInt(f.NumSections.value); i++ ) {		var section = "Section" + i;		eval( "f.ShowSection" + i + ".value = 'Yes'" );			eval( section + ".style.display=\"inline\"" );			eval( "document." + section + "_Twist.src = twistOpen.src" );		}}function doCollapseAllButton() {	var f = document.forms[0];		for( i = 1; i <= parseInt(f.NumSections.value); i++ ) {		var section = "Section" + i;		eval( "f.ShowSection" + i + ".value = \"\"");			eval( section + ".style.display=\"none\"" );			eval( "document." + section + "_Twist.src = twistClosed.src" );		}}function doExitButton(){	location.href = document.forms[0].LastLocation.value}	function doEditButton(){	location.href = docPath + document.forms[0].DocID.value + "?EditDocument"}	function showHideSection(){	var f = document.forms[0];	window.event.cancelBubble = true;   	var srcElement = window.event.srcElement;   	var strEName = srcElement.name;   	var pos = strEName.indexOf( "_" );   	var section = strEName.substring( 0, pos);	//srcElement.src = eval( toImage + '.src');	var dispState = eval( section + ".style.display" );   	if( dispState == "none" ) {		eval( section + ".style.display = 'inline'");		eval( "f." + "Show" + section + ".value = \"Yes\"");	} else {		eval( section + ".style.display = 'none'");		eval( "f." + "Show" + section + ".value = \"\"");	}	if( srcElement.src.indexOf( "Closed" ) != -1 ) {		srcElement.src = twistOpen.src	} else {		srcElement.src = twistClosed.src		}}function loadTwisties(){	// get the action button images	if (document.images) {		twistClosed = new Image();		twistClosed.src =  dbPath + "/twistieClosed.gif?OpenImageResource";		twistOpen = new Image();		twistOpen.src =  dbPath + "/twistieOpen.gif?OpenImageResource";	}	if(f.IsNewDocument.value != "Yes") {		for( i = 1; i <= parseInt(f.NumSections.value); i++ ) {			var section = "Section" + i;			var sectVal = eval( "f.ShowSection" + i + ".value" );			if (sectVal == ""){				eval( section + ".style.display=\"none\"" );				eval( "document." + section + "_Twist.src = twistClosed.src" );				}		}	}}function onLoadFormCommon(){	loadTwisties();}