// JavaScript Document
function load_iframe(url, domNode, width, height, class) {
	exists = false;
	nodeId = 0;
	for(i=0;i<domNode.childNodes.length;i++) {
		cObj = domNode.childNodes[i];
		if(cObj.getAttribute('src') == url) {
			exists = true;
			nodeId = i;
		}
	}
	if(!exists) {
		embryo = document.createElement('iframe');
		embryo.setAttribute('width', width);
		embryo.setAttribute('height', height);
		embryo.className = class;
		embryo.setAttribute('src',url);
		domNode.appendChild(embryo);
	}
	else {
		cObj = domNode.childNodes[nodeId];
		cObj.setAttribute('width', width);
		cObj.setAttribute('height', height);
		cObj.className = class;
	}
}