function formFocus () {
	if ( this . value == formText [ this . order ] ) {
		this . value = '' ;
	}
	this . style . color = '#454547' ;
}

function formBlur () {
	if ( this . value == '' ) {
		this . value = formText [ this . order ] ;
	}
	this . style . color = '#F3A352' ;
}

function initFormFocusBlur () {
	forms = document . getElementsByTagName ( 'form' ) ;
	for ( i = 0 ; i < forms . length ; i ++ ) {
		if ( forms [ i ] . className . indexOf ( 'focusblur' ) > -1 ) {
			for ( j = 0 ; j < forms [ i ] . elements . length ; j ++ ) {
				if ( ( forms [ i ] . elements [ j ] . type == 'text' ) || ( forms [ i ] . elements [ j ] . tagName == 'textarea' ) ) {
					forms [ i ] . elements [ j ] . order = i + j ;
					formText [ i + j ] = forms [ i ] . elements [ j ] . value ;
					forms [ i ] . elements [ j ] . onfocus = formFocus ;
					forms [ i ] . elements [ j ] . onblur = formBlur ;
				}
			}
		}
	}
}

var forms = new Array ;
var formText = new Array ;