﻿window.onload=autoPOP;

function autoPOP()
{
var x = document.getElementsByTagName('a');
for (var i=0;i<x.length;i++)
	{
		if (x[i].getAttribute('className') == 'popup' || x[i].getAttribute('class') == 'popup')
			{
			x[i].onclick = function () {
				return winOpen(this.href)
			}
			x[i].title += '';
		}
	}

var y = document.getElementsByTagName('area');
for (var i=0;i<y.length;i++)
	{
		if (y[i].getAttribute('className') == 'popup' || y[i].getAttribute('class') == 'popup')
			{
			y[i].onclick = function () {
				return winOpen(this.href)
			}
			y[i].title += '';
		}
	}
	
};

function winOpen(url) {
window.open(
url,
'popup',
'width=750,scrollbars=1,resizable=1'
);

return false;
};