function occCreateIframe( id, src ) {
	var obj=document.getElementById( id );
	if (obj) {
		occRemoveIframe(id);
	}
	obj = document.createElement("iframe");
	obj.id = id;
	obj.style.position = "absolute";
	obj.style.display = "none";
	obj.frameBorder = 0;
	obj.src = src; 
	document.body.appendChild(obj);
}
function occIECompat() {
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function occResizeIframe( id, top, left, width, height ) {
	var obj = document.getElementById( id );
	if (obj) {
		var scaleX=occIECompat().clientWidth/document.getElementById('OCCAgent').occGetWindowWidth();
		var scaleY=occIECompat().clientHeight/document.getElementById('OCCAgent').occGetWindowHeight();
		obj.style.top=scaleY*top+"px";
		obj.style.left=scaleX*left+"px";
		obj.style.width=scaleX*width+"px";
		obj.style.height=scaleY*height+"px";
	}
}
function occMoveIframe( id, top, left ) {
	var obj = document.getElementById( id );
	if (obj) {
		var scaleX=occIECompat().clientWidth/document.getElementById('OCCAgent').occGetWindowWidth();
		var scaleY=occIECompat().clientHeight/document.getElementById('OCCAgent').occGetWindowHeight();
		obj.style.top=scaleY*top+"px";
		obj.style.left=scaleX*left+"px";
	}
}
function occHideIframe( id ) {
	var obj = document.getElementById( id );
	if (obj) {
		obj.style.display="none";
	}
}
function occShowIframe( id ) {
	var obj = document.getElementById( id );
	if (obj) {
		obj.style.display="inline";
	}
}
function occRefreshIframe( id ) {
	var obj = document.getElementById( id );
	if (obj) {
		obj.src = obj.src;
	}
}
function occRemoveIframe( id ) {
	var obj = document.getElementById( id );
	if (obj) {
		obj.parentNode.removeChild(obj);
	}
}
function occTranscriptEmail( ) {
	document.getElementById('OCCAgent').occTranscriptEmailHandler();
}
function occFocus() {
	window.focus();
}

