function fullScreen(theURL) {
//screen.availWidth,screen.availHeight
 window.open(theURL, null, 'width=' + (screen.availWidth - 12) + ',height=' + screen.availHeight + ',left=0,top=0,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes') ;
}

function popupWindow(theURL) {
  window.open(theURL, 'popup', 'width=470,height=600,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no,left=0,top=0,screenX=0,screenY=0');
}

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 fullScreen2(theURL) {
	window.open(theURL,'main','fullscreen=no,resizable=yes,outerHeight=' + screen.availHeight + ',outerWidth=' + screen.availWidth);
}

window.onload = externalLinks;

