	function trim(strText) { 
	// Source: http://developer.irt.org/script/1310.htm
		// this will get rid of leading spaces 
		
		if ( !strText ) {
			while (strText.substring(0,1) == ' ') 
			    strText = strText.substring(1, strText.length);

			// this will get rid of trailing spaces 
			while (strText.substring(strText.length-1,strText.length) == ' ')
			    strText = strText.substring(0, strText.length-1);

		}
		return strText;
	} 


	function Checknorm(target, cmt) {
		var t = target.value;

		if ( (t == '') || (t.length == 0) ) {
			alert( 'Please enter ' + cmt );
			target.focus();
			return true;
		}
		if ( trim( t ) == '' ) {
			alert( 'Please enter ' + cmt );
			target.focus();
			return true;
		}
		
		return false;
	}


