// JavaScript Document
// author takaaki.koyama
//
// popup.js
// inported by service/sunwoodpolicy
// win size is fix as flash content.

window.onload=setpop;

function setpop()
{
	var elm = document.getElementsByTagName('a');
	for (var i=0;i<elm.length;i++)
	{
		if (elm[i].getAttribute('className') == 'popup' || elm[i].getAttribute('class') == 'popup')
		{
			elm[i].onclick = function () {
			return winOpen(this.href)
			}
			elm[i].title += 'pop up open';
		}
	}
};

function winOpen(url) {
	window.open(
		url,
		'popup',
		'width=750,height=720,scrollbars=1,resizable=1'
	);

	return false;
};
