function enlargepic(atype,wser) {
  if(atype=='F')
    urlstr="/enlarge_image.phtml?atype=F&fwrkser="+wser;
  else
    urlstr="/enlarge_image.phtml?atype=N&wrkser="+wser;
  window.open(urlstr,"Enlarge","width=620,height=600,scrollbars=yes");
}

function pdtl(itno,opt) {
  switch(opt) {
    case "1":
      urlstr="/giftshop/product_detail_form1.phtml?itno="+itno;
      break;
    case "2":
      urlstr="/giftshop/product_detail_form2.phtml?itno="+itno;
      break;
    case "3":
      urlstr="/giftshop/product_detail_form3.phtml?itno="+itno;
      break;
    case "4":
      urlstr="/giftshop/product_detail_form4.phtml?itno="+itno;
      break;
  }
  window.open(urlstr,"Detail","width=700,height=600,scrollbars=yes");
}

function editpdt(ctgy,itno,gcno) {
  switch(ctgy) {
    case "A":
    case "R":
    case "O":
    case "H":
    case "P":
    case "U":
      location.href="admin_existproduct_form1.phtml?gcno="+gcno+"&category="+ctgy+"&itno="+itno;
      break;
    case "B":
      location.href="admin_existproduct_form2.phtml?gcno="+gcno+"&category="+ctgy+"&itno="+itno;
      break;
    case "N":
      location.href="admin_existproduct_form4.phtml?gcno="+gcno+"&category="+ctgy+"&itno="+itno;
      break;
    default:
      location.href="admin_existproduct_form3.phtml?gcno="+gcno+"&category="+ctgy+"&itno="+itno;
      break;
  }
}
