 function imageview(temp,type) {
   var windowprops = "height=350,width=450,toolbar=no,menubar=no,resizable=yes,status=no";
   if (type==1) windowprops+=",scrollbars=yes";
   if (temp.length==0) { alert("拡大イメージ画像がありません"); return ; }
   n4=(document.layers)?true:false;
   if (n4)
      url = "/shop/image_view.html?image=../shopimages/premium/" + escape(temp);
   else
      url = "/shop/image_view.html?image=../shopimages/premium/" + temp;

   window.open(url, "win", windowprops);
 }
 function send(temp,temp2) {
   if (document.form1.spcode && document.form1.spcode.selectedIndex<2) {
	alert ("オプションを選択してください。");document.form1.spcode.focus();return;	
   } 
   if (document.form1.spcode2 && document.form1.spcode2.selectedIndex<2) {
	alert ("オプションを選択してください。");document.form1.spcode2.focus();return;	
   } 
   if (document.form1.amount.value.length==0)
   {  alert("注文数量を入力して下さい"); document.form1.amount.focus();return; }
   if (isNaN(document.form1.amount.value))
   {  alert("注文数量に数字を入力して下さい");
      document.form1.amount.focus(); return; }
   if(temp=="baro") document.form1.ordertype.value='baro';
   if(temp2!=""){
      document.form1.opts.value="";
      for(i=0;i<temp2;i++){
         if(document.form1.optselect[i].value==1 && document.form1.mulopt[i].selectedIndex==0){
            alert('必須選択項目です.オプションを必ず選んで下さい');
            document.form1.mulopt[i].focus();
            return;
         }
         document.form1.opts.value+=document.form1.mulopt[i].selectedIndex+",";
      }
   }
   document.form1.submit();
 }
 function count_change(temp)
 {
   var test=document.form1.amount.value;
   if(temp==0){
      test++;
   }else if(temp==1){
      if(test> 1) test--;
   }
   document.form1.amount.value=test;
 }
  function login_chk(tmp){
     alert ("会員専用のサービスです。まずはログインして下さい。");
     location.href="/shop/member.html?type=wish&brandcode="+tmp;
  }
 function product_mail(temp,temp2) {
     window.open("/html/question_mail.html?brandcode="+temp+"&xcode="+temp2,"","width=460,height=500,scrollbars=yes");
 }
 function friend_mail(temp) {
     window.open("/html/friend_mail.html?brandcode="+temp,"","width=460,height=500,scrollbars=yes");
 }
 function go_login() {
     alert('ログインの後、ご利用ください。');
     document.location.href='/shop/member.html?type=wish&brandcode=024000000001';
 }

