function trim(string) {
	trexf = /^\s+/;
	trexb = /\s+$/;
	str = new String(string);
	str = str.replace(trexf,'');  
	str = str.replace(trexb,'');
	return str.valueOf();
}


<!-- Script Size:  3.78 KB -->
//always save in unicode format!!!
var email_regexp = /^[a-zA-Z0-9._-]+[@][a-zA-Z0-9_-]+[.][a-zA-Z0-9._-]+$/;
//var email_regexp = /^[a-zäÄöÖüÜßA-Z0-9._-]+[@][a-zäÄöÖüÜßA-Z0-9_-]+[.][a-zäÄöÖüÜßA-Z0-9._-]+$/;
var mbl_num_regexp = /^\+(\d{1,3}) +(\d+)$/;
var amount_regexp = /^[1-9]\d*([.,]\d+)?|\d+[.,]\d+$/;
