
function test1x() {
    alert("test1");
}
function getTestPage() {
	//Look up the node we'll stick the text under.
	var targetNode = dojo.byId("licenseContainer");

	//The parameters to pass to xhrGet, the url, how to handle it, and the callbacks.
	var xhrArgs = {
		url: "dojotest_result.html",
		handleAs: "text",
		load: function(data) {
			//alert(data);
			targetNode.innerHTML = data;
		},
		error: function(error) {
			targetNode.innerHTML = "An unexpected error occurred: " + error;
		}
	}
	//Call the asynchronous xhrGet
	var deferred = dojo.xhrGet(xhrArgs);
}
function getAjaxPage(url, targetNode) {

    //alert(targetNode);
	var targetNode = dojo.byId(targetNode);
	
	var d = new Date();
	var secs = d.getSeconds();
	
	var myUrl = null;
	
	if (url.indexOf("?") != -1)
	{
		myUrl = url + "&rnid="+ Math.floor(Math.random()*100) + secs;
	} 
	else 
	{
		myUrl = url + "?rnid="+ Math.floor(Math.random()*100) + secs;
	}
	
	//alert(myUrl);
	
	//The parameters to pass to xhrGet, the url, how to handle it, and the callbacks.
	var xhrArgs = {
	    url: myUrl,
	    handleAs: "text",
	    load: function (data) {
	        //alert(data);
	        //fadeOut({ delay: 1000 }).play();
	        //targetNode.innerHTML = "test";
	        targetNode.innerHTML = data;
	    },
	    error: function (error) {
	        targetNode.innerHTML = "<br><br><br><br>An unexpected error occurred. <br><br>Please contact the site administrator for assistance.<br><br> " + error;
	    }
	}
	//Call the asynchronous xhrGet
	var deferred = dojo.xhrGet(xhrArgs);
}

function ed_test() {
    alert("test!!");
}
