function checkOrder(){
	if(!checkIsNotEmpty($F("username"))){
		alert('请输入的收货人姓名');
		$("username").focus();
		return false;
	}
	if(!checkIsNotEmpty($F("mobile"))){
		alert('请输入的收货人联系电话');
		$("mobile").focus();
		return false;
	}
	return true;
}

function checkLeaveword(){
	if(!checkIsNotEmpty($F("username"))){
		alert('请输入的访客姓名');
		$("username").focus();
		return false;
	}
	if(!checkIsNotEmpty($F("mobile"))){
		alert('请输入的联系电话');
		$("mobile").focus();
		return false;
	}
	if(!checkIsNotEmpty($F("cnt"))){
		alert('请输入的留言内容');
		$("cnt").focus();
		return false;
	}
	return true;
}
function Taxis(id){
	window.location=url.replace(taxis,'taxis='+id)+'&page='+page;
}
function goPageNum(id){
	if(!checkIsInteger($F(id))){
		alert('页码必须是数字');
		$(id).focus();
		return false;
	}else{
		window.location=url+'&page='+$F(id);
	}
	return true;
}

function changeBand(oid){
	var brandhtml = '';
	if(oid == 1){
		brandhtml = '<div style="border-bottom:1px #6FCFCE dashed;">'+
				      '<div id="dizhi">'+
				        '<h5 style="color:#000"><img src="image/title.gif" width="9" height="9"/>&nbsp;按<span class="color_orange">品牌</span>分类：</h5>'+
				        '<ul>'+
				          '<li>&nbsp;&nbsp;'+
				            '<input type="radio" name="bid" checked="checked" value="0"/>'+
				            '所有</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="12" />'+
				            '全球通</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="13" />'+
				            '神州行</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="11" />'+
				           ' 动感地带</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="14" />'+
				            '神州行大众卡</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="15" />'+
				           ' 神州行畅听卡</li>'+
				        '</ul>'+
				      '</div>'+
				    '</div>';
	}else if(oid == 2){
		brandhtml = '<div style="border-bottom:1px #6FCFCE dashed;">'+
				      '<div id="dizhi">'+
				        '<h5 style="color:#000"><img src="image/title.gif" width="9" height="9"/>&nbsp;按<span class="color_orange">品牌</span>分类：</h5>'+
				        '<ul>'+
				          '<li>&nbsp;&nbsp;'+
				            '<input type="radio" name="bid" checked="checked" value="0"/>'+
				            '所有</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="21" />'+
				            'UP新势力</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="22" />'+
				            '长市合一</li>'+
				        '</ul>'+
				      '</div>'+
				    '</div>';
	}else if(oid == 3){
		brandhtml = '<div style="border-bottom:1px #6FCFCE dashed;">'+
				      '<div id="dizhi">'+
				        '<h5 style="color:#000"><img src="image/title.gif" width="9" height="9"/>&nbsp;按<span class="color_orange">品牌</span>分类：</h5>'+
				        '<ul>'+
				          '<li>&nbsp;&nbsp;'+
				            '<input type="radio" name="bid" checked="checked" value="0"/>'+
				            '所有</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="31" />'+
				            '如意133</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="32" />'+
				            '如意通</li>'+
				          '<li>'+
				            '<input type="radio" name="bid" value="33" />'+
				            '天翼189</li>'+  
				        '</ul>'+
				      '</div>'+
				    '</div>';
	}else{
		brandhtml = '';
	}
	$('brand').innerHTML = brandhtml;
}

function checkSearch() {
	if(checkIsNotEmpty($F("from_price")) && !checkIsInteger($F("from_price"))){
		alert('请输入正确的价格');
		$("from_price").focus();
		return false;
	}
	if(checkIsNotEmpty($F("to_price")) && !checkIsInteger($F("to_price"))){
		alert('请输入正确的价格');
		$("to_price").focus();
		return false;
	}
	if(checkIsNotEmpty($F("key")) && !checkIsInteger($F("key"))){
		alert('请输入正确的关键字');
		$("key").focus();
		return false;
	}
	return true;
}
