function DoClick ()
{
//	alert(window.top.frames(1).document.cols);
//	alert("OK");
//	alert(window.frames.length);//.name);
}



function SelKen ()
{
	var si  = document.Selector.KEN.selectedIndex;
	if (si==-1) {
		alert("リストを選択してください。")
		return;
	}

	var sc = document.Selector.KEN.options[si].value;
	if (sc!="") {
		var	Lnk='/cgi-bin/amusa?eyado.Ken(';
		Lnk=Lnk+'"'+sc+'")'
		top.menu.location.href = Lnk;
//alert('/e-yado/'+sc+'.html');
//		top.main.location.href = '/e-yado/'+'gunma2'+'.html';
//		top.main.location.href = '/e-yado/'+'gunmasc+'.html';
	}
	top.main.location.href = '/e-yado/null.html';
	top.menu.document.Selector.NO.value=0;
	top.menu.document.Selector.NAME.value="";
	top.menu.document.Selector.TEL.value="";
	top.menu.document.Selector.FAX.value="";
	top.menu.document.Selector.ADDRESS.value="";
	top.menu.document.Selector.E_MAIL.value="";
	top.menu.document.Selector.URL.value="";
	top.menu.document.Selector.ST.value="";
	top.menu.document.FIND1.p.value="";
	top.menu.document.FIND2.p.value="";
	top.menu.document.FIND3.p.value="";
}


function SelGunsi ()
{
	var ken  = document.Selector.KEN.value;
	var si  = document.Selector.GUNSI.selectedIndex;
	if (si==-1) {
		alert("リストを選択してください。")
		return;
	}

	var sc = document.Selector.GUNSI.options[si].value;
	if (sc!="") {
//		var	Lnk='/cgi-bin/amusa?eyado.Gunsi(';
//		Lnk=Lnk+'"'+sc+'")'
//		top.main.location.href = Lnk;
		Lnk2='/cgi-bin/amusa?eyado.SelStyle("'+sc+'")';
		top.menu.location.href = Lnk2;
	}
	top.main.location.href = '/e-yado/null.html';
	top.menu.document.Selector.NO.value=0;
	top.menu.document.Selector.NAME.value="";
	top.menu.document.Selector.TEL.value="";
	top.menu.document.Selector.FAX.value="";
	top.menu.document.Selector.ADDRESS.value="";
	top.menu.document.Selector.E_MAIL.value="";
	top.menu.document.Selector.URL.value="";
	top.menu.document.Selector.ST.value="";
	top.menu.document.Selector.CONTENTS.value="";
	top.menu2.document.FIND1.p.value="";
	top.menu2.document.FIND2.p.value="";
	top.menu2.document.FIND3.p.value="";
}


function GoList(KEN,CODE)
{
	var si  = document.Selector.STYLE.selectedIndex;
	var st = document.Selector.STYLE.options[si].value;
	if (st!="") {
		var	Lnk='/cgi-bin/amusa?eyado.List("';
		Lnk=Lnk+KEN+'","';
		Lnk=Lnk+CODE+'","';
		Lnk=Lnk+st+'")';
		top.main.location.href = Lnk;
	}
	top.menu.document.Selector.NO.value=0;
	top.menu.document.Selector.NAME.value="";
	top.menu.document.Selector.TEL.value="";
	top.menu.document.Selector.FAX.value="";
	top.menu.document.Selector.ADDRESS.value="";
	top.menu.document.Selector.E_MAIL.value="";
	top.menu.document.Selector.URL.value="";
	top.menu.document.Selector.ST.value="";
	top.menu.document.Selector.CONTENTS.value="";
	top.menu2.document.FIND1.p.value="";
	top.menu2.document.FIND2.p.value="";
	top.menu2.document.FIND3.p.value="";
}


function DataSet(NO,NAME,TEL,FAX,ADD,E_MAIL,URL,STYLE,CONTENTS,DELFLG)
{
	top.menu.document.Selector.NO.value=NO;
	top.menu.document.Selector.NAME.value=NAME;
	top.menu.document.Selector.TEL.value=TEL;
	top.menu.document.Selector.FAX.value=FAX;
	top.menu.document.Selector.ADDRESS.value=ADD;
	top.menu.document.Selector.E_MAIL.value=E_MAIL;
	top.menu.document.Selector.URL.value=URL;
	top.menu.document.Selector.ST.value=STYLE;
	top.menu.document.Selector.CONTENTS.value=CONTENTS;

	if (DELFLG==1)
		top.menu.document.Selector.DELETE.checked=true;
	else
		top.menu.document.Selector.DELETE.checked=false;
	top.menu2.document.FIND1.p.value=NAME;
	top.menu2.document.FIND2.p.value=TEL;
	top.menu2.document.FIND3.p.value=NAME+" "+TEL;
	if (URL!="" )
		top.main.location.href = URL;

}



function _DataSet(NO)
{
	var	Lnk='/cgi-bin/amusa?eyado.SetData(';
	Lnk=Lnk+NO+')';
	top.main.location.href = Lnk;
//alert(Lnk);
}


function cngbg(sel){
    var si  = document.MKCSS.BGCOLOR.selectedIndex;
    var sc = document.MKCSS.BGCOLOR.options[si].value;
	document.bgColor = sc;
}


function cngbgimg(src,side)
{
	var	radio = document.BGIMG.SIDE;
	var	TXT;

	if (radio.length){
		for (i=0; i < radio.length; i++){
			if (radio[i].checked){
				TXT = radio[i].value;
			}
		}
	} else {
		if (radio.checked){
			TXT	= radio.value;
		}
	}


	if (TXT=="BODY") {
		document.BGIMG.BACK.value = src;
		window.opener.parent.main.document.body.background = src;
	} else if (TXT=="LEFT") {
		document.BGIMG.LMENU.value = src;
		window.opener.parent.left.document.body.background = src;
	} else if (TXT=="TOP") {
		document.BGIMG.TMENU.value = src;
		window.opener.parent.left.document.body.background = src;
	} else {
		var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(TXT)
			|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(TXT);

		if (obj) {
			obj.style.background = "url("+src+")";
			if (TXT=="MenuColor") {
				document.BGIMG.LMENU.value = src;
			}else if (TXT=="TopColor") {
				document.BGIMG.TMENU.value = src;
			}
		}
	}
}

function TagImg(id,src)
{
	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.background="url("+src+")";
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}

function bgcol(itm,id)
{
	var si  = document.MKCSS[itm].selectedIndex;
	var sc = document.MKCSS[itm].options[si].value;
	var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(id)
		|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(id);

	if (obj)
		obj.style.backgroundColor = sc;
}


function _bgcol(itm,id)
{
	var si  = document.BGIMG[itm].selectedIndex;
	var sc = document.BGIMG[itm].options[si].value;
	var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(id)
		|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(id);

	if (obj)
		obj.style.backgroundColor = sc;
}


function txtcolor(itm,id)
{
	var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(id)
		|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(id);
    var si  = document.MKCSS[itm].selectedIndex;
    var sc = document.MKCSS[itm].options[si].value;

	if (obj)
		obj.style.color = sc;
}


function TagBgColor(itm,id)
{
    var si  = document.MKCSS[itm].selectedIndex;
    var sc = document.MKCSS[itm].options[si].value;

	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.background=sc;
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}


function _TagBgColor(itm,id)
{
    var si  = document.BGIMG[itm].selectedIndex;
    var sc = document.BGIMG[itm].options[si].value;

	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.background=sc;
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}


function TagFontColor(itm,id)
{
    var si  = document.MKCSS[itm].selectedIndex;
    var sc = document.MKCSS[itm].options[si].value;

	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.color=sc;
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}


function TagFontSize(itm,id)
{
    var si  = document.MKCSS[itm].selectedIndex;
    var sc = document.MKCSS[itm].options[si].value;

	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.fontSize=sc;
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}


function _TagFontSize(itm,id)
{
    var si  = document.BGIMG[itm].selectedIndex;
    var sc = document.BGIMG[itm].options[si].value;

	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		while( tag ) {
			i++;
			tag.style.fontSize=sc;
			tag=window.opener.parent.main.document.getElementsByTagName(id).item(i);
		}
	}
}


function txtsize(itm,Obj){
    var si  = document.MKCSS[itm].selectedIndex;
    var sc = document.MKCSS[itm].options[si].value;

	alert(window.opener.parent.main.document.styleSheets);

	if (window.opener.parent.main.document.all){
//		document.all[Obj].style.font-size = "20pt";//sc;
	} else if (window.opener.parent.main.document.layers) {
	
//		document.layers[Obj].bgColor=sc;
//		document.bgColor=sc;
	} else if (window.opener.parent.main.document.getElementById(Obj)){
		window.opener.parent.main.document.getElementById(Obj).style.size = sc;
	}else{
		alert("NG");
	}
}


function linkcolor(){
    var si  = document.MKCSS.LNKCOLOR.selectedIndex;
    var sc = document.MKCSS.LNKCOLOR.options[si].value;

    window.opener.parent.main.document.linkColor=sc;
	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName('A.hover').item(i);
		while( tag ) {
			i++;
			tag.style.linkColor=sc;
			tag=window.opener.parent.main.document.getElementsByTagName('A.hover').item(i);
		}
	}
}


function _linkcolor(){
    var si  = document.BGIMG.LNKCOLOR.selectedIndex;
    var sc = document.BGIMG.LNKCOLOR.options[si].value;

    window.opener.parent.main.document.linkColor=sc;
	if(window.opener.parent.main.document.getElementsByTagName) {
		var tag;
		var	i=0;

		tag=window.opener.parent.main.document.getElementsByTagName('A.hover').item(i);
		while( tag ) {
			i++;
			tag.style.linkColor=sc;
			tag=window.opener.parent.main.document.getElementsByTagName('A.hover').item(i);
		}
	}
}


function vlinkcolor(){
    var si  = document.MKCSS.VLNKCOLOR.selectedIndex;
    var sc = document.MKCSS.VLNKCOLOR.options[si].value;

    window.opener.parent.main.document.vlinkColor=sc;
}


function _vlinkcolor(){
    var si  = document.BGIMG.VLNKCOLOR.selectedIndex;
    var sc = document.BGIMG.VLNKCOLOR.options[si].value;

    window.opener.parent.main.document.vlinkColor=sc;
}


function alinkcolor(){
    var si  = document.MKCSS.ALNKCOLOR.selectedIndex;
    var sc = document.MKCSS.ALNKCOLOR.options[si].value;

    window.opener.parent.main.document.alinkColor=sc;
}


function _alinkcolor(){
    var si  = document.BGIMG.ALNKCOLOR.selectedIndex;
    var sc = document.BGIMG.ALNKCOLOR.options[si].value;

    window.opener.parent.main.document.alinkColor=sc;
}


function _hlinkcolor(){
    var si  = document.BGIMG.HLNKCOLOR.selectedIndex;
    var sc = document.BGIMG.HLNKCOLOR.options[si].value;

//    window.opener.parent.main.document.hlinkColor=sc;
}



function	_OnMouse(id)
{
	var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(id)
		|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(id);

	if(obj)
		obj.style.backgroundColor = document.MKCSS.ALNKCOLOR.value;
}


function	_OutMouse(id,bg)
{
	var obj=window.opener.parent.main.document.all && window.opener.parent.main.document.all(id)
		|| window.opener.parent.main.document.getElementById && window.opener.parent.main.document.getElementById(id);

	if(obj)
		obj.style.backgroundColor = document.MKCSS[bg].value;
}


function	Jamp(addr,target)
{
	if(target == "here")
		location.href = addr;
	if(target == "top")
		top.window.location.href = addr;
	if(target == "top.mains")
		top.window.mains.location.href = addr;
	if(target == "main")
		parent.main.location.href = addr;
	if(target == "mains")
		parent.mains.location.href = addr;
	if(target == "left")
		parent.left.location.href = addr;
}



function DoTopix( no)
{
 	var	Lnk='/cgi-bin/amusa?main.Orbis.News.ViewNews(';
	Lnk=Lnk+no+')'
	top.location.href = Lnk;
}


function DoNews()
{
    var si  = document.NEWS.LIST.selectedIndex;
	if (si==-1) {
		alert("リストを選択してください。")
		return;
	}
    var sc = document.NEWS.LIST.options[si].value;

	if (sc!="") {
	 	document.NEWS.LIST.selectedIndex=-1;
		var	Lnk='/cgi-bin/amusa?main.Orbis._News.ViewNews(';
		Lnk=Lnk+sc+')'
		top.location.href = Lnk;
	}
}


function DoEvent()
{
    var si  = document.EVENT.LIST.selectedIndex;
	if (si==-1) {
		alert("リストを選択してください。")
		return;
	}
    var sc = document.EVENT.LIST.options[si].value;

	if (sc!="") {
	 	document.EVENT.LIST.selectedIndex=-1;
		var	Lnk='/cgi-bin/amusa?main.Orbis._News.ViewNews(';
		Lnk=Lnk+sc+')'
		top.location.href = Lnk;
	}
}


function DoMovie()
{
    var si  = document.MOVIE.LIST.selectedIndex;
alert(si);
	if (si==-1) {
		alert("リストを選択してください。")
		return;
	}
    var sc = document.MOVIE.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk='/cgi-bin/amusa?main.Orbis._Movie.ViewMovie(';
		Lnk=Lnk+sc+')'
		top.location.href = Lnk;
	}
}


function ViewNews(){
    var si  = document.NEWS.LIST.selectedIndex;
    var sc = document.NEWS.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk='/cgi-bin/amusa?main.Orbis._News.ViewNews(';
		Lnk=Lnk+sc+')'
		top.location.href = Lnk;
	}
}



function ViewNewsBackNo(){
    var si  = document.BACKNO.LIST.selectedIndex;
    var sc = document.BACKNO.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk='/cgi-bin/amusa?main.Orbis._News.ViewNews(';
		Lnk=Lnk+sc+')'
		top.location.href = Lnk;
	}
}




function ViewPlan(){
    var si  = document.PLAN.LIST.selectedIndex;
    var sc = document.PLAN.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk='/cgi-bin/amusa?main.Orbis.stay.ViewPlan(';
		Lnk=Lnk+sc+')'
		top.main.location.href = Lnk;
	}
}


function GoPlan(){
    var si  = document.PLAN.LIST.selectedIndex;
    var sc = document.PLAN.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk='/cgi-bin/amusa?main.Orbis.stay.Mente.Plan.GoPlan(';
		Lnk=Lnk+sc+')'
		top.main.location.href = Lnk;
	}
}


function Section(itm){
    var si  = document.SECTION.LIST.selectedIndex;
    var sc = document.SECTION.LIST.options[si].value;

	if (sc!="") {
	 	var	Lnk="/"+sc+"/index.html";
//		top.mains.location.target= "top";
		window.open(Lnk);
//		top.mains.location.href = Lnk;
	}
}


var moji = "････････ＪＡＶＡスクリプトを使うとNetscapeでもIEでも文字をスクロールさせることが出来ます。";
function textscroll(  ){
	moji = moji.substring(2, moji.length) + moji.substring(0, 2);
	hyouji = moji.substring(0, 54);
	document.Mojiban.box.value = hyouji;
	setTimeout("textscroll()", 300);
}

msg="";
Timing=180;

function scroll(){
	if (Timing==0) {
		document.myform.mytext.value=msg;
	}else{
		msg=msg.substring(1,msg.length)+msg.substring(0,1);
		document.myform.mytext.value=msg;
		setTimeout("scroll()",Timing);
	}
}

function SetScrollMsg(Text)
{
	msg=Text;
}



function SetScrollTime(sec)
{
	Timing=sec;
}



function GetParentItemValue()
{
	var	radio ;
	var	TXT="";

	radio=window.opener.document.News.VIEW;
	if (radio.length){
		for (i=0; i < radio.length; i++){
			if (radio[i].checked){
				TXT = radio[i].value;
				PTS=TXT.indexOf('%',0);
				document.News.CODENO.value=TXT.substring(0,PTS);
				PTE=TXT.indexOf('%',PTS+1);
				document.News.LINK.value=TXT.substring(PTS+1,PTE);
				PTS=PTE;
				PTE=TXT.indexOf('%',PTS+1);
				document.News.IMGLINK.value=TXT.substring(PTS+1,PTE);

				document.News.TEXT.value=TXT.substring(PTE+1,TXT.length);
				document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
				return("");
				break;
			}
		}
		alert("項目が選択されていません.");
		window.close();
		
	}else{
		if (radio.checked){
			TXT = radio.value;
			PTS=TXT.indexOf('%',0);
			document.News.CODENO.value=TXT.substring(0,PTS);
			PTE=TXT.indexOf('%',PTS+1);
			document.News.LINK.value=TXT.substring(PTS+1,PTE);
			PTS=PTE;
			PTE=TXT.indexOf('%',PTS+1);
			document.News.IMGLINK.value=TXT.substring(PTS+1,PTE);
			document.News.TEXT.value=TXT.substring(PTE+1,TXT.length);
			document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
		}
	}

	return(TXT);
}


function GetParentTableValue()
{
	var	radio ;


	radio=window.opener.document.News.TABLE;
	if (radio.length){
		for (i=0; i < radio.length; i++){
			if (radio[i].checked){
				TXT = radio[i].value;
				PTS=TXT.indexOf('%',0);
				document.News.CODENO.value=TXT.substring(0,PTS);
				document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
				return("");
			}
		}
		radio=window.opener.document.News.VIEW;
		if (radio.length){
			for (i=0; i < radio.length; i++){
				if (radio[i].checked){
					TXT = radio[i].value;
					PTS=TXT.indexOf('%',0);
					document.News.CODENO.value=TXT.substring(0,PTS);
					document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
					return("");
				}
			}
		}
		alert("項目が選択されていません.");
		window.close();
		return("")
	}else{
		if (radio.checked){
			TXT = radio.value;
			PTS=TXT.indexOf('%',0);
			document.News.CODENO.value=TXT.substring(0,PTS);
			document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
		}else{
			radio=window.opener.document.News.VIEW;
			TXT = radio.value;
			PTS=TXT.indexOf('%',0);
			document.News.CODENO.value=TXT.substring(0,PTS);
			document.News.SECT_NO.value=window.opener.document.News.SECT_NO.value;
		}
	}
	return("");
}


function dispgraph()
{
	var offtop=200;		//TOPからの表示位置
	var offleft=350;	//LEFTからの表示位置
	var r=100;		//円グラフの半径
	var buf="";
	var sum=0;
	var startangle=0;
	var endangle;
	var sX,sY,eX,eY,pX,pY;
	var n;
	var s;
	var flag;
	var color=new Array();
	var txt=new Array();
	var val=new Array();
	var percent=new Array();
	var Rad=Math.PI/180;
	var label;

	//円グラフの色の指定
	color[0]="#0000FF";
	color[1]="#FF0000";
	color[2]="#008000";

	//各項目のラベルを取得
	txt[0]=""//document.getElementById("label1").childNodes(0).nodeValue;
	txt[1]=""//document.getElementById("label2").childNodes(0).nodeValue;
	txt[2]=""//document.getElementById("label3").childNodes(0).nodeValue;

	//各項目の値を取得
	val[0]=eval(val1.value);
	val[1]=eval(val2.value);
	val[2]=eval(val3.value);

	//項目の値を昇順にソートする
	for(i=0;i<val.length-1;i++){
		for(j=i+1;j<val.length;j++){
			if(val[j]>val[i]){
				n=val[j];s=txt[j];
				val[j]=val[i];txt[j]=txt[i];
				val[i]=n;txt[i]=s
			}
		}
	}

	//項目の合計を計算
	for(var i=0;i<3;i++){
		sum+=val[i];
	}

	//円グラフのVMLを"buf"に格納
	for(var i=0;i<val.length;i++){
		percent[i]=Math.floor(val[i]/sum*100);
		if(i==2){
			endangle=360;
		}else{
			endangle=startangle+Math.floor(val[i]/sum*360);
		}
		if(Math.floor(val[i]/sum*360)>180){
			endangle=startangle+Math.floor((val[i]/sum*360)/2);
			if(!flag){
				flag=true;
			}else{
				flag=false;
			}
		}
		sX=(r-2)-Math.floor(r*Math.cos((90+startangle)*Rad));
		sY=(r-2)-Math.floor(r*Math.sin((90+startangle)*Rad));
		eX=(r-2)-Math.floor(r*Math.cos((90+endangle)*Rad));
		eY=(r-2)-Math.floor(r*Math.sin((90+endangle)*Rad));
		buf+="<v:arc style='position:absolute;top:"+offtop+";left:"+offleft+";height:"+((r-2)*2)+";width:"+((r-2)*2)+"' "
		   + "startangle='"+startangle+"' endangle='"+endangle+"' strokecolor='"+color[i] +"' strokeweight='5pt' fillcolor='"+color[i]+"'/>"
		   + "<v:shape  style='position:absolute;top:"+offtop+";left:"+offleft+";height:"+((r-2)*2)+";width:"+((r-2)*2)+"' strokecolor='"+color[i]+"' fillcolor='"+color[i]+"' "
		   + "coordorigin='0 0' coordsize='"+((r-2)*2)+" "+((r-2)*2)+"' path='m "+(r-2)+","+(r-2)+" l"+sX+","+sY+","+eX+","+eY+" x e'/>"
		startangle=endangle;
		if(flag) i--;
	}
	startangle=0;

	//ラベルのVMLを"buf"に追加
	for(var i=0;i<val.length;i++){
		endangle=startangle+Math.floor(val[i]/sum*360);
		pX=(r-2)-Math.floor((r/2)*Math.cos((90+Math.floor((startangle+endangle)/2))*Rad));
		pY=(r-2)-Math.floor((r/2)*Math.sin((90+Math.floor((startangle+endangle)/2))*Rad));
		for(var j=1;j<val.length;j++){
			switch(j){
			case 1:
				pY=offtop+pY;
				label=txt[i];
				break;
			case 2:
				pY=20+pY;
				label=percent[i]+"%"+"("+val[i]+")";
				break;
			}
			buf+="<div "
			   + "style='position:absolute;top:"+pY+"px;left:"+eval("+offleft+"+pX)+"px;background-color:#FFFFF1'>"
			   +  "<p>"+label+"</p></div>";
		}
		startangle=endangle;
	}

	//VMLを出力
	GraphArea.innerHTML=buf;
}


function playQTSamp ()
{
	var win = window.open( "samples_qt.nc.mov", "QT", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,dependent,width=240,height=250,screenX=0,screenY=50");
	win.focus();
}


function SelectAll()
{
	var	chk ;

	chk=document.LIST;
	if (chk.length){
		for (i=0; i < chk.length; i++){
alert(chk[i].name,"");
			if (chk[i].type="checkbox"){
				chk[i].checked=1;
			}
		}
	}
}

function UnSelectAll()
{
	var	chk ;

	chk=document.LIST;
	if (chk.length){
		for (i=0; i < chk.length; i++){
			if (chk[i].type="checkbox"){
				chk[i].checked=0;
			}
		}
	}
}
