window.addEvent('domready', function() {

			// if on search results page, allow last search to show up

			if( $('roi_input').getProperty( 'value' ) == '' ) {
				$('roi_input').setProperty( 'value', 'Search' );
			}

			// if field has default text ( "Search" ) - change to blank 
			$('roi_input').addEvent('focus', function(){
				if( $('roi_input').getProperty( 'value' ) == 'Search' ) {
					$('roi_input').setProperty( 'value', '' );	
				}
			});

			// if field has been modified, don't swap back to "Search" on blur
			$('roi_input').addEvent('blur', function(){
				if( $('roi_input').getProperty( 'value' ) == '' ) {
					$('roi_input').setProperty( 'value', 'Search' );
				}				
			});
			
			if( testForObject('userID') ){
				if( $('userID').getProperty( 'value' ) == '' ) {
					$('userID').setProperty( 'value', 'User ID' );
				}
				
				$('userID').addEvent('focus', function(){
					if( $('userID').getProperty( 'value' ) == 'User ID' ) {
						$('userID').setProperty( 'value', '' );	
					}
				});
				
				$('userID').addEvent('blur', function(){
					if( $('userID').getProperty( 'value' ) == '' ) {
						$('userID').setProperty( 'value', 'User ID' );
					}				
				});
			}
});

function testForObject(Id)
{
  	var o = document.getElementById(Id);
  	if (o)
  	{
 		return true;
  	}
	return false;
}