
function popupcode() 
{
var x = document.getElementsByTagName('a');
for (var i=0;i< x.length;i++)
	{
	if (x[i].className == 'popup1')
		{
		x[i].onclick = function () {
			return popup1(this.href)
			}
		x[i].title += ' (Popup1)';
		}
	}
}

window.onload = popupcode;


function popup1(url)
{
newwindow=window.open(url,'nimi','height=330, width=300, resizable=yes, scrollbars=yes, status=yes');
if (window.focus) {newwindow.focus()}
return false;
}



function popupcode2() 
{
var x = document.getElementsByTagName('a');
for (var i=0;i< x.length;i++)
	{
	if (x[i].className == 'popup2')
		{
		x[i].onclick = function () {
			return popup2(this.href)
			}
		x[i].title += ' (Popup2)';
		}
	}
}

window.onload = popupcode2;

function popup2(url)
{
newwindow=window.open(url,'nimi','height=300, width=330, resizable=yes, scrollbars=yes, status=yes');
if (window.focus) {newwindow.focus()}
return false;
}
