// ログインフォームテキスト表示
function showMenu(menuname){
	document.getElementById(menuname).style.display = "block";
}
function hideMenu(menuname){
	document.getElementById(menuname).style.display = "none";
}
function RestoreText(object,frm){
	if (frm.value == ""){
	document.getElementById(object).style.display = "block";
	}
}


//ライブラリロールオーバー
function imgRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {  
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));  
                }
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}  
if(window.addEventListener) {
	window.addEventListener("load", imgRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", imgRollover);
}


//SSポップアップ
function popup(img,name,ttl,w,h,alt){
    var prm="";
    var win=window.open("",name,"directories=no,width="+w+",height="+h+prm);
    win.document.open("text/html", "replace");
    win.document.write('<html><head><title>'+ttl+'</title></head>');
    win.document.write('<body style="margin:0px;" bgcolor="#ffffff">')
    win.document.write('<a href="JavaScript:window.close();"><img src="'+img+'" alt="'+alt+'" border="0"></a></body></html>');
    win.document.close();
}


//Window Open
function winOpen(URL, winName, features){
	window.open(URL, winName, features);
}