/*
Simple Javascript Functions - By Supertron Infotech
Visit http://www.supertroninfotech.com for this script and more
This notice must stay intact

This file is created by Dipankar Paul for common javascript functions. on 30/05/2009

*/

/*
This functionis used for  trim space 
from both side of the given string.

For Example:
var str = "  Supertron   ";
str.trim();

*/
String.prototype.trim = function() {
a = this.replace(/^\s+/, '');
return a.replace(/\s+$/, '');
};
