var PopURL,PopNAME,PopWidth,PopHeight;

function POPUP(PopURL,PopName,PopWidth,PopHeight){
	var PopDetail = "toolbar=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=" + PopWidth + ",height=" + PopHeight;
	PopWin = window.open(PopURL,PopName,PopDetail);
	PopWin.focus();
}
function POPUP2(PopURL,PopName,PopWidth){
	var PopDetail = "toolbar=yes,location=yes,directories=yes,status=no,menubar=yes,resizable=yes,scrollbars=yes,width=" + PopWidth;
	PopWin = window.open(PopURL,PopName,PopDetail);
	PopWin.focus();
}
function POPUPISL(PopURL,PopName,PopWidth,PopHeight){
	var PopDetail = "toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=" + PopWidth + ",height=" + PopHeight;
	PopWin = window.open(PopURL,PopName,PopDetail);
	PopWin.focus();
}

window.onload = function() {
    var externalLink = document.getElementsByTagName('a');
    for (var i = 0, len = externalLink.length; i < len; i++) {
        var a = externalLink[i];
        if (a.getAttribute('rel') == 'external') {
            a.title = '新しいウィンドウで開きます';
            a.onclick = function() {
                window.open(this.getAttribute('href'), '_blank');
                return false;
            }
        }
    }
}
