	function blocktoggle(i) {
	  if (document.getElementById) {
			shown[i] = (shown[i]) ? false : true;
			currentdisplay = (shown[i]) ? 'block' : 'none';
			document.getElementById('blocktoggle'+i).style.display = currentdisplay;
			}
		}

	function blockdisplay(i) {
	  if (document.getElementById){
	    if (document.getElementById("blockdisplay"+i)) {
	      for ( j = 1; j < 1000; j++ ) {
	        if (document.getElementById('blockdisplay' + j)) {document.getElementById('blockdisplay' + j).style.display = 'none';}
		    else {j = 1000;}
	      }
	      if (i) {document.getElementById("blockdisplay"+i).style.display = 'block';}
	    }
	  }
	}


function save_export(target,table)
{
	var actWidth = 500;
	var actHeight = 300;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var newwin = window.open("/engineering/addon/export/default.asp?ID="+target+"&table="+table,"","status=no,width="+actWidth+",height="+actHeight+",resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	newwin.focus();
}

function wizard_furnace(target,VRT)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_furnace = window.open("/engineering/furnace/setup/wizard/default.asp?ID="+target+"&VRT="+VRT,"WIZ_furnace","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_furnace.focus();
}

function wizard_wanne(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_wanne = window.open("/engineering/furnace/setup/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_wanne","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_wanne.focus();
}

function boosting(target,VRT)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_boosting = window.open("/engineering/energy/boosting/wizard/default.asp?ID="+target+"&VRT="+VRT,"WIZ_boosting","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_boosting.focus();
}

function o2convert(target,VRT)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_o2convert = window.open("/engineering/energy/convert/wizard/default.asp?ID="+target+"&VRT="+VRT,"WIZ_o2convert","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_o2convert.focus();
}

function wizard_report(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_report = window.open("/engineering/furnace/reports/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_report","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_report.focus();
}

function wizard_refractory(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_refractory = window.open("/engineering/furnace/refractory/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_refractory","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_refractory.focus();
}

function wizard_batch(target,VRT)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_batch = window.open("/engineering/batch/composition/wizard/wizard_2.asp?ID="+target+"&VRT="+VRT,"WIZ_batch","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_batch.focus();
}

function wizard_gemenge(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_batch = window.open("/engineering/batch/composition/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_batch","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_batch.focus();
}

function wizard_setup(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_setup = window.open("/engineering/settings/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_setup","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_setup.focus();
}

function wizard_staff(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_staff = window.open("/engineering/settings/staff/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_staff","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_staff.focus();
}

function wizard_design(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_design = window.open("/engineering/furnace/technology/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_design","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_design.focus();
}

function wizard_address(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_address = window.open("/engineering/admin/address/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_address","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_address.focus();
}

function wizard_glass(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_glass = window.open("/engineering/glass/composition/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_glass","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_glass.focus();
}

function wizard_sollglas(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_sollglas = window.open("/engineering/glass/sollglas/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_sollglas","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_sollglas.focus();
}


function wizard_raw(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_raw = window.open("/engineering/raw/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_raw","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_raw.focus();
}

function wizard_rawanalyse(TargetURL,RohstoffID,AnalyseID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_rawanalyse = window.open("/engineering/raw/analyses/wizard/"+TargetURL+".asp?ID="+RohstoffID+"&AID="+AnalyseID,"WIZ_rawanalyse","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_rawanalyse.focus();
}

function wizard_delivery(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_delivery = window.open("/engineering/raw/delivery/"+TargetURL+".asp?ID="+TargetID,"WIZ_delivery","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_delivery.focus();
}

function wizard_verdampfung(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_verdampfung = window.open("/engineering/batch/evaporation/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_verdampfung","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_verdampfung.focus();
}

function wizard_gas(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_gas = window.open("/engineering/furnace/gas/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_gas","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_gas.focus();
}

function wizard_oil(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_oil = window.open("/engineering/furnace/oil/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_oil","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_oil.focus();
}

function wizard_silo(TargetURL,TargetID)
{
	var actWidth = 800;
	var actHeight = 500;
	var iMyWidth = (window.screen.width/2) - actWidth/2;
	var iMyHeight = (window.screen.height/2) - actHeight/2;
	var WIZ_silo = window.open("/engineering/raw/silo/wizard/"+TargetURL+".asp?ID="+TargetID,"WIZ_silo","status=no,width="+actWidth+",height="+actHeight+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
	WIZ_silo.focus();
}


