  	var hasUseArray=new Array();
  try{
  	for(i=0;i<40;i++)
  		hasUseArray[i]=false;
  		}catch(e){
  			alert(e.message);
  		}
  	function buildURL(){
          return buildURLImp( pageDo);
        } 	
  	function buildURLImp(thePageDo){
  	var url=""
  	if(document.all.search2!=undefined && document.all.search2.value.replace(/(^\s*)|(\s*$)/g,"").length>0)
  	{
  		  	 url= thePageDo+"?channel_id="+channel_id
									+"&sub_channel="+sub_channel
									+"&common_id=0"
									+"&degree2IsChannel="+degree2IsChannel
									+"&searchText="+encodeURIComponent(searchText)
  	}else
  	{
  	 url= thePageDo+"?channel_id="+channel_id
									+"&sub_channel="+sub_channel
									+"&common_id="+common_id
									+"&last_degree="+last_degree
									+"&last_area="+last_area
									+"&degree2IsChannel="+degree2IsChannel
									+"&degree3Type="+degree3Type;
									if(searchText!='')
										url+="&searchText="+encodeURIComponent(searchText);
									if(date_from!='')
										url+="&date_from="+date_from;
									if(date_to!='')
										url+="&date_to="+date_to;
									if(brand!='' && brand!='empty')
										url+="&brand="+encodeURIComponent(brand);
									if(author_name!='' && author_name!='empty')
										url+="&author_name="+encodeURIComponent(author_name);
									if(designer!='' && designer!='empty')
										url+="&designer="+encodeURIComponent(designer);
									if(book_number!='' && book_number!='empty')
										url+="&book_number="+encodeURIComponent(book_number);
									if(book_name!='' && book_name!='empty')
										url+="&book_name="+encodeURIComponent(book_name);		
									if(content_style!='' && content_style!='empty')
										url+="&content_style="+encodeURIComponent(content_style);	
												
									if(year_season!=0)
										url+="&year_season="+year_season;
									if(image_format!='' && image_format!='empty')
											url+="&image_format="+image_format;
									if(degree2!=0)
										url+="&degree2="+degree2;
									if(degree3!=0)
										url+="&degree3="+degree3;		
									if(country!=0)
										url+="&country="+country;	
									if(province!=0)
										url+="&province="+province;
									if(page_amount!=0)	
										url+="&page_amount="+page_amount;	
									if(page_count!=0)	
										url+="&page_count="+page_count;	
									if(total_amount!=0)	
										url+="&total_amount="+total_amount;		
									if(detailId!=0)	
										url+="&detailId="+detailId;		
									if(contentId!=0)	
										url+="&contentId="+contentId;		
									if(detailViewMode!=0)		
										url+="&detailViewMode="+detailViewMode;	
									if(book_yearmonth!='' && book_yearmonth!='empty')
										url+="&book_yearmonth="+encodeURIComponent(book_yearmonth);	
									if(book_period!='' && book_period!='empty')		
										url+="&book_period="+encodeURIComponent(book_period);	
									if(wantChannelStyle!=0)		
										url+="&wantChannelStyle="+wantChannelStyle;				
									if(common_id!=0)		
										url+="&degree1="+common_id;		
			}																							
										//url=encodeURI(url);
										//url=encodeURI(encodeURI(url));
										//alert(url);	
			return url;							
  	}	
