//----- 画像の入れ換え -----
function ImgSw(imgName, imgSrc)
{
  var appVer=parseInt(navigator.appVersion);
  var isNC=(document.layers && (appVer >= 4)); // Netscape Navigator 4.0 or later
  var isIE=(document.all    && (appVer >= 4)); // Internet Explorer  4.0 or later
  if (isNC || isIE)
  {
    if (document.images)
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

//----- 本文中の文字の太さを変える -----
function change(aa,n){
	document.getElementById(aa).style.backgroundImage='url(n)';
}

//----- 本文中の文字の太さを変える -----
function change1(aa,n,fl){
  if(fl=='on'){
	document.all[aa].style.color = n;
	document.all[aa].style.fontWeight = 'bold';
  } 
  if(fl=='off'){
	document.all[aa].style.color = n;
	document.all[aa].style.fontWeight = 'normal';
  } 
}




// ページを変える
function href(url){
	location.href(url);
}


//表示・非表示
function disp_b(ss) {
	document.getElementById(ss).style.display='block';
}
function disp_n(ss) {
	document.getElementById(ss).style.display='none';
}

//非表示
function kakusu(tt){
document.getElementById(tt).style.visibility="hidden";
}

//表示・非表示2
function dis(ss,fla) {
if(fla=='on'){
document.all[ss].style.display='block';
}
if(fla=='off'){
document.all[ss].style.display='none';
}
}

//本文中の文字を変える
function sty(m){
document.all["isy"].style.fontSize = m;
document.all["isy"].style.fontColor="#fff0000";
}



//データシートを開く
function jump(k){
   if(k=='form1'){
	var url = document.form1.select.options[document.form1.select.selectedIndex].value;
   }
   if(k=='form2'){
	var url = document.form2.select.options[document.form2.select.selectedIndex].value;
   }
   if(k=='form3'){
	var url = document.form3.select.options[document.form3.select.selectedIndex].value;
   }

   if(url != "" ){
      window.open(url, 'pdfwin');
   }

}

//プライバシーポリシーの同意の判定(貸出しについてのページ)
function RENTCHK(){
  if(document.data1.m_doui[1].checked == true) {
      window.alert("上記の内容に同意した場合のみお申込みできます。");
      return false;
   } else {
	location.href("../contact/cgi/naiyou.cgi?key=rent");
  }
}


//プライバシーポリシーの同意の判定
function CHK(){
  if(document.form1.m_doui[1].checked == true) {
      window.alert("プライバシーポリシーをお読みください");
      return false;
   } else {
	document.form1.submit();
  }
}



//------お試し版を選択したときのみ希望期間のテキスト入力を表示----
function hh(ss){
  if(document.form1.ck2.checked == true) {
	document.getElementById(ss).style.display='block';
  }else{
	document.getElementById(ss).style.display='none';
  }
}


