function newwin(url, w, h) {
	var mydate = new Date();
	window.open(url,'win' + mydate.getTime(),'scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no,width=' + w + ',height=' + h);
}
function newwin2(url, w, h) {
	var mydate = new Date();
	window.open(url,'win' + mydate.getTime(),'scrollbars=yes,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no,width=' + w + ',height=' + h);
}
function A_Li(){
Sel=document.Link1.OP.selectedIndex;
Ms=document.Link1.OP.options[Sel].value;
parent.main.location.href=Ms;
}
//ウィンドウオープン(画面中央)
function openWindow(url, width, height) {
	var mydate = new Date();
	var top = (screen.availHeight - height) / 2;
	var left = (screen.availWidth - width) / 2;
	window.open(url, 'win' + mydate.getTime(), 'scrollbars=no,resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no,top=' + top + ',left=' + left + ',width=' + width + ',height=' + height);
}
//ウィンドウオープン(スクロールなし)
function dispWin(url, width, height) {
	var mydate = new Date();
	window.open(url, 'win' + mydate.getTime(), 'scrollbars=no,resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no,width=' + width + ',height=' + height);
}
//ウィンドウオープン(スクロールあり)
function dispWin2(url, width, height) {
	var mydate = new Date();
	window.open(url, 'win' + mydate.getTime(), 'scrollbars=yes,resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no,width=' + width + ',height=' + height);
}
//詳細プロフオープン
function openProf(id) {
	var mydate = new Date();
	window.open('profwindow.aspx?id=' + id, 'prof' + mydate.getTime(), 'scrollbars=no,resizable=yes,menubar=no,status=no,toolbar=no,location=no,directories=no,width=700,height=474');
}
//チェック項目取得
function getChecked() {
	var data = '';
	var itemcou;
	var i;
	//リスト無し
	if (!MyForm.chklist) {
		return '';
	}
	//リスト1件
	if (!MyForm.chklist[0]) {
		if (MyForm.chklist.checked == true) {
			return MyForm.chklist.value;
		} else {
			return '';
		}
	}
	//リスト複数件
	itemcou = MyForm.chklist.length
	for (i=0;i<itemcou;i++) {
		if (MyForm.chklist[i].checked == true) {
			if (data>'') data = data + ',';
			data = data + MyForm.chklist[i].value
		}
	}
	return data ;
}
//全選択、全解除
function changeSelect(flg) {
	var data = '';
	var itemcou;
	var i;
	//リスト無し
	if (!MyForm.chklist) {
		return '';
	}
	//リスト1件
	if (!MyForm.chklist[0]) {
		MyForm.chklist.checked = flg
	}
	//リスト複数件
	itemcou = MyForm.chklist.length
	for (i=0;i<itemcou;i++) {
		MyForm.chklist[i].checked = flg
	}
	return data ;
}
//テキスト出力(クロスブラウザ対応)
function changeText(layName,html){
	if(document.getElementById){        //e5,e6,n6,n7,m1,o7,s1用
		document.getElementById(layName).innerHTML=html
	} else if(document.all){            //e4用
		document.all(layName).innerHTML=html
	} else if(document.layers) {        //n4用
		with(document.layers[layName].document){
			open()
			write(html)
			close()
		}
	}
}
//イメージ切り替え(クロスブラウザ対応)
function changeImage(layName,html){
	if(document.getElementById){        //e5,e6,n6,n7,m1,o7,s1用
		document.getElementById(layName).src=html
	} else if(document.all){            //e4用
		document.all(layName).src=html
	} else if(document.layers) {        //n4用
	}
}
//リンク先切り替え(クロスブラウザ対応)
function changeLink(layName,html){
	if(document.getElementById){        //e5,e6,n6,n7,m1,o7,s1用
		document.getElementById(layName).href=html
	} else if(document.all){            //e4用
		document.all(layName).href=html
	} else if(document.layers) {        //n4用
	}
}
