function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function term(URL){
	terms = window.open('../../../term/term/'+ URL +'.html', "termwin" , "width=340,height=250,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
	terms.focus();
}

function subwin(WinNo,URL){
    var WinName = "window";
    var WinFace = "width=640,height=500,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes";
    sub = window.open(URL, WinName + WinNo , WinFace);
    sub.focus();
}

function welfterm(URL){
	welf = window.open(URL,"welfterm" , "width=345,height=145,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");
	welf.focus();
}


function remote(URL){
 opener.window.top.mainFrame.location=URL;
}

function term(URL){
	welf = window.open(URL,"term" , "width=260,height=240,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes");
	welf.focus();
}

function term2(URL){
	welf = window.open(URL,"term" , "width=330,height=280,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes");
	welf.focus();
}

function phwin(URL){
	welf = window.open(URL,"ph" , "width=200,height=250,toolber=no,menuber=no,location=no,directories=no,status=no,scrollbars=auto,resizable=yes");
	welf.focus();
}

function gopage(MAINg,NAVIg){
	window.top.mainFrame.location=MAINg;
	window.top.leftFrame.location=NAVIg;
}

function remote_w(MAINw1,SUBw1){
	if(window.onerror = null){
	}else{window.opener.top.leftFrame.location=SUBw1;window.opener.top.mainFrame.location=MAINw1;	
	}
}

function Spo(){
	if(document.forms[0].elements[0].checked==true){window.open('http://www.google.co.jp/search?sourceid=navclient&hl=ja&ie=UTF-8&rlz=1T4GGIH_jaJP260JP260&q=%e6%9d%b1%e6%b5%b7%e5%b8%82+%e3%82%b9%e3%83%9d%e3%83%bc%e3%83%84%e6%96%bd%e8%a8%ad+OR+%e9%81%8b%e5%8b%95%e6%96%bd%e8%a8%ad+OR+%e4%bd%93%e8%82%b2%e6%96%bd%e8%a8%ad+OR+%e3%82%a2%e3%82%b9%e3%83%ac%e3%83%81%e3%83%83%e3%82%af');return;}
	if(document.forms[0].elements[1].checked==true){window.open('http://www.google.co.jp/search?hl=ja&rlz=1T4GGIH_jaJP260JP260&q=%E8%A5%BF%E5%B0%BE%E5%B8%82+%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%84%E6%96%BD%E8%A8%AD+OR+%E9%81%8B%E5%8B%95%E6%96%BD%E8%A8%AD+OR+%E4%BD%93%E8%82%B2%E6%96%BD%E8%A8%AD+OR+%E3%82%A2%E3%82%B9%E3%83%AC%E3%83%81%E3%83%83%E3%82%AF&lr=');return;}
	if(document.forms[0].elements[2].checked==true){window.open('http://www.google.co.jp/search?hl=ja&rlz=1T4GGIH_jaJP260JP260&q=%E5%88%88%E8%B0%B7%E5%B8%82+%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%84%E6%96%BD%E8%A8%AD+OR+%E9%81%8B%E5%8B%95%E6%96%BD%E8%A8%AD+OR+%E4%BD%93%E8%82%B2%E6%96%BD%E8%A8%AD+OR+%E3%82%A2%E3%82%B9%E3%83%AC%E3%83%81%E3%83%83%E3%82%AF&lr=');return;}
	if(document.forms[0].elements[3].checked==true){window.open('http://www.google.co.jp/search?hl=ja&rlz=1T4GGIH_jaJP260JP260&q=%E6%BB%8B%E8%B3%80%E7%9C%8C%E7%B1%B3%E5%8E%9F%E5%B8%82+%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%84%E6%96%BD%E8%A8%AD+OR+%E9%81%8B%E5%8B%95%E6%96%BD%E8%A8%AD+OR+%E4%BD%93%E8%82%B2%E6%96%BD%E8%A8%AD+OR+%E3%82%A2%E3%82%B9%E3%83%AC%E3%83%81%E3%83%83%E3%82%AF&lr=');return;}
}
