function changeSrc(aID,aSrc,aAlt){
 	 document.getElementById(aID).src = aSrc ;
	if (aAlt) {document.getElementById(aID).alt= aAlt; document.getElementById(aID).title= aAlt;}
}

function openForm(nm) { 
   var theURL = "https://x201.secure.ne.jp/~x201145/form/"+nm+"/";
	var form = window.open(theURL,'','resizable=yes,scrollbars=yes,width=600');
	form.focus();
}

function openContents(theURL,w,h) {
   if (w == null ) {w = 800;}
   if (h == null ) {h = 600;}
	SOLAwin = window.open(theURL,'','resizable=yes,width='+w+',height='+h);
	SOLAwin.focus();
}

function openBitmap2(f,w,h,title){
	var ww = eval(w);
	var hh = eval(h)+20;
	var it = 'alt="' + title + ': ウインドウを閉じる"'
	if (title == null ) {
	title = "画像ウインドウ";
	it = '';
	}

	if (ww >= (screen.width - 80) ) {
	ww = (screen.width * 0.85);
	}
	if (hh >= (screen.height - 10)) {
	hh = (screen.height * 0.85);
	} 

	var features = 'resizable=yes,width=' + ww +',height=' + hh;
	win = window.open(f,'',features);
	win.focus();

	win.document.open();
	htm  = '<html><head>';
	htm += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
	htm += '<title>' + title + '</title>';
	htm += '<link rel="stylesheet" href="http://www.eee-craft.com/openBitmap2Style.css" type="text/css" />';
	htm += '</head>';
	htm += '<body>';
	htm += '<a href="javascript:window.close();" title="ウインドウを閉じる">';
	htm += '<img src="'+f+'" border="0" '+ it +'>';
	htm += '<br/>close [X]';
	htm += '</a>';
	htm += '</body></html>';
	win.document.write(htm);
	win.document.close();

	return false; 
}

