function hand(a)
{
        a.style.cursor='hand';
}

function shop_open(orderid){
window.open('popshop.asp?orderid='+orderid,'','resizable=yes,scrollbars=yes,width=800,height=550');
//,left=60,top=70
}


function allshop_open(){
window.open('allshop.htm','','resizable=yes,scrollbars=yes,width=680,height=380');
}


function news_open(ID){
	window.open('popnews.asp?newsid='+ID,'','scrollbars=yes,width=340,height=450,top=150,left=350');
}


function shopimage_open(imagepath){
	window.open('popshopimage.asp?imagepath='+imagepath,'','resizable=yes,scrollbars=yes,width=800,height=600,top=50,left=100');
}

function newsimage_open(imagepath){
	window.open('popnewsimage.asp?imagepath='+imagepath,'','resizable=yes,scrollbars=yes,width=800,height=600,top=50,left=100');
}

function viewplayer_open(ID){
	window.open('viewplayer.asp?filename='+ID,'','scrollbars=yes,width=460,height=360,top=150,left=350');
}


function gowhichpage(actionname){
//alert(currpage);
  switch(actionname){
       case "1":
         gotopage = 1;
       break;
	   case "2":
         gotopage = currpage-1;
		 if(gotopage<1){
          gotopage = 1
		 }
       break;
	   case "3":
         gotopage = currpage+1;
		 if(gotopage>pagecount){
		    gotopage = pagecount
		 }
       break;
	     case "4":
         gotopage = pagecount;
       break;
       default:
         alert("error");
 }		 
 //alert(gotopage);
formq.page.value = gotopage;
formq.submit();
}

function nshop_open(orderid){
window.open('npopshop.asp?orderid='+orderid,'','resizable=yes,scrollbars=yes,width=800,height=600');
}

function nnews_open(ID){
	window.open('npopnews.asp?newsid='+ID,'','scrollbars=yes,width=800,height=600');
}
