function dialogBox( sMessage ){
	var areYouSure = window.confirm( sMessage );

	if ( areYouSure ){
		return true;
	}
	return false;
}

function trim( str, chars ) {
    return ltrim( rtrim( str, chars ), chars );
}

function ltrim( str, chars ) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}

function rtrim( str, chars ) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}

function ucFirst( sWord ) {
	return sWord.substr( 0,1 ).toUpperCase() + sWord.substr( 1,sWord.length );
};

