function Pickup_Galbum(url){
 $f("puplayer","js/flowplayer-3.2.5.swf",{onLoad:function(){this.setVolume(0);},plugins:{controls:{autoHide:'fullscreen'}},clip:{url:url,autoPlay:true,autoBuffering:false}});
 return;
}
function MovePage(url){
 location.href=url;
 return;
}
function Search1g_a(url){
 document.searchform1g.action=url;
 document.searchform1g.submit();
 return;
}
function Search1g_b(url){
 SearchForm_Clear_1g();
 document.searchform1g.action=url;
 document.searchform1g.submit();
 return;
}
function Search1g_c(url){
 SearchForm_Clear_1g();
 document.searchform1g.fr.value="2";
 document.searchform1g.action=url;
 document.searchform1g.submit();
 return;
}
function Search1g_d(url){
 SearchForm_Clear_1g();
 document.searchform1g.mov.value="1";
 document.searchform1g.action=url;
 document.searchform1g.submit();
 return;
}
function Search1s(url){
 document.searchform1s.action=url;
 document.searchform1s.submit();
 return;
}
function Search1c_a(url){
 document.searchform1c.action=url;
 document.searchform1c.submit();
 return;
}
function Search1c_b(url){
 SearchForm_Clear_1c();
 document.searchform1c.action=url;
 document.searchform1c.submit();
 return;
}
function Search2g_a(mode){
 document.searchform2g.mode.value=mode;
 document.searchform2g.submit();
 return;
}
function Search2g_b(mode){
 document.searchform2g.mode.value=mode;
 document.searchform2g.order.value=document.orderform2g.order.options[document.orderform2g.order.selectedIndex].value;
 document.searchform2g.sort.value=document.orderform2g.sort.options[document.orderform2g.sort.selectedIndex].value;
 document.searchform2g.submit();
 return;
}
function Search2g_c(mode){
 if((document.searchform2g.elements['syukkin_2'].checked==true)&&(document.searchform2g.ti.value=="0")){alert("絞込みをする時間を選択して下さい。");document.searchform2g.ti.focus();return;}
 document.searchform2g.mode.value=mode;
 document.searchform2g.order.value=document.orderform2g.order.options[document.orderform2g.order.selectedIndex].value;
 document.searchform2g.sort.value=document.orderform2g.sort.options[document.orderform2g.sort.selectedIndex].value;
 document.searchform2g.submit();
 return;
}
function Search2s(mode){
 document.searchform2s.mode.value=mode;
 document.searchform2s.order.value=document.orderform2s.order.options[document.orderform2s.order.selectedIndex].value;
 document.searchform2s.sort.value=document.orderform2s.sort.options[document.orderform2s.sort.selectedIndex].value;
 document.searchform2s.submit();
 return;
}
function Search2c(mode){
 document.searchform2c.mode.value=mode;
 document.searchform2c.order.value=document.orderform2c.order.options[document.orderform2c.order.selectedIndex].value;
 document.searchform2c.sort.value=document.orderform2c.sort.options[document.orderform2c.sort.selectedIndex].value;
 document.searchform2c.submit();
 return;
}
function Order2g_b(mode){
 document.orderform2g.mode.value=mode;
 document.orderform2g.submit();
 return;
}
function Order2g_c(mode){
 document.orderform2g.mode.value=mode;
 document.orderform2g.submit();
 return;
}
function Order2s(mode){
 document.orderform2s.mode.value=mode;
 document.orderform2s.submit();
 return;
}
function Order2c(mode){
 document.orderform2c.mode.value=mode;
 document.orderform2c.submit();
 return;
}
function ButtonClick(checkbox){
 document.searchform2g.elements[checkbox].checked=true;
 return;
}
function Disp_Block(box,index){
 if(document.getElementById(box).style.display=="block"){
  document.getElementById(box).style.display="none";
  document.getElementById(index).innerHTML="＋項目を表示する";
 }
 else{
  document.getElementById(box).style.display="block";
  document.getElementById(index).innerHTML="－項目を閉じる";
 }
 return;
}
function SelValueChange2t(parts,box){
 if(parts.options[parts.selectedIndex].value==1){
  document.getElementById(box).style.display="none";return;
 }
 if(parts.options[parts.selectedIndex].value==2){
  document.getElementById(box).style.display="block";return;
 }
 return;
}
function SelValueChange2g(parts){
 if((parts.options[parts.selectedIndex].value==1)||(parts.options[parts.selectedIndex].value==2)){
  document.orderform2g.sort.options[0].text="新しい";
  document.orderform2g.sort.options[1].text="古い";
  document.orderform2g.sort.value="0";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 if(parts.options[parts.selectedIndex].value==3){
  document.orderform2g.sort.options[0].text="高い";
  document.orderform2g.sort.options[1].text="若い";
  document.orderform2g.sort.value="1";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 if((parts.options[parts.selectedIndex].value==4)||(parts.options[parts.selectedIndex].value==11)){
  document.orderform2g.sort.options[0].text="高い";
  document.orderform2g.sort.options[1].text="低い";
  document.orderform2g.sort.value="1";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 if(parts.options[parts.selectedIndex].value==5){
  document.orderform2g.sort.options[0].text="重い";
  document.orderform2g.sort.options[1].text="軽い";
  document.orderform2g.sort.value="1";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 if((parts.options[parts.selectedIndex].value==6)||(parts.options[parts.selectedIndex].value==9)){
  document.orderform2g.sort.options[0].text="太い";
  document.orderform2g.sort.options[1].text="細い";
  document.orderform2g.sort.value="1";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 if((parts.options[parts.selectedIndex].value==7)||(parts.options[parts.selectedIndex].value==8)||(parts.options[parts.selectedIndex].value==10)){
  document.orderform2g.sort.options[0].text="大きい";
  document.orderform2g.sort.options[1].text="小さい";
  document.orderform2g.sort.value="0";
  document.orderform2g.sort.blur();
  document.orderform2g.sort.disabled=false;
  return;
 }
 return;
}
function SelValueChange2s(parts){
 if((parts.options[parts.selectedIndex].value==1)||(parts.options[parts.selectedIndex].value==2)){
  document.orderform2s.sort.options[0].text="新しい";
  document.orderform2s.sort.options[1].text="古い";
  document.orderform2s.sort.value="0";
  document.orderform2s.sort.blur();
  document.orderform2s.sort.disabled=false;
  return;
 }
 return;
}
function SelValueChange2c(parts){
 if(parts.options[parts.selectedIndex].value==1){
  document.orderform2c.sort.options[0].text="********";
  document.orderform2c.sort.options[1].text="********";
  document.orderform2c.sort.value="0";
  document.orderform2c.sort.blur();
  document.orderform2c.sort.disabled=true;
  return;
 }
 if((parts.options[parts.selectedIndex].value==2)||(parts.options[parts.selectedIndex].value==3)){
  document.orderform2c.sort.options[0].text="新しい";
  document.orderform2c.sort.options[1].text="古い";
  document.orderform2c.sort.value="0";
  document.orderform2c.sort.blur();
  document.orderform2c.sort.disabled=false;
  return;
 }
 if(parts.options[parts.selectedIndex].value==4){
  document.orderform2c.sort.options[0].text="長い";
  document.orderform2c.sort.options[1].text="短い";
  document.orderform2c.sort.value="1";
  document.orderform2c.sort.blur();
  document.orderform2c.sort.disabled=false;
  return;
 }
 if(parts.options[parts.selectedIndex].value==5){
  document.orderform2c.sort.options[0].text="高い";
  document.orderform2c.sort.options[1].text="安い";
  document.orderform2c.sort.value="1";
  document.orderform2c.sort.blur();
  document.orderform2c.sort.disabled=false;
  return;
 }
 return;
}
function CheckForm_mail(url){
 if(document.mailform.mail.value==""){alert("送信先メールアドレスを入力して下さい。");document.mailform.mail.focus();return;}
 if(checkMail(document.mailform.mail.value)==false){alert("送信先メールアドレスは半角英数字と記号(a～z,A～Z,0～9, -_@. )で入力して下さい。");document.mailform.mail.focus();document.mailform.mail.select();return;}
 if(isAt(document.mailform.mail.value)==false){alert("送信先メールアドレスは( @ )を挟んだ形式で入力して下さい。");document.mailform.mail.focus();document.mailform.mail.select();return;}
 document.mailform.action=url;
 document.mailform.submit();
 return;
}
function CheckForm_inquiry(url){
 if(document.inquiryform.mail.value==""){alert("メールアドレスを入力して下さい。");document.inquiryform.mail.focus();return;}
 if(document.inquiryform.inquiry.value==""){alert("お問い合わせ内容を入力して下さい。");document.inquiryform.inquiry.focus();return;}
 if(checkMail(document.inquiryform.mail.value)==false){alert("メールアドレスは半角英数字と記号(a～z,A～Z,0～9, -_@. )で入力して下さい。");document.inquiryform.mail.focus();document.inquiryform.mail.select();return;}
 if(isAt(document.inquiryform.mail.value)==false){alert("メールアドレスは( @ )を挟んだ形式で入力して下さい。");document.inquiryform.mail.focus();document.inquiryform.mail.select();return;}
 if(document.inquiryform.inquiry.value.length>500){alert("お問い合わせ内容は５００文字以内で入力して下さい。\n\n現在の入力文字数："+document.inquiryform.inquiry.value.length+" 文字");document.inquiryform.inquiry.focus();document.inquiryform.inquiry.select();return;}
 document.inquiryform.action=url;
 document.inquiryform.submit();
 return;
}
function SearchForm_Clear_1g(){
 document.searchform1g.reset();
 if(category3g){
  document.searchform1g.elements['c3']['category3g_nothing'].checked=true;
 }
 if(category4g){
  document.searchform1g.elements['c4']['category4g_nothing'].checked=true;
 }
 document.searchform1g.age1.value="nothing";
 document.searchform1g.age1.blur();
 document.searchform1g.age2.value="nothing";
 document.searchform1g.age2.blur();
 document.searchform1g.hei1.value="nothing";
 document.searchform1g.hei1.blur();
 document.searchform1g.hei2.value="nothing";
 document.searchform1g.hei2.blur();
 document.searchform1g.wei1.value="nothing";
 document.searchform1g.wei1.blur();
 document.searchform1g.wei2.value="nothing";
 document.searchform1g.wei2.blur();
 document.searchform1g.bus1.value="nothing";
 document.searchform1g.bus1.blur();
 document.searchform1g.bus2.value="nothing";
 document.searchform1g.bus2.blur();
 document.searchform1g.cup1.value="nothing";
 document.searchform1g.cup1.blur();
 document.searchform1g.cup2.value="nothing";
 document.searchform1g.cup2.blur();
 document.searchform1g.wai1.value="nothing";
 document.searchform1g.wai1.blur();
 document.searchform1g.wai2.value="nothing";
 document.searchform1g.wai2.blur();
 document.searchform1g.hip1.value="nothing";
 document.searchform1g.hip1.blur();
 document.searchform1g.hip2.value="nothing";
 document.searchform1g.hip2.blur();
 document.searchform1g.ind1.value="nothing";
 document.searchform1g.ind1.blur();
 document.searchform1g.ind2.value="nothing";
 document.searchform1g.ind2.blur();
 document.searchform1g.fr.value="nothing";
 document.searchform1g.mov.value="nothing";
 return;
}
function SearchForm_Clear_1c(){
 document.searchform1c.reset();
 if(category3c){
  document.searchform1c.elements['c3']['category3c_nothing'].checked=true;
 }
 if(category4c){
  document.searchform1c.elements['c4']['category4c_nothing'].checked=true;
 }
 document.searchform1c.tim1.value="nothing";
 document.searchform1c.tim1.blur();
 document.searchform1c.tim2.value="nothing";
 document.searchform1c.tim2.blur();
 document.searchform1c.kin1.value="nothing";
 document.searchform1c.kin1.blur();
 document.searchform1c.kin2.value="nothing";
 document.searchform1c.kin2.blur();
 return;
}
function checkMail(str){
 if(str.length==0){return false;}
 var naturalNum=new String("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_@.");
 var i=new Number();
 for(i=0;i<str.length;i++){
  if(naturalNum.indexOf(str.charAt(i),0)==-1){return false;}
 }
 return true;
}
function isAt(str){
 if(str.indexOf("@",0)==-1){return false;}
 if(str.indexOf("@",0)==0){return false;}
 if(str.indexOf("@",0)==str.length-1){return false;}
 return true;
}

