String.prototype.trim = function() {
	return this.replace(/(^\s*)|(\s*$)/gi, "");
}

String.prototype.replaceAll = function( str1, str2 ) {
	var temp_str = this.trim();
	temp_str = temp_str.replace(eval("/" + str1 + "/gi"), str2);

	return temp_str;
}
function ImgSwap(obj, file)
{
	obj.src = "/images/new/common/"+file;
}

function TwoNum(str){
    if (String(str).length == 1){
       return "0"+String(str);
	} else {
       return String(str);
	}
} 

