function getIFrameURL(url) {
	xmlhttp=null
	// code for Mozilla, etc.
	if (window.XMLHttpRequest) {
		xmlhttp=new XMLHttpRequest()
	} else if (window.ActiveXObject) {
		// code for IE
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	if (xmlhttp!=null) {
		try {
			xmlhttp.onreadystatechange=state_Change
			xmlhttp.open("GET",url,true)
			xmlhttp.send(null)		
		} catch (e) {
			if (document.getElementById(iFrameId)) {
				document.getElementById(iFrameId).src = iFrameUrl;
			}
		}
	} else {
		alert("Your browser does not support XMLHTTP.")
	}
}

function state_Change() {
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState==4){
    	//alert("page loaded !");
		// if "OK"
		if (xmlhttp.status==200) {
			if (document.getElementById(iFrameId)) {
				document.getElementById(iFrameId).src = iFrameUrl;
			}
	    } else {
		    //alert("Problem retrieving ECom IFrame... : " + iFrameUrl)
    	}
  	}
}
