<!--
function showlink(url,images,sitename) {
  document.writeln("      <a href=\"" + url + "\" target=\"_blank\"><img src=\"" + images + "\" alt=\"" + sitename + "\" width=\"88\" height=\"31\" border=\"0\" \/><\/a>")	
  return
}

function cls(){
	window.opener = null
	window.close()
}
function filteron(target){
	target.filters.alpha.opacity = 100
}

function filteroff(target){
	target.filters.alpha.opacity = 65
}

function showMenu(menuID) {
	document.getElementById(menuID).style.visibility = "visible";
}
		
function hideMenu(menuID) {
	document.getElementById(menuID).style.visibility = "hidden";
}
function order(id){
	window.open("order.asp?ID="+id,"","width=310,height=320,scrollbars=yes")
}
//翻页效果
function nextpage(n,p,pg,size,url){
	n = parseInt(n);p = parseInt(p);pg = parseInt(pg);size = parseInt(size)
	if( pg > p ) { pg = p }
	document.write("[总计:"+n+"] [分页"+pg+"/"+p+"] ")
	if( p > ((size + 1) * 2) ) {
		var x = pg - size - 1	//当前页之前的3页
		var y = pg + size	//当前页之后的3页
		var z = 1 - x	//设置差距
		var v = p - y
		if( x < 1 ){
			x = 1
			y = y + z
		} else if ( y > p ){
			y = p
			x = x + v
		}
		if( z < 0 ){
			document.write("<a href=\""+url+"pg=1\">[1]<\/a>... ")
		}
		for(var i=x;i<=y;i++){
			if(i == pg){
			  document.write("<strong>["+i+"]</strong> ")
			} else {
			  document.write("<a href=\""+url+"pg="+i+"\">["+i+"]</a> ")
			}
		}
		if( v > 0 ){
			document.write("...<a href=\""+url+"pg="+p+"\">["+p+"]<\/a>")
		}
	} else if ( p > 1 ) {
	  for(var i=1;i<=p;i++){
		if(i == pg){
		  document.write("<strong>["+i+"]</strong> ")
		} else {
		  document.write("<a href=\""+url+"pg="+i+"\">["+i+"]</a> ")
		}
	  }
	}	
}
//是否为正整数
function isPosInteger(str){
	var result=str.match(/^\d+$/);
	if(result==null) return false;
	if(parseInt(str,10)>0) return true;
	return false;
}
//-->