function openWinX(w, h, r) {
	if (screen.width < w)
		w = screen.width;
	if (screen.height < h)
		h = screen.height;
	w = w? w: 600;
	h = h? h: 600;
	r = r == 'no'? 'no': 'yes';
	subWin = window.open("","text", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable="+r+",width="+w+",height="+h);
}

function rollover (obj,val) {
  obj.src = val;
}

function toggle_pdfpanel(type){
	var listElm = document.getElementById(type + 'List');
	var headElm = document.getElementById(type + 'Head');
	if (listElm.style.display == 'block') {
		listElm.style.display = 'none';
		headElm.style.backgroundImage = 'url(/image/layout/tmpl/menu-list1.gif)';
	} else {
		listElm.style.display = 'block';
		headElm.style.backgroundImage = 'url(/image/layout/tmpl/menu-list2.gif)';
	}
}

function ImportCSS(filename) {
	var css_style=document.createElement("link");
	css_style.setAttribute("rel", "stylesheet");
	css_style.setAttribute("type", "text/css");
	css_style.setAttribute("href", filename);
	document.getElementsByTagName("head")[0].appendChild(css_style);
}

ImportCSS("/css/onlyJsEnable.css")

//日別番組表リスト表示
function change_view_date(item_id) {
  var item = document.getElementById('program_date_' + item_id);
  var icon = document.getElementById('program_date_i_' + item_id);

  if (item.style.display == 'none') {
    item.style.display = 'inline';
    icon.innerText = "非表示▲";
  }
  else {
    item.style.display = 'none';
    icon.innerText = "表示▼";
  }
}
