
//------------------------------------
// フォームの先頭にフォーカスする
//------------------------------------
function setFirstFocus()
{
	document.FUNC.companyName.focus();
}

//------------------------------------
// チェックボックスの背景色変更
//------------------------------------
function changeColor(name)
{
	for(i = 0; i < document.FUNC.elements.length; i++){
		if(document.FUNC.elements[i].name == name){
			if(document.FUNC.elements[i].checked == true){
				document.FUNC.elements[i].style.backgroundColor = "#cc0066";
			}else{
				document.FUNC.elements[i].style.backgroundColor = "#ffffff";
			}
		}
	}
}

function setCheckboxColor()
{
	if(document.FUNC.contact1.checked == true){
		document.FUNC.contact1.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact1.style.backgroundColor = "#ffffff";
	}

	if(document.FUNC.contact2.checked == true){
		document.FUNC.contact2.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact2.style.backgroundColor = "#ffffff";
	}

	if(document.FUNC.contact3.checked == true){
		document.FUNC.contact3.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact3.style.backgroundColor = "#ffffff";
	}

	if(document.FUNC.contact4.checked == true){
		document.FUNC.contact4.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact4.style.backgroundColor = "#ffffff";
	}

	if(document.FUNC.contact5.checked == true){
		document.FUNC.contact5.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact5.style.backgroundColor = "#ffffff";
	}

	if(document.FUNC.contact6.checked == true){
		document.FUNC.contact6.style.backgroundColor = "#cc0066";
	}else{
		document.FUNC.contact6.style.backgroundColor = "#ffffff";
	}
}
