// 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=570, width=720, resizable=no, scrollbars=no, status=no, left=30');
	newwindow.document.bgColor="#FFFFFF";
	if (window.focus) {newwindow.focus();}
	return false;
}

function popup2(url)
{
	newwindow=window.open(url,'name','height=540, width=745, resizable=no, scrollbars=no, status=no, left=30');
	if (window.focus) {newwindow.focus();}
	{
		newwindow.document.bgColor="#FFFFFF";
		newwindow.document.marginwidth="0";
	newwindow.document.marginheight="0";
	}
	return false;
}
	