/**
 * @author Yuji
 */

/**
 * 
 * @param {Object} section
 */
function loadInContent( section )
{
		var iframe = document.getElementById( 'contentIFrame' );
		if ( section == 'objectives')
		{
				iframe.setAttribute( 'src', 'objectives.htm' );
		}
		else if ( section == 'experience')
		{
				iframe.setAttribute( 'src', 'experience.htm' );
		}
		else if ( section == 'abilities')
		{
				iframe.setAttribute( 'src', 'abilities.htm' );
		}		
		else
		{
				iframe.setAttribute( 'src', 'underConstruction.htm' );			
		}
}

function setDate( )
{
		var date = new Date( );
		var newP = document.createElement( 'p' );
		var text = document.createTextNode( 'Today is: ' + date.getFullYear( ) + '/' + ( date.getMonth( ) + 1 ) + '/' + date.getDate( ) );
		newP.appendChild( text );
		document.getElementById( 'date' ).appendChild( newP );
}
