function cartform(gotoURL) 
{
window.open(gotoURL,'','status=0,directories=0,resizable=0,toolbar=0,location=0,width=250,height=180');
}
function sendcheck(thisform) {
	if (thisform.partNumberKeywords.value == "" || thisform.partNumberKeywords.value.length<4){
		alert("IC型号须不小于4个字符");
		thisform.partNumberKeywords.focus();
		return false;
	}
	if (thisform.partNumberKeywords.value == "请输入关键字"){
		alert("请输入查询关键字");
		thisform.partNumberKeywords.focus();
		return false;
	}
}
function chkemail(a)
{

	var i=a.length;
	var temp = a.indexOf('@');
	var tempd = a.indexOf('.');
	if (temp > 1) {
		if ((i-temp) > 5){
			//if ((tempd-temp) > 2){
			//	if ((i-tempd)>2){
					return 1;
			//	}
			//}
		}
	}
	return 0;
}


function nomem_check(thisform) {
	if (thisform.usrname.value == ""){
		alert("姓名不能为空");
		thisform.usrname.focus();
		return false;
	}
	if (thisform.city.value == ""){
		alert("城市不能为空");
		thisform.city.focus();
		return false;
	}
	if (thisform.addr.value == ""){
		alert("您的收货地址不能为空");
		thisform.addr.focus();
		return false;
	}
	if (thisform.zip.value == ""){
		alert("邮编不能为空");
		thisform.zip.focus();
		return false;
	}
	if (thisform.tel.value == ""){
		alert("电话不能为空");
		thisform.tel.focus();
		return false;
	}
	if (thisform.email.value == "" ){
		alert("Email不能为空");
		thisform.email.focus();
		return false;
	}
	if (chkemail(thisform.email.value) == 0){
		alert("Email格式不正确");
		thisform.email.focus();
		return false;
	}
}


function click() {
 //alert('禁止你的左键复制！');
	return false;
 }
function click1() {
if (event.button==2) {
//alert('禁止右键点击~！');
 return false;
}}
function CtrlKeyDown(){
if (event.ctrlKey) {
  //alert('不当的拷贝将损害您的系统！');
  return false;
}}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
document.onmousedown=click1;
document.oncontextmenu=click;
