function doSubmit(name, isSSL, formIndex) {

	var path = "";
	var protocol = "https://";
	var host = window.location.host;
	var contextPath ="";
	var fileName = name;
	var fi = formIndex;

	if (isSSL == true) {
		protocol= "https://";
	} else {
		protocol = "http://";
	}

	if (0 <= window.location.pathname.indexOf("insweb")) {
		contextPath = "/insweb";
	}
	
	if (name.indexOf(".") == -1) {
		fileName = name + ".htj";
	}
	
	if (name.substr(0, 1) != "/") {
		fileName = "/" + fileName;
	}
	
	if (formIndex == null || formIndex == "") {
		fi = 0;
	}

	// action
	path = protocol + host + contextPath + fileName;
	
	//alert(path);

	document.forms[fi].action = path;	
	document.forms[fi].submit();

}


function doSubmitNewWindow(name, isSSL, formIndex) {

	var path = "";
	var protocol = "https://";
	var host = window.location.host;
	var contextPath ="";
	var fileName = name;
	var fi = formIndex;

	if (isSSL == true) {
		protocol= "https://";
	} else {
		protocol = "http://";
	}

	if (0 <= window.location.pathname.indexOf("insweb")) {
		contextPath = "/insweb";
	}
	
	if (name.indexOf(".") == -1) {
		fileName = name + ".htj";
	}
	
	if (name.substr(0, 1) != "/") {
		fileName = "/" + fileName;
	}
	
	if (formIndex == null || formIndex == "") {
		fi = 0;
	}

	// action
	path = protocol + host + contextPath + fileName;
	
	//alert(path);

	document.forms[fi].action = path;	
	document.forms[fi].target = "_blandk";	
	document.forms[fi].submit();

}




function start_auto(click) {

	var path = "";
	var protocol = "https://";
	var host = window.location.host;
	var fileName = "/auto/web_auto_01.htj?click=" + click;
	var fi = 0;

	// action
	path = protocol + host + fileName;
	
	//alert(path);

	document.forms[fi].action = path;	
	document.forms[fi].target = "_blandk";	
	document.forms[fi].submit();
}




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}