function externalLinks() 
{ 
  if (!document.getElementsByTagName) return; 
  var anchors = document.getElementsByTagName("a"); 

  for (var i=0; i<anchors.length; i++) 
  { 
    var anchor = anchors[i]; 
    if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
    {
      anchor.target = "_blank";
    }
  } 
}

function goto(url)
{
  window.location.href=url;
}

var newWindow;
function popup(URL,width,height) 
{
	if(!newWindow || newWindow.closed )
	{
		newWindow = window.open(URL, 
                        'script','toolbar=0,scrollbars=yes,location=no,statusbar=no,menubar=yes,resizable=yes,dependent=yes,width='+width+',height='+height+',left=60,top=60');
    newWindow.focus();
	}
	else
	{
		newWindow.resizeTo(width+12,height+30);
    newWindow.focus();
	}
}

var newWindowb;
function popupclean(URL,width,height) 
{
	if(!newWindowb || newWindowb.closed )
	{
		newWindowb = window.open(URL, 
                        'script','toolbar=0,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,dependent=yes,width='+width+',height='+height+',left=60,top=60');
    newWindowb.focus();
	}
	else
	{
		newWindowb.resizeTo(width+12,height+30);
    newWindowb.focus();
	}
}