
function JSONscriptRequest(fullUrl) {

	// Get the DOM location to put the script tag
	var headLoc = document.getElementsByTagName("head").item(0);
	var scriptId = 'JscriptId' + JSONscriptRequest.scriptCounter++;

	// Create the script tag
	var scriptObj = document.createElement("script");

	// Add script object attributes
	scriptObj.setAttribute("type", "text/javascript");
	scriptObj.setAttribute("charset", "utf-8");
	scriptObj.setAttribute("src", fullUrl + '&noCacheIE=' + (new Date()).getTime());
	scriptObj.setAttribute("id", scriptId);

	try {
		headLoc.appendChild(scriptObj);
	} catch(e) {
		setTimeout(function() {JSONscriptRequest(fullUrl)} , 100);
	}
}

// Static script ID counter
JSONscriptRequest.scriptCounter = 1;
