function clearDefault( input, defaultValue ) {
	if( input.value == defaultValue ) {
		input.value	= "";
	}
}

function setDefault( input, defaultValue ) {
	if( input.value == "" ) {
		input.value	= defaultValue;
	}
}

function allowedKeyCombos( evt ) {
	// TODO: Add in a chek for allowed key combos like cmd+A, ctrl+A...
	return false;
}

function isNumber( evt ) {
	valid		= true;
	if( allowedKeyCombos( evt ) ) {
		valid	= true;
	} else if( evt.which || ( evt.which != 0 && evt.charCode != 0 ) ) {
		var charCode	= ( evt.which ) ? evt.which : event.keyCode;
		if( charCode > 31 && ( charCode < 48 || charCode > 57 ) ) {
			valid	= false;
		}
	}
	return valid;
}

function isValidEmailCharacter( evt ) {
	valid	= true;
	if( allowedKeyCombos( evt ) ) {
		valid	= true;
	} else if( evt.which == null || ( evt.which != 0 && evt.charCode != 0 ) ) {
		var charCode	= ( evt.which ) ? evt.which : event.keyCode;
		var char		= String.fromCharCode( charCode );
		var re			= new RegExp( /([0-9A-Za-z-_@.])/ );
		valid			= re.test( char );
	}
	return valid;
}

function isValidPhoneCharacter( evt ) {
	valid	= true;
	if( allowedKeyCombos( evt ) ) {
		valid	= true;
	} else if( evt.which == null || ( evt.which != 0 && evt.charCode != 0 ) ) {
		var charCode	= ( evt.which ) ? evt.which : event.keyCode;
		var char		= String.fromCharCode( charCode );
		var re			= new RegExp( /([0-9+\s\[\]])/ );
		valid			= re.test( char );
	}
	return valid;
}
