// JavaScript Document

var myFormVisible = false;

function toggleForm(formName) {
	if(myFormVisible) {
		document.getElementById(formName).style.display = 'none';
	} else {
		document.getElementById(formName).style.display = 'inline';
		document.getElementById(formName + 'Top').scrollIntoView(true);
	}
	myFormVisible = !myFormVisible;
}


function handleCheckBox( formObj ) {

	var checkList=new Array();
	var index = 0;
	checkList[index++] = "prototypedevelopment";
	checkList[index++] = "volumeproduction";
	checkList[index++] = "techdesign";
	checkList[index++] = "singlestep";
	checkList[index++] = "deepreactive";
	checkList[index++] = "dicing";
	checkList[index++] = "anodic";
	checkList[index++] = "metalization";
	checkList[index++] = "sputtering";
	checkList[index++] = "koh";
	checkList[index++] = "edp";
	checkList[index++] = "wyko";

	for(var i = 0; i < checkList.length; ++i) {
        if(formObj[checkList[i]]) {
    		if(formObj[checkList[i]].checked) {
    			formObj[checkList[i]+"Value"].value = "Yes"
    		} else {
    			formObj[checkList[i]+"Value"].value = "No"
    		}
        }
	}
	return true;
}