/*
	$actのセット
*/
function setAct(obj,act){
	obj.act.value = act;
	return true;
}

/*
	確認
*/
function checkConf(){
	return confirm('よろしいですか？');
}

/*
	サブウィンドウ
*/
function openWin(url,width,height){
	var newWin;

	winopt =	"toolbar=no," +
				"scrollbars=yes," +
				"resizable=yes," +
				"location=no," +
				"width=" + width + "," +
				"height=" + height;
	newWin = window.open(url,"dc_subwin",winopt);
	newWin.focus();

}

/*
	文字列表示
*/
function writeStr(name,str){
	if (document.getElementById){
alert(document.getElementById(name).innerHTML);
alert(str);
		document.getElementById(name).innerHTML = str;
	}else if (document.all){
		document.all(name).innerHTML = str;
	}else if (document.layers){
		doc = document.layers[name].document;
		doc.open();doc.write(str);doc.close();
	}
}

/*
	ドキュメント読み取り
*/
function getStr(name){
	if (document.getElementById){
		str = document.getElementById(name).innerHTML;
	}else if (document.all){
		str = document.all(name).innerHTML;
	}else if (document.layers){
		doc = document.layers[name].document;
		doc.open();str = doc.value;doc.close();
	}
	return str;
}

