<!--
	
// This is for use on the left navigation of the long form - when the users hits any
// links on the left, we want to make sure that the current page that they are in saves
// all of it's data
function submitToPage( path )
	{
		window.location.href = path;
	}
function submitform(direction)
	{
		if(direction == 'previous')
			document.frmQuestion.previous.value = "true";
		document.frmQuestion.submit()
	}
function submitformtwo(ValCode)
	{
		document.frmQuestion.ValCode.value = ValCode;
		document.frmQuestion.submit()
	}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null && obj != stuck) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

	
function MoreInfo(FactId)
{
	window.open("mipopup.asp?miFact=" + FactId, 'MoreInfo','width=540,height=200,left=0,top=0,toolbar=0,location=0,status=0,menuBar=0,scrollBars=1,resizable=0');	
//	'width=400,height=200,toolbar=1,location=1,directories=1,status=1,menuBar=1,scrollBars=1,resizable=1' 
}

function UserGuide(aFile) {
	window.open(aFile, 'UserGuide','width=540,height=400,left=50,top=50,toolbar=0,location=0,status=0,menuBar=0,scrollBars=1,resizable=0');	
}

// added 11/4/99 J.L.H.
// This function remembers which button image is currently selected
// storing it in the 'stuck' variable. MM_swapImage() has been modified
// to check if the image it's working on is currently 'stuck' before swapping it.

// When this function is called, it 'unsticks' the previously stuck image.
// **ASSUMING** that it can be unstuck by changing its src property to *1.*
// eg; "red_button_3.gif" changes to "red_button_1.gif".. Not terribly complicated, I know.

// Also, it won't make the image's link inactive, it's still clickable.
// The main reason to use this is to avoid re-loading the entire frame just to make a button
// stay depressed.

var stuck = new Image;
function FreezeImg(img) {
   var imgsrc;
   if (img != stuck) {
     // get the unstuck version of the currently stuck image
     if (stuck != null) {
       imgsrc = stuck.src;
       imgsrc = imgsrc.substr(0,imgsrc.lastIndexOf('.') - 1) + '1' + imgsrc.substr(imgsrc.lastIndexOf('.'),imgsrc.length);
     }
     // unstick the currently stuck image
     stuck.src = imgsrc;
     // mark the current image as stuck   
     stuck = img;
   }
}


/* browser detection routine */
/*This script copyright 1997 Project Cool, Inc.
  It may be copied and used in your own websites so long as this notice remains
  intact. Created by Glenn Davis of Project Cool. 
  
  This code reads various properties of the navigator object to determine the
  make and model of the user client. The point is to determine if the browser
  supports 3rd and 4th generation capabilities such as dynamic html and style
  sheet support. If the browser meets the test criteria, it sets the variable
  "browser" to true so that other functions can test against it as in:
     if(browser) {...}.
  Also, the code sets flags for IE4, Netscape4 and Mac for testing in regard to 
  browser specific capabilities as in:
     if(ns4) {...}
*/

browser = (((navigator.appName == "Netscape") &&
            (parseInt(navigator.appVersion) >= 3 )) ||
			((navigator.appName == "Microsoft Internet Explorer") &&
			(parseInt(navigator.appVersion) >= 4 )));
			
ie4 = ((navigator.appName == "Microsoft Internet Explorer") &&
       (parseInt(navigator.appVersion) >= 4 ));
	   
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ));

mac = (navigator.appVersion.indexOf("Macintosh") != -1);

				var width = "250";
				var border = "3";
				var offsetx = 5;
				var offsety = 15;

				var fcolor = "#99CCCC";
				var backcolor = "#006666";
				var textcolor = "#000000";
				var capcolor = "#FFFFFF";
				var closecolor = "#99FF99"; 


function check(src,target) {
	if (eval("document.frmQuestion.f" + src + ".checked == true")) eval("document.frmQuestion.f" + target + ".checked = true");
}

function unCheck(src,target) {
	if (eval("document.frmQuestion.f" + src + ".checked == true")) eval("document.frmQuestion.f" + target + ".checked = false");
}
//-->