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];}}
}

var win = window;
function openWin(url) {
    if ((win == window) || win.closed) {
        win = open(url, "win", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=804,height=600");
    } else {
        win.focus();
    }
}

var HELPWin=null;//サブウインドウ
var HELPHref1="";//読み込むページ
function HelpWinOpen(HELPHref1,WinNo,W,H){
HELPWin=window.open(HELPHref1,WinNo,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+W+',height='+H+'');
//N2.0バグ回避用リピート
if(navigator.appVersion.charAt(0)==2){
HELPWin=window.open(HELPHref1,WinNo,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+W+',height='+H+'');}
//サブウインドウが開いたとき前面へフォーカスする。NN3.0~
if(navigator.appVersion.charAt(0)>=3){HELPWin.focus()}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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;
}
/* Functions that swaps images. */
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_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;
}
var url;
function appletStart(arg1, arg2) {
	url = arg1;
	window.open(url, "appletStart", "width=280,height=259,location=no,toolbar=no,status=no");
	return false;
}
function imgalpha(m,n){
	 n.style.filter="alpha(opacity="+m+")";
	 l=m/100;
	 n.style.opacity=l;
}

//株cat：バナーリスト
function BannerStock() {
document.write("<ul style=\"padding:0px;list-style-type: none;margin:0px;\">");
document.write("<li><img src=\"http://www.hs-sec.co.jp/images/spacer.gif\" height=\"20px\" /></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/meigara/kisei_today.htm\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/meigara_info.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/nyumon/calendar.cgi\" target=\"_blank\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/calen.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/woman_club/movie/movie.htm\" target=\"_blank\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/douga.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/woman_club/yutai/page1.htm\" target=\"_blank\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/yuutai.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("</ul>");
}

//債券cat：バナーリスト
function BannerBond() {
document.write("<ul style=\"padding:0px;list-style-type: none;margin:0px;\">");
document.write("<li><img src=\"http://www.hs-sec.co.jp/images/spacer.gif\" height=\"20px\" /></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/nyumon/calendar.cgi\" target=\"_blank\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/calen.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("<li><a href=\"http://www.hs-sec.co.jp/woman_club/movie/movie.htm\" target=\"_blank\"><img src=\"http://www.hs-sec.co.jp/banner/under_vlist/douga.gif\" vspace=\"5\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\" /></a></li>");
document.write("</ul>");
}


//ログイン・開設ボタンコーナー
function loginkaisetuBT() {
document.write("<div class=\"loginkaisetu\">");
document.write("<div style=\"width:49%; float:left;\">");
document.write("<a href=\"javascript:;\" onClick=\"window.open('https://estrex.hs-sec.co.jp/ITS/login/MemberLogin.jsp','blueskynet','scrollbars=yes,resizable=yes,width=900')\" >");
document.write("<img src=\"http://www.hs-sec.co.jp/images_home/login/net.gif\" alt=\"ネットログイン\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\"></a></div>");
document.write("<div style=\"width:49%; float:right;\">");
document.write("<a href=\"http://www.hs-sec.co.jp/bluesky_net/kaisetsu.htm\" target=\"_blank\">");
document.write("<img src=\"http://www.hs-sec.co.jp/images_home/login/kaisetu.gif\" alt=\"口座開設（無料）\" onMouseOver=\"imgalpha(70,this)\" onMouseOut=\"imgalpha(100,this)\"></a></div>");
document.write("</div>");
}