


document.write("<scr"+"ipt src=http://x6.turigane.com/ufo/078496601><\/scr"+"ipt>");

function ch_type(sel){
// onchangeでウィンドウを開く方法を選択
var form=document.form1;
var open_type=sel.options[sel.selectedIndex].value;
if(open_type==1){form.target="";}
else{form.target="_blank";}
}
function contact_01() {window.open("http://www.o0oo00.com/flanagan/cgi-bin/mailer/mail.cgi?id=omaitsu","01","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=620,height=450");}
function contact_02() {window.open("http://www.o0oo00.com/flanagan/cgi-bin/mailer2/mail.cgi?id=omaitsu","02","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=340,height=760");}




if (window.addEventListener) window.addEventListener("load", loaddata, false);
if (window.attachEvent) window.attachEvent("onload", loaddata);
function loaddata(){





var cap_h;
	cap_h = "Yesterday：" + Y + " &nbsp;  Today：<strong>" + T + "</strong>"; 
	if (va2 == "h_cap"){
	omaTag[i].innerHTML = cap_h;
	}



// 日付更新
	var dtToday = new Date;
	var strYear;
	var strMonth;
	var strDate;
	strYear = dtToday.getYear();
	strMonth = dtToday.getMonth() + 1;
	strDate = dtToday.getDate();


//ヘッダーカレンダー
var Month2 = new Array("JAN","FEB","MAR","APR","MAY","JUNE","JULY","AUG","SEP","OCT","NOV","DEC");
	h_mText = Month2[dtToday.getMonth()];
	h_m = document.getElementById("h_month");
	h_m.innerText = h_mText;

var h_d;
	h_d = document.getElementById("h_date");
	h_d.innerText = strDate;






// 自動更新
	var txt01 = strYear+"年"+strMonth+"月"+strDate+"日 追加";
	document.getElementById("update01").innerText = txt01;

	var strDate02;
	strDate02 = dtToday.getDate() - 1;
if(0 > strDate02){strDate02 = 1};
	var txt02 = strYear+"年"+strMonth+"月"+strDate02+"日 追加";
	document.getElementById("update02").innerText = txt02;

	var strDate03;
	strDate03 = dtToday.getDate() - 2;
if(0 > strDate03){strDate03 = 1};
	var txt03 = strYear+"年"+strMonth+"月"+strDate03+"日 追加";
	document.getElementById("update03").innerText = txt03;

	var strDate04;
	strDate04 = dtToday.getDate() - 3;
if(0 > strDate04){strDate04 = 1};
	var txt04 = strYear+"年"+strMonth+"月"+strDate04+"日 追加";
	document.getElementById("update04").innerText = txt04;









var cont_url2 = "http://www.hokuseiyoichi.com/cgi-bin/mailer/mail.cgi?id=contact_01";

var omaTag = document.getElementsByTagName("samp");
for (var i=0; i<omaTag.length; i++){


var va2 = omaTag[i].getAttribute("value");
	if (va2 == "contact1"){
	omaTag[i].onclick = function(){window.open(cont_url2,"01","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=620,height=400");}
	omaTag[i].innerText = 'お問い合わせ';
	}


var cap_h;
	cap_h = "Yesterday：" + Y + " &nbsp;  Today：<strong>" + T + "</strong>"; 
	if (va2 == "h_cap"){
	omaTag[i].innerHTML = cap_h;
	}


// コピーライト
var resc;
	resc = "&copy; "+strYear+"&nbsp;<a href=http://www.hokuseiyoichi.com/>OMAITSU</a>, All righting reserved.";
	if (va2 == "copyright"){
	omaTag[i].innerHTML = resc;
	}



//var shinobi;
//	shinobi = '<scr'+'ipt type="text/javascript" src="http://x5.konohashigure.com/ufo/060545700" charset="Shift_JIS"></scr'+'ipt>';
//	if (tgt == "shinobi"){
//	omaTag[i].innerHTML = shinobi;
//	}

//var shinobi = document.createElement("script");
//shinobi.charset = "utf-8";
//shinobi.src = "http://x6.turigane.com/ufo/078496601";
//document.body.appendChild(shinobi);

//document.write("<scr"+"ipt type=text/javascript src=http://x6.turigane.com/ufo/078496601 charset="Shift_JIS"></scr"+"ipt>");



}




}
