
function SubWindow1() {
  open("input.php", "Window01", "resizable=1, scrollbars=1, menubar=0, directories=0, status=0, location=0, width=530, height=600")
}


function SubWindow2() {
  open("http://jugem.jp/trackbacktheme/input.php", "Window01", "resizable=1, scrollbars=1, menubar=0, directories=0, status=0, location=0, width=530, height=600")
}


/*

//タブ切り替え
function showMe(id) {
  for (i=0;i<document.getElementsByTagName("div").length; i++) {
    if (document.getElementsByTagName("div").item(i).className == "tabarea"){
      document.getElementsByTagName("div").item(i).style.display = "none";
    }
  }
  for (i=0;i<document.getElementsByTagName("li").length; i++) {
    if (document.getElementsByTagName("li").item(i).className == "here") {
      document.getElementsByTagName("li").item(i).className = "";
    }
  }
  document.getElementById(id).style.display = "block";
  var navid = id + "-nav";
  document.getElementById(navid).className = "here";
}

*/


//marsflag　searchform
function search_action(mode) {
	document.search_form.mode.value=mode;
	document.search_form.submit();
}






//*******************************
// ブラウザ判別
//*******************************
function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Safari";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isSA = true;
    this.version = 1.0;
    return;
  }

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

}
//読み込み時実行
var browser = new Browser();


	//*******************************
	// モブログ一覧
	//*******************************

// help popupの表示・非表示

if(document.getElementById){
	document.writeln('<style type="text/css" media="all">');
	document.writeln('<!--');
	document.writeln('.help{display:none;}');
	document.writeln('-->');
	document.writeln('</style>');
}

function showHelp(showid,hideid){
		var elShow = document.getElementById(showid);
		var elHide = document.getElementById(hideid);

		elShow.style.display = "inline";
		if (hideid != 'nohide'){
			elHide.style.visibility = "hidden";
		}
	if(browser.isSA){
		elShow.style.margin = "20px 0 0 0";
	}else if(showid == 'help_category_id'){
		elShow.style.margin = "-60px 0 0 0";
	}
}

function hideHelp(showid,hideid){
		document.getElementById(showid).style.display = "none";
		if (hideid != 'nohide'){
		document.getElementById(hideid).style.visibility = "visible";
		}
}




//*******************************
// タブの切り替え (monocolle 検索フォーム)
//*******************************
function seltab(bpref, hpref, id_max, selected) {
  if (! document.getElementById) return;
  for (i = 0; i <= id_max; i++) {
    if (! document.getElementById(bpref + i)) continue;
    if (i == selected) {
      document.getElementById(bpref + i).style.visibility = "visible";
      document.getElementById(bpref + i).style.position = "";
      document.getElementById(hpref + i).className = "open";
    } else {
      document.getElementById(bpref + i).style.visibility = "hidden";
      document.getElementById(bpref + i).style.position = "absolute";
      document.getElementById(hpref + i).className = "close";
    }
  }
}
