<!--
//#BEGIN 訂閱電子報====================================
function check_email() {
	obj = document.getElementById('email');
	email = trim(obj.value);
	if(email_check(email)==false) {
		obj.focus();
		return false;
	}
	obj2 = document.getElementById('ref_index');
	ref_index = obj2.value;
	if(ref_index=="") {
		obj2.focus();
		alert("Please Choose Your Country!!");
		return false;
	}

	window.open('joinus.php?email='+email+"&ref_index="+ref_index, 'other', 'toolbar=no, location=no, directories=no, status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=40');
	obj.value = "";
	return false;
}
//#END 訂閱電子報====================================





//#BEGIN搜尋======================================
function check_search() {
	obj = document.getElementById('search');
	value = obj.value;
	value = trim(value);
	if(value=="") {
		alert("Please Input Manufacturer Model Name!!");
		obj.focus();
		return false;
	}
	return true;
}

function check_search2() {
	obj = document.getElementById('search2');
	value = obj.value;
	value = trim(value);
	if(value=="") {
		alert("Please Input Keyword!!");
		obj.focus();
		return false;
	}
	return true;
}


function check_search1() {
	obj = document.getElementById('model');
	value = obj.value;
	if(value=="") {
		alert("Please Select the Model!!");
		obj.focus();
		return false;
	} else 	location.href='configurator2.php?pid=2&model='+value;
	return false;
}


function check_search3() {
	obj = document.getElementById('index');
	value = obj.value;
	if(value=="") {
		alert("Please Select the PART NUMBER!!");
		obj.focus();
		return false;
	} else 	location.href='products.php?index='+value;
	return false;
}
//#END搜尋======================================




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;
}

-->
