
//after onload, document.getElementById('id').innerHTML=get(URL) 
function bindContentOnload(id,URL,errorMsg){
	dojo.addOnLoad(
	    function() {    	
		    if (document.getElementById(id)!=null){
				dojo.io.bind({
					url: URL,
					load: function(type, data, evt) {document.getElementById(id).innerHTML=data},
					error: function(type, error) { document.getElementById(id).innerHTML+=errorMsg;},
					mimetype: 'text/plain'
				});
			}
		}
    )
}

