

function popUp(URL)
{
	eval("window.open('" + URL + "','windowName', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=500,height=500');");
}

function sizedPopUp(URL, width, height)
{
eval("window.open('" + URL + "', 'window2', 'width=" + width + ", height=" + height + ", location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes');");
}


//http://www.sitepoint.com/article/standards-compliant-world
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";
 }
}
window.onload = externalLinks;


function confirmEntry(action)
{
	input_box=confirm("Are you sure you want to " + action + "?");
	if (input_box == true)
		return true;
	else
		return false;
}

function confirmMessage(action)
{
	input_box=confirm(action);
	if (input_box == true)
		return true;
	else
		return false;
}

function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature. Use the File menu on your browser to select Print.");
}

