//openWindow('URL','ウィンドウネーム','ツールバー','幅','高さ')
function openWindow(url, name, toolbar, width, height)
{
	var prop = "toolbar=" + toolbar + ",location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=1,width=" + width + ",height=" + height;
	var newWindow = window.open(url, name, prop);
	newWindow.focus();
}

function cngimg(n){
	var imgsrc = n.src;
	if(imgsrc.indexOf("-in")>0) {;
	}else{

		if(imgsrc.indexOf("jpg") <= 0){
			extension=".gif";
		}
		else{
			extension=".jpg";
		}
	
		if(imgsrc.indexOf("-on") <= 0){
			n.src=imgsrc.substring(0,imgsrc.length-4) +"-on"+extension;
		}
		else{
			n.src=imgsrc.substring(0,imgsrc.length-7) +extension;
		}
	}
}
/**
 * Newマーク表示
 */
function new_mark(y, m, d, cl) {
  keep_day = 5; // 何日後まで表示するかを設定
  old_day = new Date(y + "/" + m + "/" +d);
  new_day = new Date();
  d =(new_day - old_day) / (1000 * 24 * 3600);
  if(d <= keep_day) {
    // Newマーク
    if(cl == "new") document.write("<span><img src='/images_common/navi/icon_new.gif' alt='new'></span>");
  }
}
//共通JSの読み込み
document.write('<script type="text/javascript" src="/js/jquery/jquery-1.4.2.js"></script>');
document.write('<script type="text/javascript" src="/js/log.js"></script>');
document.write('<script type="text/javascript" src="/js/jquery/yuga.js" ></script>');


/**
 * お問い合わせフォーム／データ受け渡し
 */
function goFaq(val){
	document.MemberHeadderInquiry.target="_blank";
	document.MemberHeadderInquiry.sbt.value=val;
	document.MemberHeadderInquiry.submit();
}
