if (self.location.href.indexOf("lkhead") >= 0 || self.location.href.indexOf("lkbody") >= 0)
	TopFrm("link.html");
else
if (self.location.href.indexOf("exhead") >= 0)
	TopFrm("index.html");
else
	TopFrm("");

function TopFrm(frm) {
	if (frm == "") {
		if (top != self)
			top.location.href = self.location.href;
	} else
	if (self.location == top.location)
		window.open(frm, "_top");
}

function OutGIF(nm) {
	document.images[nm].src = "images/" + nm + "n.gif";
}

function OvrGIF(nm) {
	document.images[nm].src = "images/" + nm + "s.gif";
}

function OutJPG(nm) {
	document.images[nm].src = "images/" + nm + "n.jpg";
}

function OvrJPG(nm) {
	document.images[nm].src = "images/" + nm + "s.jpg";
}

function OpenMap() {
	OpenWin('subwin/map.html', 'あんしんパートナーズ地図', 720, 690);
}

function OpenRcr() {
	OpenWin('subwin/rcrt.html', 'あんしんパートナーズ正社員募集', 600, 530);
}

function OpenWin(url, nm, xs, ys) {
	var att = "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";

	att += ",width=" + xs;
	att += ",height=" + ys;
	att += ",alwaysRaised=yes";

	var win = window.open(url,nm,att);

	if (!IsIE())
		win.focus();
}

function CloseWin() {
	window.close();
}

function PrintWin() {
	window.print();
}

function Inquiry() {
	var s3 = "inpartners.co.jp";
	var s2 = "lto:ks@ans";
	var s1 = "mai";

	location.href = s1 + s2 + s3;
}

function IsIE() {
	return navigator.appVersion.indexOf("MSIE") >= 0;
}

function SetFrm(nm, hd, bd) {
	TopFrm("");

	document.open();
	document.write("<title>" + nm + "</title></head>");

	document.write("<frameset rows=\"100,*\" frameborder=\"no\" border=\"0\" framespacing=\"0\">");
	document.write("<frame src=\"" + hd + "\" name=\"frhead\" id=\"frhead\" title=\"HeadFrame\" scrolling=\"No\" noresize=\"noresize\" />");
	document.write("<frame src=\"" + bd + "\" name=\"frbody\" id=\"frbody\" title=\"BodyFrame\" />");
	document.write("</frameset>");
	document.write("<noframes>");
	document.write("<body><p>フレーム対応のブラウザでご覧下さい。</p></body>");
	document.write("</noframes>");

	document.close();
}

function ExtSys(no) {
	var nm;
	var hf;

	if (no == 11) {
		nm = "損害保険(個人)";
		hf = "http://www3.tokiomarine-nichido.co.jp/servlet/ET17.HT1733.HT173301.HT173301Servlet01?__appl_categoty=S01&amp;__appl_code=A01&amp;__seamless_id=092302402__02&amp;__disable_appl=&amp;__product_category=C01C02C03C04C05C06C07C08C09C10&amp;__group_flag=1";
	} else
	if (no == 12) {
		nm = "損害保険(法人)";
		hf = "http://travel.tokiomarine-nichido.co.jp/servlet/ET17.HT1733.HT173301.HT173301Servlet01?__appl_categoty=S01&amp;__appl_code=A01&amp;__seamless_id=092302402__02&amp;__disable_appl=&amp;__product_category=T00&amp;__group_flag=1";
	} else
	if (no == 41) {
		nm = "生命保険(個人)";
		hf = "http://www3.tokiomarine-nichido.co.jp/servlet/ET17.HT1733.HT173308.HT173308Servlet01?__appl_categoty=S11&amp;__appl_code=A01&amp;__seamless_id=092302402__02&amp;__disable_appl=S03S04S05S09S10&amp;__product_category=K01K02K03K04&amp;__group_flag=0";
	} else
	if (no == 21) {
		nm = "自動車保険お見積";
		hf = "estcar/index.html";
	} else
	if (no == 31) {
		nm = "海外旅行保険ご契約";
		hf = "cntgai/index.html";
	} else
	if (no == 32) {
		nm = "国内旅行総合保険ご契約";
		hf = "cntnai/index.html";
	}

	nm = "あんしんパートナーズ−" + nm;

	SetFrm(nm,"exhead.html",hf);
}


