
//window.onerror = myOnError;
function myOnError() {
// do nothing
return true;
}

var instwin;
var emailwin;
var newwin;

function showinst(whichinst) {
instwin=window.open(whichinst,"Instructions","toolbar=0,width=600,height=800 location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
// this focus command creates an error in ie301 for pc test other browsers.
   if (window.focus) {
// If the focus object exists
      instwin.focus();
   }
}

function newwind(whichinst) {
newwin=window.open(whichinst,"NewWindow","toolbar=1,width=800,height=600 location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
// this focus command creates an error in ie301 for pc test other browsers.
   if (window.focus) {
// If the focus object exists
      newwin.focus();
   }
}

function clearwindow() {
	if (instwin!=null) {
	   instwin.close();
	}
}


function emailwindow(whichinst) {
	urlcommand = "/form/emailpdf.php?PHPSESSID=" + window.sessID + "&pdf=" + whichinst;
//alert ("email win " + urlcommand);
emailwin=window.open(urlcommand,"eml","toolbar=0,width=660,height=450 location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
// this focus command creates an error in ie301 for pc test other browsers.
      emailwin.focus();
}

function userdescwindow(whichinst) {
instwin=window.open(whichinst,"Instructions","toolbar=0,width=600,height=300 location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
// this focus command creates an error in ie301 for pc test other browsers.
   if (window.focus) {
// If the focus object exists
      instwin.focus();
   }
}