function chkfs(){
	if(price_from.value=="From")
		price_from.value='';
}
function resetfs(){
	if(price_from.value=="")
		price_from.value='From';
}
function chkto(){
	if(price_to.value=="To")
		price_to.value='';
}
function resetto(){
	if(price_to.value=="")
		price_to.value='To';
}

function getos(){
	if(keyword1.value!="请输入订单号或收货人姓名")
		location="/users/orderSearch.asp?keyword1="+keyword1.value;
}
function chkps(){
	if(keyword.value=="Enter Products Name")
		keyword.value='';
}
function resetps(){
	if(keyword.value=="")
		keyword.value='Enter Products Name';
}
function getps(){
	//if(keyword2.value!="请输入商品名称")
		location="/search.asp?keyword="+keyword.value+"&classID="+classID.value+"&price_from="+price_from.value+"&price_to="+price_to.value;
}
function getCookie(name) {
    str=document.cookie;
    str=str.replace(/\s/g,"");
    var pairs=str.split(";");
    for (var i=0;i<pairs.length;++i) {
          var pairsub=pairs[i].split("=");
        if (pairsub[0]==name)
            if (pairsub.length>1) return pairsub[1];
        else return '0';
    }
    return '0';
}
function setCookie(name,value,days) {
	if (days){
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function resize(t_id,x,y){
	myimg = document.getElementById(t_id)
	if(myimg.width>x)
	{
		myimg.width=x;
	}
	if(myimg.height>y)
	{
		myimg.height=y;
	}
}