function largeWarning() {
}

function linkAlert(){
} 
function buildScope(){  
// this function builds the scope attribute in the simpleSearch form on submit  

  if(document.simpleSearch.rval_1.value=="") {
  	alert("Please enter a query.");	
  	return false;  
  }  
  str1=" (   ";  
  str2=" ) <AND>  ( URL <CONTAINS> ";  
  str3=" )";  
  document.simpleSearch.scope.value=str1+document.simpleSearch.rval_1.value+str2+document.simpleSearch.rval_2.value+str3;    
  
  return true;
}

var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion); // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
var is_ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_mac    = (agt.indexOf("mac")!=-1);

function dw(txt) { document.write(txt); }

if (is_ie) { dw('<style type="text/css">#rightcontent{height:400px;}</style>'); }
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) {
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i) {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (is_ie && navigator.appVersion.indexOf("Win") != -1) 
{
	dw('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	dw('on error resume next \n');
	dw('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	dw('</SCR' + 'IPT\> \n');
}
function didYouKnow(id) {
	if (MM_FlashCanPlay) {
		dw('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="209" height="400">');
		dw('<param name="movie" value="/annrep/ar2005/_lib/flash/did_you_know.swf"><param name="menu" value="false"><param name="quality" value="high"><param name="scale" value="exactfit"><param name="FlashVars" value="id='+id+'">');
		dw('<embed src="/annrep/ar2005/_lib/flash/did_you_know.swf" width="209" height="400" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit" menu="false" FlashVars="id='+id+'"></embed></object>');
	}
}
function writeIntro() {
	if (MM_FlashCanPlay) {
		dw('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="200">');
		dw('<param name="movie" value="/annrep/ar2005/_lib/flash/doha_intro.swf"><param name="menu" value="false"><param name="quality" value="high"><param name="scale" value="exactfit">');
		dw('<embed src="/annrep/ar2005/_lib/flash/doha_intro.swf" width="200" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit" menu="false"></embed></object>');
	}
}

/* CLEARS SEARCH FIELD */
function clearSearchField() {
          if (document.searchBox.searchText.value == "Enter search terms") {
            document.searchBox.searchText.value = "";
          }
        }
		
function checkSubmit() {
	if ((document.searchBox.searchText.value == "Enter search terms") || (document.searchBox.searchText.value == "")) {
		alert("You have not entered a search term.");
		document.searchBox.searchText.value = "";
		document.searchBox.searchText.focus();
		return false;
	}
	return true;
}
