function strtrim(str) //function to trim a string
	{
		var temp = str;
		var obj =/^(\s*)(\w*)(\s*)$/;
		if (obj.test(temp)) { temp = temp.replace(obj, '$2'); }
		return  temp;
	}
	function isnotvalid(str) //funtion to check spaces in string
	{
		var temp = str;
		var obj =/\w*\s+\w*/;
		return obj.test(temp); 
	}
	function isvalidphone(str) //function to validate phone Number
	{
		var temp = str;
		//var obj =/^(\d{4,}(-\d{4,})*)?$/;
		var obj =/^((\(\d{3,}\))+\d{3,}((-|\.)\d{3,})*)?$/;
		return obj.test(temp); 
	}
	function isvalidmail(str) //function to validate Email Address
	{
		var temp = str;
		//var obj =/^(a|-|\.)+@(a|-)+\.a{2,5}(\.a{2,5})?$/;
		//return obj.test(temp); 
		return true; 
	}