var iFlag;
function search() {
 var wPopupElements=wPopup.document.all;
 if (wPopupElements.textcase.checked)
  {iFlag=4;}
 else
  {iFlag=0;}
 if (wPopupElements.searchtext.value==null || wPopupElements.searchtext.value=='')
  {
   wPopup.alert("Specify a value to search for");
   return;
  }
 if (rng.findText(wPopupElements.searchtext.value,10000,iFlag)==true)
  {
   rng.select();
   rng.scrollIntoView();
   rng.moveStart("character");
  }
 else 
  {wPopup.alert("End of document");}
}
function gofind() {
wPopup=window.open('about:blank','','width=350 height=80 left=200 top=200 menubar=no resizeable=no scrollbars=no toolbar=no');
var wPopupDoc=wPopup.document;
wPopupDoc.open();
wPopupDoc.write('<html>\n');
wPopupDoc.write('<head>\n');
wPopupDoc.write('<title>Search within This Page</title>\n');
wPopupDoc.write('<style>\n');
wPopupDoc.write('* {font-size:11px;font-family:"Tahoma","Verdana","Arial"}\n');
wPopupDoc.write('button {width:80}\n');
wPopupDoc.write('</style>\n');
wPopupDoc.write('</head>\n');
wPopupDoc.write('<body bgcolor="#7E92D6" text="#393939" leftmargin="0" topmargin="0">\n');
wPopupDoc.write('<p> </p><br><br><center>Find what:\n');
wPopupDoc.write('<input type="text" name="searchtext" onchange="window.opener.rng=window.opener.document.body.createTextRange()">\n');
wPopupDoc.write('<button accesskey="S" name="searchbutton" onclick="window.opener.search()"><u>S</u>earch</button>\n');
wPopupDoc.write('<br><input type="checkbox" name="textcase" value="textcase">Match Case\n');
wPopupDoc.write('<center></body>\n');
wPopupDoc.write('</html>\n');
wPopupDoc.close();
}