	//Converts a value to a currency with specified number of decimals
	function number_format(val, decimalCount) {
		if (decimalCount == 0) return Math.ceil(val);
	
		var i = parseFloat(val);
		if(isNaN(i)) { i = 0.00; }
		var minus = '';
		if(i < 0) { minus = '-'; }
		i = Math.abs(i);
		i = parseInt((i + .005) * 100);
		i = i / 100;
		s = new String(i);
		if(s.indexOf('.') < 0) { s += '.00'; }
		if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
		s = minus + s;
		return s;
	}
	
function checkGroup(obj)
{

	if (obj.value.substring(0,3) == 'www')
		obj.value = obj.value.substring(3);
	//Remove all underline chars
	obj.value = obj.value.replace(/\./g,"");
	obj.value = obj.value.replace(/\-/g,"");
	obj.value = obj.value.replace(/\ /g,"");
	obj.value = obj.value.replace(/\_/g,"");
	obj.value = obj.value.replace(/[^a-zA-Z0-9\s]/gi, "");
}
