
 	function openView(url, w1, h1, target) {
      childWindow = open(url, target, "toolbar=0,location=0,directories=0,scrollbars=1,status=0,width="+ w1 +",height="+h1+",left=250,top=50");
      if(childWindow.opener==null) childWindow.opener = self;
      childWindow.focus();
     	return false;
 	}

 	function openWindow(url, target) {
      childWindow = open(url, target, "toolbar=1,location=1,directories=1,scrollbars=1,status=1");
      if(childWindow.opener==null) childWindow.opener = self;
      childWindow.focus();
     	return false;
 	}
 	
 	function changeItem(myForm, productId, w1, h1, target) { 	
 			vol = window.document.forms[productId].Volume.value;
      childWindow = open("/cart/ChangeItem.jsp?ProductID="+productId+"&Volume="+vol, target, "toolbar=0,location=0,directories=0,scrollbars=1,status=0,width="+ w1 +",height="+h1+",left=250,top=50");
      if(childWindow.opener==null) childWindow.opener = self;
      childWindow.focus();
     	return false;
 	}
 	
 	function deleteItem(productId, w1, h1, target) {
 			if( window.confirm('確定從購物車刪除嗎？') ){
	      childWindow = open("/cart/DeleteItem.jsp?ProductID="+productId, target, "toolbar=0,location=0,directories=0,scrollbars=1,status=0,width="+ w1 +",height="+h1+",left=250,top=50");
	      if(childWindow.opener==null) childWindow.opener = self;
	      childWindow.focus();
    	}
     	return false;
 	}
 	function changeFinalPaid(myForm, txId,w1, h1, target) { 	
 		 	paid = window.document.forms[txId].FinalPaid.value;
      childWindow = open("/adm/tx/ChangeFinalPaid.jsp?TxID="+txId+"&Paid="+paid, target, "toolbar=0,location=0,directories=0,scrollbars=1,status=0,width="+ w1 +",height="+h1+",left=250,top=50");
      if(childWindow.opener==null) childWindow.opener = self;
      childWindow.focus();
     	return false;
 	} 	 	 	
	function changePage(url, formId){		
		pageNo = document.forms[formId].elements["PageSelect"].value;
		return open(url + pageNo ,'_self');
	} 	
 	function goBack() { 	
      if(window.opener!=null){
      	window.opener.focus();
 				window.opener.location.reload();
      }
      window.close();
     	return false;
 	} 	 	 	
 	function goPrint() { 	
      window.print();
     	return false;
 	}
	function register(w1, h1, target) { 	
      childWindow = open("/adm/user/RegisterAccount.jsp", target, "toolbar=0,location=0,directories=0,scrollbars=1,status=0,width="+ w1 +",height="+h1+",left=250,top=50");
      if(childWindow.opener==null) childWindow.opener = self;
      childWindow.focus();
     	return false;
 	} 	 	 
 	
	function GoSubmit(myForm) { 	
      document.forms[myForm].submit();
     	return false;
 	} 	 	  	
 	
