function display_text(obj_id, type) {
	obj=document.getElementById(obj_id);
	objdefault=document.getElementById('default');

	extrascript=false;

	if(window.navigator.userAgent.indexOf("Gecko/")!=-1 && window.navigator.userAgent.indexOf("Firefox")==-1) {
		
		versionstart=window.navigator.userAgent.indexOf("rv:");
		mainpart=parseInt(window.navigator.userAgent.substr(versionstart+3,1));
		subpart=parseInt(window.navigator.userAgent.substr(versionstart+5,1));
		
		if(mainpart<1 || (mainpart==1 && subpart<=3)) {
			extrascript=true;
		}
	}

	if(type == 'show') {
		obj.style.display = 'inline';
		objdefault.style.display = 'none';
	
		if(extrascript==true) {
			obj.style.position = 'static';
			obj.style.visibility = 'visible';
			objdefault.style.position = 'absolute';
			objdefault.style.visibility = 'hidden';
		}

	} else {
		obj.style.display = 'none';
		objdefault.style.display = 'inline';
		
		if(extrascript==true) {
			obj.style.visibility = 'hidden';
			obj.style.position = 'absolute';
			objdefault.style.visibility = 'visible';
			objdefault.style.position = 'static';
		}
	}
}

function fillList(selectbox, array, selected, key){
	var optioncounter=1;
	selectbox.length=1;
	
	for(i in array){
		newoption = new Option();
		if(key!=""){
			if(array[i][2]==key){
				newoption.value = array[i][0];
				newoption.text = array[i][1];
			}
		}else{
			newoption.value = array[i][0];
			newoption.text = array[i][1];
		}
		
		if(newoption.value!=""){
			selectbox[optioncounter]=newoption;
			if(selectbox[optioncounter].value==selected) {
				selectbox[optioncounter].selected=true;
			}
			optioncounter++;
		}
	}
}