<!--
//#BEGIN聯絡我們======================================
function contact_check() {

	//姓名
	obj = document.getElementById('first_name');
	name1 = trim(obj.value);
	if(name1=="") {
		obj.focus();
		alert("Please input your First Name!!");
		return false;
	}
	obj = document.getElementById('last_name');
	name1 = trim(obj.value);
	if(name1=="") {
		obj.focus();
		alert("Please input your Last Name!!");
		return false;
	}

	//Company
	obj = document.getElementById('company');
	value = trim(obj.value);
	if(value=="") {
		obj.focus();
		alert("Please input your Company!!");
		return false;
	}

/*
	//phone
	obj1 = document.getElementById('phone1');
	obj2 = document.getElementById('phone2');
	obj3 = document.getElementById('mobile');
	value1 = trim(obj1.value);
	value2 = trim(obj2.value);
	value3 = trim(obj3.value);

	if(value1=="" && value2=="" && value3=="") {
		obj1.focus();
		alert("請填入聯絡電話!!");
		return false;
	}
*/

	//email
	obj = document.getElementById('email');
	email = trim(obj.value);
	if(email_check2(email)==false) {
		obj.focus();
		return false;
	}


/*
	//address
	obj3 = document.getElementById('address');
	value3 = trim(obj3.value);
	if(value3=="") {
		alert("請填寫地址!!");
		obj3.focus();
		return false;
	}
*/

	//subject
	obj1 = document.getElementById('subject');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Subject!!");
		return false;
	}


	//message
	obj1 = document.getElementById('message');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Message!!");
		return false;
	}

	document.getElementById('B1').disabled = '';
	return true;
}
//#END聯絡我們======================================


//#BEGIN購物車-確認資料====================================
function check_car_form() {

	//Company
	obj = document.getElementById('company');
	value = trim(obj.value);
	if(value=="") {
		obj.focus();
		alert("Please input your Company!!");
		return false;
	}


	//phone
	obj1 = document.getElementById('tel');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Tel!!");
		return false;
	}


	//email
	obj = document.getElementById('email');
	email = trim(obj.value);
	if(email_check2(email)==false) {
		obj.focus();
		return false;
	}


	//address
	obj1 = document.getElementById('address');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Address!!");
		return false;
	}


	//Country
	obj1 = document.getElementById('country');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Country!!");
		return false;
	}




	//姓名
	obj = document.getElementById('first_name');
	name1 = trim(obj.value);
	if(name1=="") {
		obj.focus();
		alert("Please input your First Name!!");
		return false;
	}
	obj = document.getElementById('surname');
	name1 = trim(obj.value);
	if(name1=="") {
		obj.focus();
		alert("Please input your Surname!!");
		return false;
	}





	//message
	obj1 = document.getElementById('message');
	value1 = trim(obj1.value);
	if(value1=="") {
		obj1.focus();
		alert("Please input your Message!!");
		return false;
	}



	document.getElementById('B1').disabled = true;
	return true;
}
//#BEGIN購物車-確認資料====================================



//#BEGIN購物車-修改資料====================================
function modify_car_form() {
	document.form1.action = "inquiry.php";
	document.form1.submit();
}
//#BEGIN購物車-修改資料====================================


function big_picture(picture) {
	document.getElementById('big_picture').src = picture;
//	window.open(picture, 'big_picture', 'toolbar=no, location=no, directories=no, status=no,menubar=no,scrollbars=yes,resizable=no,width=760,height=550');
	return;
}

-->