<!--
function showhide(id, visibility) {
	parent.document.getElementById(id).style.visibility = visibility;
}

function innerhtmlchange(object_id, inner_html) {
	parent.document.getElementById(object_id).innerHTML = inner_html;
}
function valuechange(object_id, inner_html) {
	parent.document.getElementById(object_id).value = inner_html;
}

function changeClass(object_id, class_text) {
	parent.document.getElementById(object_id).className = class_text;
}

function innerhtmlchangeimage(object_id, t_image, t_class, t_style, t_onclick) {
	parent.document.getElementById(object_id).innerHTML = "<img src=\"" + t_image + "\" class=\"" + t_class + "\" style=\"" + t_style + "\" onClick=\"" + t_onclick + "\">";
}

function changeimageonclickhref(object_id, onclick_value) {
	alert("window.location.href='" + onclick_value + "'");
	parent.document.getElementById(object_id).onclick = "window.location.href=\"" + onclick_value + "\"";
}

function changeimagesrc(object_id, src_value) {
	parent.document.getElementById(object_id).src = src_value;	
	//document[object_id].src = src_value;
}

function setTableHeight() {
	hgt=parent.document.getElementById('window_right').offsetHeight;
	parent.document.getElementById('window_main').style.height=hgt+'px';
	//resize for IE resize bug
	if (navigator.appName=="Microsoft Internet Explorer") {
		hgt2=hgt-parent.document.getElementById('window_main').offsetHeight;
		parent.document.getElementById('window_main').style.height=(hgt+hgt2)+'px';
	}
}
//find positions of an object
function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	} else if (obj.x) curleft += obj.x;
	return curleft;
}
function findPosY(obj){
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	} else if (obj.y) curtop += obj.y;
	return curtop;
}

//change page text size
var pagefontsize=2; //accept values from 1 - 9
function changeFontSize(inc)
{
 	var tags = new Array('div','td','tr','p','b','span','table','strong','emphasis','a','h1',
'h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
	if ((inc>0 && pagefontsize<8) || (inc<0 && pagefontsize>1)) {
		if (inc<0) {
			pagefontsize--;
		} else {
			pagefontsize++;
		}
		for (i = 0 ; i < tags.length ; i++ ) {
			var p = document.getElementsByTagName(tags[i]);
			for(n=0; n<p.length; n++) {
				if(p[n].style.fontSize) {
					var size = parseInt(p[n].style.fontSize.replace("px", ""));
				} else {
					var size = 11;
				}
				p[n].style.fontSize = size+inc + 'px';
			}
		}
	}
}

//-->