
/* popupWindow */
$(function doPopup() {
	if (!document.getElementsByTagName) return false;
	var links = document.getElementsByTagName("a");
	for (var i=0; i < links.length; i++) {
		if (links[i].className.match("popup1")) {/* 会社情報閲覧リンク用 */
			links[i].onclick = function() {
			window.open(this.href, "", "width=520,height=600,resizable=yes,scrollbars=yes,location=yes");
			return false;
			}
		}
		else if (links[i].className.match("popup2")) {/* ヘルプ閲覧用 */
			links[i].onclick = function() {
			window.open(this.href, "", "width=520,height=650,resizable=yes,toolbar=no,scrollbars=yes,location=yes");
			return false;
			}
		}
		else if (links[i].className.match("popup3")) {/* 利用規約閲覧用 */
			links[i].onclick = function() {
			window.open(this.href, "", "width=658,height=400,resizable=yes,toolbar=yes,scrollbars=yes,location=yes");
			return false;
			}
		}
	}
}
)


/* Form Text Style */
$(document).ready(function() {
	$("input[@type=password], input[@type=text]").addClass("jText");
	$("input[@type=password], input[@type=text], textarea").focus(function() {
		$(this).addClass("jFocus");
	});
		
	$("input[@type=password], input[@type=text], textarea").blur(function(){
		if ($(this).find(".jFocus")) {
			$(this).removeClass("jFocus");
		}
	});
});

