function contentType(sName) {
				if (/\.xml$/.test(sName)) {
					return "application/xml";
				}
				if (/\.json$/.test(sName)) {
					return sJson;
				}
				return "application/x-octet-stream";
			}
// calculates the content type from the given resource name
calculates the content type from the given resource name
calculates the content type from the given resource name
function contentType(sName) {
				if (/\.xml$/.test(sName)) {
					return "application/xml";
				}
				if (/\.json$/.test(sName)) {
					return sJson;
				}
				return "application/x-octet-stream";
			}
function contentType ( sName ) { if ( / \.xml$ / . test ( sName ) ) { return "application/xml" ; } if ( / \.json$ / . test ( sName ) ) { return sJson ; } return "application/x-octet-stream" ; }
calculates the content type from the given resource name
calculates the content type from the given resource name