// JavaScript Document

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)';
		}
			else if (x[i].className == 'popup2')
		{
			x[i].onclick = function(){
				return popup2(this.href)
			}
			x[i].title += '(popup2)';
		}
	}
}

window.onload = popupcode;

function popup1(url)
{
	newwindow=window.open(url,'name','height=435, width=590, resizable=yes, scrollbars=yes, status=yes');
	newwindow.document.bgColor="#000000";
	if (window.focus) {newwindow.focus();}
	return false;
}

function popup2(url)
{
	newwindow=window.open(url,'name','height=535, width=440, resizable=yes, scrollbars=yes, status=yes');
	if (window.focus) {newwindow.focus();}
	{
		newwindow.document.bgColor="#000000";}
	return false;
}
	