// JavaScript Document

function fulltrim(str){
  return str.replace(/ /g, '');
}

function trim(str) { 
	var trimstring = str.replace(/^\s+/, '');
	return trimstring.replace(/\s+$/, '');
}

function cleaner(str){
	str = str.replace(',','');
	str = str.replace('+','');
	str = str.replace('*','');
	str = str.replace('%','');
	str = str.replace('~','');
	str = str.replace('{','');
	str = str.replace('}','');
	str = str.replace('!','');
	str = str.replace('"','');
	str = str.replace('^','');
	str = str.replace('?','');
	str = str.replace('<','');
	str = str.replace('>','');
	return str;
}

function checkemail(str){
	validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
    if (str.search(validRegExp) == -1) {return false;} 
    return true; 
}	
function removeCommas( strValue ) {
  var objRegExp = /,/g; //search for commas globally
  return strValue.replace(objRegExp,' ');
}
