function swapDiv(page) {
/*
	if (!document.getElementById('outframe')) { return; }
	document.getElementById('outframe').src = 'iframe.php?p=' + page;
	document.getElementById('outframe').style.height = height;
*/
	gotoPage_onood(page);

	if (!document.getElementById('outframeimage')) { return; }
	document.getElementById('outframeimage').src = 'iframe_img.php?p=' + page;
}

function styleBold(obj, num) {
	var i;
	for(i = 1; i <= num; i++) { document.getElementById('elm'+i).style.fontWeight = 'normal';	}
	obj.style.fontWeight = 'bold';
}

function gotoPage_onood(page) {
	poststr = "&p=" + escape(page);
	makePOSTRequest('ajx_onood.php', poststr, "gotoPage_onood_response();");
	return(false);
}

function gotoPage_onood_response() {
	var oDiv = MM_findObj('AjxResults');
	data = getPOSTData();
	if(data == '') { return(true); }
	oDiv.innerHTML = data;
	return(true);
}
