//*****************************************************
function mySetCookie(myCookie,myValue,myDay){
//-----------------------------------------------------
myExp = new Date();
myExp.setTime(myExp.getTime()+(myDay*24*60*60*1000));
myItem = "@" + myCookie + "=" + escape(myValue) + ";";
myExpires = "expires="+myExp.toGMTString();
document.cookie =  myItem + myExpires;
//-----------------------------------------------------
}
//*****************************************************
function myGetCookie(myCookie){
//-----------------------------------------------------
myCookie = "@" + myCookie + "=";
myValue = "";
myStr = document.cookie + ";";
myOfst = myStr.indexOf(myCookie);
//-----------------------------------------------------
if(myOfst != -1){
myStart = myOfst + myCookie.length;
myEnd   = myStr.indexOf(";" , myStart);
myValue = unescape(myStr.substring(myStart,myEnd));
}
//-----------------------------------------------------
return myValue;
//-----------------------------------------------------
}
//*****************************************************
function showhide(id){
//-----------------------------------------------------
if(document.getElementById){
if(document.getElementById(id).style.display == "none")
document.getElementById(id).style.display = "block";
else document.getElementById(id).style.display = "none";
}
//-----------------------------------------------------
}
//*****************************************************
function sw_pid(sp){
//-----------------------------------------------------
var pid = new Array;
pid[0] = new Array("readme","search_category","trackback","comment","-1");
pid[1] = new Array("pid458888","pid503293","pid480590","-1");
pid[2] = new Array("pid513881","-1");
for(j=0;j<=2;j++){
i = 0;
while(pid[j][i] != "-1"){
if(document.getElementById(pid[j][i])){
if(pid[j][i] != sp) document.getElementById(pid[j][i]).style.display = "none";
else showhide(sp);
}
i++;
}
}
//-----------------------------------------------------
}
//*****************************************************
function pnt(){
//-----------------------------------------------------
DD = new Date();
Year = DD.getYear();
Month = DD.getMonth() + 1;
Day = DD.getDate();
Hours = DD.getHours();
Minutes = DD.getMinutes();
if(Year < 2000){ Year += 1900; }
if(Month < 10){ Month = "0" + Month; }
if(Day < 10){ Day = "0" + Day; }
if(Hours < 10){ Hours = "0" + Hours; }
if(Minutes < 10){ Minutes = "0" + Minutes; }
document.write(Year,"<br />",Month,"/",Day,"<br>",Hours,":",Minutes);
//-----------------------------------------------------
}
//*****************************************************
function nw(u1,u2,u3,u4){
//-----------------------------------------------------
var today=new Date();
var nt=24;
var c=new Date(u1,u2-1,u3,u4);
//-----------------------------------------------------
if(today-c<3600000*nt)
document.write('<font color="red" size="2">NEW!!</font>');
//-----------------------------------------------------
}
//*****************************************************
function mktaglist(tag){
//-----------------------------------------------------
if(tag.length == 0){
document.write('<input type="text" name="q" size="50" value="" tabindex="1" accesskey="a" />');
}
else{
for(i=0;i<tag.length;i++){
if(i==0){
document.write('<table width="550px" summary="Tag" style="text-align:left;"><tr><td>');
document.write('<input type="radio" name="q" value="',tag[i][0],'" style="margin:0;width:10pt;height:10pt;" checked="checked" />&nbsp;<span class="tag">[<a href="http://techsystrade.blog17.fc2.com/?tag=',tag[i][1],'" title="タグ一覧&nbsp;|&nbsp;',tag[i][0],'">',tag[i][0],'</a>]</span>&nbsp;');
document.write('</td>');
}
else{
if(i%4==0){
document.write('</tr><tr><td>');
document.write('<input type="radio" name="q" value="',tag[i][0],'" style="margin:0;width:10pt;height:10pt;" />&nbsp;<span class="tag">[<a href="http://techsystrade.blog17.fc2.com/?tag=',tag[i][1],'" title="タグ一覧&nbsp;|&nbsp;',tag[i][0],'">',tag[i][0],'</a>]</span>&nbsp;');
document.write('</td>');
}
else{
document.write('<td>');
document.write('<input type="radio" name="q" value="',tag[i][0],'" style="margin:0;width:10pt;height:10pt;" />&nbsp;<span class="tag">[<a href="http://techsystrade.blog17.fc2.com/?tag=',tag[i][1],'" title="タグ一覧&nbsp;|&nbsp;',tag[i][0],'">',tag[i][0],'</a>]</span>&nbsp;');
document.write('</td>');
}
}
}
document.write('</tr></table>');
}
//-----------------------------------------------------
}
//*****************************************************
function mkaid(cn){
//-----------------------------------------------------
var dt = document.getElementById('aid');
var str = new Array();
str[0] = '<tr><td width="100" style="text-align:center;"><a href="http://fx.blogmura.com/" target="_blank"><img src="http://fx.blogmura.com/img/fx88_31.gif" width="88" height="31" style="border:none;" alt="にほんブログ村 為替ブログ" /></a></td><td><p><a href="http://fx.blogmura.com/" target="_blank" style="color:#FF0000;">にほんブログ村 為替ブログ</a> 為替の投資情報から投資手法まで様々なカテゴリーがあり、現在4486人のブロガーが参加中！</p><p><a href="http://fx.blogmura.com/fxinfo/" target="_blank" style="color:#0000FF;">為替投資情報</a>（475人参加中）や<a href="http://fx.blogmura.com/dollar-yen/" target="_blank" style="color:#0000FF;">ドル円</a>（205人参加中）、<a href="http://fx.blogmura.com/fxstudenttrader/" target="_blank" style="color:#0000FF;">FX 学生投資家</a>（60人参加中）のカテゴリーがあります。</p></td></tr>';
str[1] = '<tr><td width="100" style="text-align:center;"><a href="http://blog.with2.net/link.php?662486" target="_blank"><img src="http://blog-imgs-18.fc2.com/t/e/c/techsystrade/rank_with2.gif" style="border:none;" alt="為替 - 人気ブログランキング" width="88" height="31" /></a></td><td><p><a href="http://blog.with2.net/link.php?662486" target="_blank" style="color:#FF0000;">人気ブログランキング</a> カテゴリ（社会・経済）のサブカテゴリ（金融・投資）、為替ブログランキングになります。現在895人のブロガーが参加中！</p></td></tr>';
str[2] = '<tr><td width="100" style="text-align:center;"><a href="http://blogranking.fc2.com/in.php?id=307038" target="_blank"><img src="http://blog-imgs-18.fc2.com/t/e/c/techsystrade/rank_FC2.gif" style="border:none;" alt="FC2ブログランキング" width="88" height="31" /></a></td><td><p><a href="http://blogranking.fc2.com/in.php?id=307038" target="_blank" style="color:#FF0000;">FC2ブログランキング [株式・投資・マネー]</a> 現在4404人のブロガーが参加中！</p><p><a href="http://blogranking.fc2.com/in.php?id=307038" target="_blank" style="color:#0000FF;">外国為替</a>（1344人参加中）や<a href="http://blogranking.fc2.com/in.php?id=307038" target="_blank" style="color:#0000FF;">学生投資家</a>（62人参加中）などのカテゴリがあります。</p></td></tr>';
if((cn!=0)&&(cn!=1)){
var rand = Math.floor(Math.random()*str.length);
dt.className = "entry_tag";
dt.innerHTML = '<fieldset><legend style="font-size:16pt;color:#FF0000;font-weight:bold;text-align:center;">応援をポチっとお願いします！</legend><table summary="Blog Ranking" width="550">'+str[rand]+'</table></fieldset><div style="text-align:right;"><a href="#aid" onclick="showhide(\'aid\');return false;" onkeypress="return false;" style="text-decoration:underline;">-Close</a></div>';
}
//-----------------------------------------------------
}
//*****************************************************
function mkli(){
//-----------------------------------------------------
jmp = new Array();
msg = new Array();
//-----------------------------------------------------
jmp[0] = "http://techsystrade.blog17.fc2.com/";
msg[0] = "Blog";
//-----------------------------------------------------
jmp[1] = "http://techsystrade.web.fc2.com/Blog_tool.html";
msg[1] = "BlogTool";
//-----------------------------------------------------
jmp[2] = "http://techsystrade.web.fc2.com/System_Trade.html";
msg[2] = "SystemTrade";
//-----------------------------------------------------
jmp[3] = "http://techsystrade.web.fc2.com/PositionOrder_Cumulative.html";
msg[3] = "Orders and Positions (Cumulative)";
//-----------------------------------------------------
jmp[4] = "http://techsystrade.web.fc2.com/PositionOrder_Noncumulative.html";
msg[4] = "Orders and Positions (Noncumulative)";
//-----------------------------------------------------
jmp[5] = "http://techsystrade.web.fc2.com/Info_World.html";
msg[5] = "Info World";
//-----------------------------------------------------
document.write('<table align="center" bgcolor="#ffffff"><tr>');
for(i = 0; i < 6; i++) document.write('<td><a href="'+jmp[i]+'"title="'+msg[i]+'"style="text-decoration:none;">['+msg[i]+']</a></td>');
document.write('</tr></table>');
//-----------------------------------------------------
}
//*****************************************************