function conf_jmp(url,msg){
	if(confirm(msg)){
		window.open(url,'_self');
	}
	return false;
}


function get_agent(){            // ブラウザを判断する
   myOP = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0; //OP
   myN6 = document.getElementById;  // N6 or IE
   myIE = document.all;             // IE
   myN4 = document.layers;          // N4

   if (myOP){                          // OP?
      return "Opera";
   }else if (myIE){                    // IE?
      return "IE";
   }else if (myN6){                    // N6?
      return "Mozilla";
   }else if (myN4){                    // N4?
      return "N4";
   }
}

function checkSpaceOnly(str, mode) {
	if (mode == "0" && !str.length == 0) { return false; }
	for (var i = 0; i < str.length; i++) {
		if (mode == "1" && str.charCodeAt(i) != 32 && str.charCodeAt(i) != 12288) {
			if (str.charCodeAt(i) == -127 && str.charCodeAt(i+1) == 64) {
				i++;
			} else {
				if (str.charCodeAt(i) == 13) {
					if (str.charCodeAt(i+1) == 10) {
						i++;
					}
				} else {
					return false;
				}
			}
		}
	}
	return true;
}

function subWin(url,tgt){
var w;
w = window.open(url,tgt,"width=910,height=600,resizable=yes,scrollbars=yes");
w.focus();
return false;
}


