function writeNavigation() {
	var f        = document.forms[0];
	var fn       = ( f != null || f != '' || f != 'undefined' ) ? f.id : '';
	var delim    = '|';
	var htmlOut  = '';
	var navItems = new Array( 'default.html|home', 'biography.html|biography', 'email.asp|email', 'performances.html|performances', 'compositions.asp|compositions' ); //, 'downloads.html|downloads' );	
	for( var i = 0; i < navItems.length; i++ ) {
		htmlOut = "<a href='" + navItems[i].split(delim)[0] + "'";	
		if( !(fn == '') ) {
			if( fn == navItems[i].split(delim)[0] ) {
				htmlOut += " id='sel' "; 				
			}
		}
		htmlOut += " onmouseover='return onMouseOverWindowStatus( &quot;" + navItems[i].split(delim)[1] + "&quot; );' "
		        +  " onmouseout='return onMouseOverWindowStatus( &quot;&quot; );' "
		        +  ">" + navItems[i].split(delim)[1] + "</a>";
		document.writeln( htmlOut );
		if( i < navItems.length - 1 ) {
			document.writeln( "&nbsp;<span class='sp'>|</span>&nbsp;" );
		} else {
			document.writeln( "&nbsp;" );
		}
		htmlOut = '';
	}
} // writeNavigation
function onMouseOverWindowStatus( displayText ) {
	window.onerror = null;
	window.status = displayText;
	return true;	
} // onMouseOverWindowStatus
function onSubmitEmail() {	
	var tmpElem;
	if( tmpElem = eval("document.forms[0].elements['txtReturnEmail']") ) {
		if( tmpElem.value.length == 0 ) {		
			var msg = 'The return email address field is required.\n'
				    + 'Please enter a valid return email address to continue.';
			alert( msg );
			tmpElem.focus();
			return false;		
		}		
	}
	if( tmpElem = eval("document.forms[0].elements['txtBody']") ) {
		if( tmpElem.value.length == 0 ) {		
			var msg = 'The message field is required.\n'
				    + 'Please enter a message to continue.';
			alert( msg );
			tmpElem.focus();
			return false;		
		}			
	}
	return true;
} // onSubmitEmail
function setFocus( fieldName ) {
	if( !(fieldName == '') ) {
		var tmpElem; 
		if( tmpElem = eval("document.forms[0].elements['" + fieldName + "']") ) { 
			tmpElem.focus(); 
		}
	}
} // setFocus
function select_OnClick(obj)
{
    window.location.href = 'compositions.asp?sort=' + obj.value;
    document.submit();
}