//idea2006
//Netscape reload-----------------------------
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//window open-------------------------------
var nWinArray = 0;
var winArray = new Array();
function showWindow(url, name, w, h){
	var x =0;
	var y =0;
	var para = "width=" + w + ",height=" + h + ",left=" + x + ",top="+ y
			+ ",toolbar=yes,location=yes,titlebar=yes,menubar=yes,resizable=yes,scrollbars=yes"
			+ ",status=yes";
	win = window.open(url, name, para);
	win.focus();
	winArray[nWinArray] = win;
	++nWinArray;
}

var nWinArray = 0;
var winArray = new Array();
function showWindow2(url, name, w, h){
	var x =0;
	var y =0;
	var para = "width=" + w + ",height=" + h + ",left=" + x + ",top="+ y
			+ ",toolbar=no,location=no,titlebar=no,menubar=no,resizable=no,scrollbars=no"
			+ ",status=no";
	win = window.open(url, name, para);
	win.focus();
	winArray[nWinArray] = win;
	++nWinArray;
}

function deleteAllWindow(){
	for (var i = 0; i < winArray.length; i++) {
		if (!winArray[i].closed)
			winArray[i].close();
	}
}

//txt move----------------------------
count = 0;
str = "　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　　";
str2 = "sample";
str3 = str + str2;
tmax = 45;

function moveText()
{	
	document.myFORM.myText.value = str3.substr(count++,tmax);
	timer1 = setTimeout('moveText()',200);
	if (count == str.length){
		document.myFORM.myText.value = str2;
		clearTimeout(timer1);}
}

//Parents window　---------------------------
function ctrhelpWin()
{
	window.opener.location.href = "http://ideacon.jp/contents/help/help_top.htm";
}

//Parents window2　---------------------------
function ctrdxnWin()
{
	window.opener.location.href = "https://www.ideacon.co.jp/form/dxn-quay.htm";
}
