var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);
function printit() {
 if (pr) 
    window.print()
  else if (da && !mac) 
    vbPrintPage()
  else 
    alert('Sorry, your browser does not support this feature. Please print using the menu on your browser.');
}
if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln(' OLECMDID_PRINT = 6');
  writeln(' OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln(' OLECMDEXECOPT_PROMPTUSER = 1');
  writeln(' On Error Resume Next');
  writeln(' WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}

// Globals
// Major version of Flash required
var requiredMajorVersion = 6;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

function MM_reloadPage(init) { 
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function placeFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}

function anchorChange(id){
location="#"+id;
}


function openlgImg(theURL,W,H) {
var X=Math.ceil((screen.width-W)/2);
var Y=Math.ceil((screen.height-H)/2);
var s=",width="+ W +",height="+ H +",left="+X+",top="+Y;
var lgImg=window.open(theURL,"bigger","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s,true);
lgImg.focus();
return lgImg;
}

// Variable Declarations
var dimx = screen.availWidth;  // Get the resolution width
var dimy = screen.availHeight; // Get the resolution height

function oneClick() {
	var bod = top.window.frames("body");
	
	// show the wait cursor
	bod.document.body.style.cursor = "wait";
	bod.window.scroll(0, 0);
	
	// create our big div to hide the whole page
 	var elem = bod.document.createElement("div");
	elem.style.zIndex = "900";
	elem.style.position = "absolute";
	elem.style.left = "0";
	elem.style.top = "0";
	elem.style.height = "100%";
	elem.style.width = "100%";
	elem.style.backgroundColor = "black";
	elem.style.filter = "alpha(opacity=50); moz-opacity:0.50";
	bod.document.body.appendChild(elem);
	// create our text to tell them processing
	var text = bod.document.createElement("div");
	text.style.zIndex = "901";
	text.style.position = "absolute";
	text.style.left = "45%";
	text.style.top = "50%";
	text.innerHTML = "<span style='font-size:18px; font-weight:bold; color:white;'>Processing...</span>";
	bod.document.body.appendChild(text);
}