var varasto1='';
//var varasto2='';
//var varasto3='';
function dGE(id){return document.getElementById(id)}
function vaihdaKuva(kuvanSrc,id){dGE(id).src=kuvanSrc;return false}
function vaihdaHtml(lahde1Id,kohde1Id){
	if (varasto1 !='') {
		dGE(varasto1).innerHTML=dGE(kohde1Id).innerHTML;
	}
	dGE(kohde1Id).innerHTML=dGE(lahde1Id).innerHTML;
	varasto1=lahde1Id;
	dGE(lahde1Id).innerHTML='';
	return false
}
function vaihdaHtmlKaksi(lahde1Id,kohde1Id,lahde2id,kohde2Id){
	if (varasto1 !='') {
		dGE(varasto1).innerHTML=dGE(kohde1Id).innerHTML;
	}
//	if (varasto2 !='') {
//		dGE(varasto2).innerHTML=dGE(kohde2Id).innerHTML;
//	}
	dGE(kohde1Id).innerHTML=dGE(lahde1Id).innerHTML;
	varasto1=lahde1Id;
	dGE(lahde1Id).innerHTML='';
	dGE(kohde2Id).innerHTML=dGE(lahde2id).innerHTML;
//	varasto2=lahde2Id;
	return false
}
function vaihdaHtmlKolme(lahde1Id,kohde1Id,lahde2id,kohde2Id,lahde3id,kohde3Id){
	if (varasto1 !='') {
		dGE(varasto1).innerHTML=dGE(kohde1Id).innerHTML;
	}
//	if (varasto2 !='') {
//		dGE(varasto2).innerHTML=dGE(kohde2Id).innerHTML;
//	}
//	if (varasto3 !='') {
//		dGE(varasto3).innerHTML=dGE(kohde3Id).innerHTML;
//	}
	dGE(kohde1Id).innerHTML=dGE(lahde1Id).innerHTML;
	varasto1=lahde1Id;
	dGE(lahde1Id).innerHTML='';
	dGE(kohde2Id).innerHTML=dGE(lahde2id).innerHTML;
//	varasto2=lahde2Id;
	dGE(kohde3Id).innerHTML=dGE(lahde3id).innerHTML;
//	varasto3=lahde3Id;
	return false
}

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}

function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

