window.onload = function() {
	var node_a = document.getElementsByTagName('a');
		for (var i in node_a) {
			if (node_a[i].className == 'popup') {
				node_a[i].onclick = function() {
					return winOpen(this.href)
				};
			}
			else if
			(node_a[i].className == 'popup2') {
				node_a[i].onclick = function() {
					return winOpen2(this.href)
				};
			}
			else if
			(node_a[i].className == 'popup_yoyaku') {
				node_a[i].onclick = function() {
					return winOpen_yoyaku(this.href)
				};
			}
		}
};
function winOpen(url) {
	popwindow = window.open(url,'popup','width=740,height=503,scrollbars=yes,resizable=yes,status=no,navigation=no');
	popwindow.focus();
	return false;
};

function winOpen2(url) {
	popwindow = window.open(url,'popup2','width=490,height=711,scrollbars=yes,resizable=yes,status=no,navigation=no');
	popwindow.focus();
	return false;
};

function winOpen_yoyaku(url) {
	popwindow = window.open(url,'popup2','width=850,height=550,scrollbars=yes,resizable=yes,status=no,navigation=no');
	popwindow.focus();
	return false;
};


