// JavaScript Document
String.prototype.trim= function() 
{
	return this.replace(/(^\s+)|(\s+$)/g, "");
}
function initSelectList( obj , keyValule , defaultIndex )
{
	obj.selectedIndex = defaultIndex ;
	for( var i = 0 ; i < obj.options.length ; i++ )
	{
		var current = obj.options[ i ] ;
		if( current.value == keyValule )
		{
			obj.selectedIndex = i ;
			return ;
		}
	}
}
