// 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=390, width=536, resizable=yes, scrollbars=yes, status=yes');
	if (window.focus) {newwindow.focus();}
	return false;
}

function popup2(url)
{
	newwindow=window.open(url,'name','height=348, width=536, resizable=yes, scrollbars=yes, status=yes');
	if (window.focus) {newwindow.focus();}

	return false;
}
	