/***********************************************************************
 * 
 * serial YYYYMMDDNN
 *        2007122101
 * mod    20081126
 *
 ***********************************************************************/


var img = new Array;

img[0] = "image_top01_1.jpg";
img[1] = "image_top01_2.jpg";

function random_img(){
  var i = myrandom(img.length) - 1;
  document.write("<img src=\""+img[i]+"\">");
}

function myrandom(max){
  var v = max * Math.random();
  if(v == 0.0) {
    v = 1;
  } else {
    v = Math.ceil(v);
  }
  return v;
}

function alertW(){
  window.open("http://www.nttsmarttrade.co.jp/alert/","alert","scrollbars=yes,width=420,height=500,top=50,left=50");
}

/*
function accountW(){
  window.open("/account/swf/","accountSwf","scrollbars=yes,width=678,height=618,top=50,left=50");
}
*/

function account_htmlW(){
  window.open("http://www.nttsmarttrade.co.jp/account/olaccountgif/0/001.php","accountHtml","scrollbars=yes,width=678,height=618,top=50,left=50");
}

function tradeloginW(){
  window.open("https://fx.nttsmarttrade.co.jp/ntthp/servlet/login","tradeLogin","scrollbars=yes,width=300,height=260,top=50,left=50");
  urchinTracker('/toppage_login');
}

function mypageloginW(){
  window.open("https://web.nttsmarttrade.co.jp/mypage/","myPage");
}

function materialW(){
  window.open("https://ap.nttsmarttrade.co.jp/form/request.php?attribute_type=1","material","scrollbars=yes,width=678,height=600,top=50,left=50");
}

function materialCorpW(){
  window.open("https://ap.nttsmarttrade.co.jp/form/request.php?attribute_type=0","materialCorp","scrollbars=yes,width=678,height=600,top=50,left=50");
}

function account_CorpW(){
  window.open("http://www.nttsmarttrade.co.jp/account/olaccountgif/business/001.php","account_Corp","scrollbars=yes,width=678,height=618,top=50,left=50");
}

function member(winURL){
  window.open(winURL,"member","location=yes,status=yes,titlebar=yes,menubar=yes,toolbar=yes,scrollbars=yes,left=150");
  urchinTracker('/toppage_member');
}

function top_accountW(){
  urchinTracker('/toppage_account');
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height) {
  if(popUpWin) {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function tmt_fullscreen(url, scrolll) {
  draglade=window.open(url, "demo00", "width=1020" + ",height=780" + ",top=0,left=0,scrollbars=" + scrolll + ",status=no"+ ",resizable=no");
  draglade.focus();
}

function demoW(url){
  window.open(url,"mobiledemo", "scrollbars=yes,width=280,height=650,top=0,left=0");
}

function popUp(winURL){
  window.open(winURL,"signalmap_rule","location=yes,scrollbars=yes,width=800,height=600,left=50");
}
