<!--
function platformWin() {
				if (navigator.appVersion.indexOf("Win") != -1) return true;
			}
			function platformMac() {
				if (navigator.appVersion.indexOf("Mac") != -1) return true;
			}
			if (platformWin()) {
				document.writeln('<LINK REL="stylesheet" TYPE="text/css" HREF="../css/stylewin.css">');
			}
			else if (platformMac()) {
				document.writeln('<LINK REL="stylesheet" TYPE="text/css" HREF="../css/stylemac.css">');
			}


if(navigator.appVersion.charAt(0) >= 3) {
 var img = new Array();
 img[0] = new Image();  img[0].src = "../img/head_bt.gif"; //
 img[1] = new Image();  img[1].src = "../img/head_bt_.gif";
 img[2] = new Image();  img[2].src = "../img/bt_l.gif"; //
 img[3] = new Image();  img[3].src = "../img/bt_l_.gif";
 img[4] = new Image();  img[4].src = "../img/bt_s.gif"; //
 img[5] = new Image();  img[5].src = "../img/bt_s_.gif";
}
function change_image(nam,num) {
if(navigator.appVersion.charAt(0) >= 3) {
 document.images[nam].src = img[num].src;
   }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function msgWinOpen(){
	msgWinHandle = window.open("search/index.html", "msgWindow", "width=490,height=550");
}

function msgWinClose(){
	if ( msgWinHandle.closed == false ) msgWinHandle.close();
}

function addTag(type) {
	var selectedString = document.selection.createRange().text;
	var uri = "";
	if(selectedString == null || selectedString.length == 0) {
		alert("文字が選択されていません！");
		return;
	}
	else {
		if(type == "bold") {
			document.selection.createRange().text = "<b>" + selectedString + "</b>";
		}
		else if(type == "font") {
			document.selection.createRange().text = "<font size=\"\" color=\"\">" + selectedString + "</font>";
		}
		else if(type == "week") {
			document.selection.createRange().text = "<font color=\"#000099\">" + selectedString + "</font>";
		}
		else if(type == "holi") {
			document.selection.createRange().text = "<font color=\"#DD0000\">" + selectedString + "</font>";
		}
		else if(type == "center") {
			document.selection.createRange().text = "<div align=\"center\">" + selectedString + "</div>";
		}
	}
}

function addAnchor(type) {
	var selectedString = document.selection.createRange().text;
	var uri = "";
	if(selectedString == null || selectedString.length == 0) {
		alert("文字が選択されていません！");
		return;
	}
	else {
		if(type == "uri") {
			uri = prompt('リンク先のURLをhttp://から入力してください。','http://');
			if(uri != null) {
				document.selection.createRange().text = "<a href=\"" + uri + "\">" + selectedString + "</a>";
			}
		}
		else if(type == "mail") {
			uri = prompt('メールアドレスを入力してください。','');
			if(uri != null) {
				document.selection.createRange().text = "<a href=\"mailto:" + uri + "\">" + selectedString + "</a>";
			}
		}
	}
}

function TopicAnchor(type) {
	var selectedString = document.selection.createRange().text;
	var uri = "";
	if(selectedString == null || selectedString.length == 0) {
		alert("文字が選択されていません！");
		return;
	}
	else {
		document.selection.createRange().text = "<a href=\"http://www.abi-j.com/topics/#\" target=\"_blank\">\"" + selectedString + "</a>";
	}
}

function touchImg(ex, ey) {
	window.opener.document.form.posx.value = ex;
	window.opener.document.form.posy.value = ey;
	
	//this.close();
}

//-->