function init(){
	if(!document.images)return;
	globalNaviPreLoad();
}

/* checkCars */

function checkCars() {
	tocar = document.forms["form"]["model"].value;
	if (tocar == "99") {
		document.forms["form"]["model_etc"].disabled = false;
		document.forms["form"]["model_etc"].style.backgroundColor = "#FFFFFF";
	} else {
		document.forms["form"]["model_etc"].disabled = true;
		document.forms["form"]["model_etc"].style.backgroundColor = "#CCCCCC";
	}
}

/* changeArea */

function changeArea(action) {
	if (document.forms["form"]["voice"]) {
		area = document.forms["form"]["voice"];
	} else if (document.forms["form"]["question"]) {
		area = document.forms["form"]["question"];
	} else if (document.forms["form"]["comment"]) {
		area = document.forms["form"]["comment"];
	}
	if (area) {
		if (action == "open") {
			if (area.rows <= 15) {
				area.rows += 5;
			}
		} else if (action == "close") {
			if (area.rows >= 15) {
				area.rows -= 5;
			}
		}
	}
}

/* changeInputBgc */

function changeInputBgc(obj, bgStatus) {
	if(bgStatus == '0') {
		obj.style.backgroundColor = "#FFFFFF";
	} else if(bgStatus == '1') {
		obj.style.backgroundColor = "#FFFFCC";
	}
}

/* noLocationPopWin */

function noLocationPopWin(Url) {
	var win = window.open(Url,'newwin','toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	win.focus();
}

