//--- frame destroya ---------------------------------------------

function noframes() {
	if (top.location != self.location) {
		top.location.href = self.location.href;
	}
}

//--- external link targets --------------------------------------
var newwindow = 0;
 
function setLinkTargets() {
 if (newwindow == 0) {
  for (var i=0; i<=(document.links.length-1); i++) {
   var l = document.links[i].href;
   if ((l.indexOf("dmgtreports.com") <= "0"))
    document.links[i].target = "_blank";
  }
  newwindow = 1;
 }
 else {
  for (var i=0; i<=(document.links.length-1); i++) {
   var l = document.links[i].href;
   if ((l.indexOf("dmgtreports.com") <= "0"))
    document.links[i].target = "_top";
  }
  newwindow = 0;
 }
}
window.onload=setLinkTargets;

//--- email function --------------------------------------------
function Email(){
window.location = "mailto:"+"?subject=DMGT 2003 Interactive Annual Report" + "&body=" + "I thought this link might interest you: " + document.title + ", which is available at the following address, " + document.location;
}

//--- print function --------------------------------------------
var gAutoPrint = true;
function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
	alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}

// backdoor navigation ------------------------------------------
function Below(url,closeIt,delay){
    opener.location.href = url;
	if (closeIt == true)setTimeout('self.close()',delay);
}