function show_iframe(url_) {
	//05.11.2008 13:42:08 / hg
	var oFrame=document.getElementById("if1");
	oFrame.src=url_
	document.getElementById("editor").style.display="block"
}


function close_iframe() {
	var oFrame=document.getElementById("if1");
	document.getElementById("editor").style.display="none"
	oFrame.src=""
	window.location.reload()
}

function a2() {
	//01.04.2009 14:15:54
	parent.varif2=this
}

function a1() {
	//01.04.2009 14:15:54
	parent.varif1=this;
}


function Set(item,wert) {
	parent.varif1.SetWert(item,wert);
}

function SetWert(item,wert) {	
	document.getElementById(item).value=wert;
}

function ShowForm() {
	var oFrame=document.getElementById("if1");
	oFrame.src="../program/medisa.prg?act=ShowForm";
}

function SelectSymptom(act,field,value,id_s0,id_s1,id_s2) {
	var oFrame=parent.document.getElementById("if2");
	oFrame.src="../program/medisa.prg?act="+act+"&value="+value+"&field="+field+"&id_s0="+id_s0+"&id_s1="+id_s1+"&id_s2="+id_s2;
}

function ShowDiseases() {
	var oFrame=parent.document.getElementById("if3");
	oFrame.src="../program/medisa.prg?act=ShowDiseases&id_s0="+parent.varif1.getElementById('id_s0').value+"&id_s1="+parent.varif1.getElementById('id_s1').value+"&id_s2="+parent.varif1.getElementById('id_s2').value;
}

function SearchDialog() {
	var oFrame=parent.document.getElementById("if1");
	oFrame.src="../program/l.prg?act=SearchDialog&rnd="+Math.random();
}

function Search(act) {
	parent.document.getElementById("div2").style.display="block";
	parent.document.getElementById("if2").src="../program/l.prg?act="+act+"&rnd="+Math.random();
}

function ViewLab() {
	parent.document.getElementById("div2").style.display="none";
	parent.document.getElementById("div3").style.display="block";
	parent.document.getElementById("if3").src="../program/l.prg?act=ViewLab&rnd="+Math.random();
}

function ShowLab() {
	parent.document.getElementById("div3").style.display="block";
	parent.document.getElementById("if3").src="../program/l.prg?act=ViewLab&rnd="+Math.random();
}

