// This function open and hides layers
function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE
      if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval(args[i+1]);
      if (theObj) theObj.style.visibility = visStr;
  } }
}


// Pop-up Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  newWin = window.open(theURL,winName,features);
}


// Select Box Go To URL
function surfto(form) {
var myindex=form.select1.selectedIndex;
if (form.select1.options[myindex].value != 0) {
location=form.select1.options[myindex].value; }
}


// Tutorial Window
function tutorial()
{
win = window.open("CoreDivisions/AssessmentAppeals/AssessmentAppealsTutorial.htm", "TutorialWindow", "width=400,height=400");
}


// Adobe Acrobat Plugin Detection
function pluginDetect(){
if (navigator.plugins["Adobe Acrobat"]){
  MM_openBrWindow("../../../PDFs/AcrobatReader.htm", "PluginDetection", "width=300,height=200");
  newWin.docment.write("<P>Please download the latest version of Adobe Acrobat to view and fill out the forms online</P>");
 }
}


// Open Frameset and call Document within Content Frame
function SetContent(){
parent.document.location.src = "Commissions/Reports.htm"
}


// Confirmation Box for PDF forms

function inform(message,url){
if (confirm(message)){
	location.href=url
	}
}



