<!--
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix
}

// ***************************************************
// *** Format querystring                          ***
// ***************************************************
arglist		= location.search ? unescape(location.search.substring(1)) + '&' : '';
var CurTab	= arglist ? arglist.substring(0,arglist.indexOf('&')) : 0;

if (CurTab.Length == 0 || isNaN(CurTab)) {
  CurTab = 7;
}

// ***************************************************
// *** Initialize variables                        ***
// ***************************************************
arglist		= arglist.substring(arglist.indexOf('&')+1); // move to next argument
var CurTab2    	= arglist ? arglist.substring(0,arglist.indexOf('&')) : 4;

var gloArr=["hm","cp","vi","bl","fa","cs","cm","ci","ln","se"];
imagearray1 = new Array();

initimages1("hm","cp","vi","bl","fa","cs","cm","ci","ln","se");
var gloArr2=["csdcp1","csdcp2","csdcp3","csdcp4"];

imagearray2 = new Array();
initimages2("csdcp1","csdcp2","csdcp3","csdcp4");		


// ***************************************************
// *** Show and hide layers                        ***
// ***************************************************
function MM_showHideLayers() { //v2.0
  var i, visStr, args, theObj,theObj2;
  args = MM_showHideLayers.arguments;
  for (i=0; i<(args.length-1); i+=3) { //with arg triples (objNS,objIE,visStr)

    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval(args[i]);
     visStr = theObj.visibility;
      if (theObj.visibility == 'show') theObj.visibility = 'hide';
      else  theObj.visibility = 'show';
    } else if (document.all != null) { //IE
      theObj = eval(args[i+1]);
      visStr = theObj.style.visibility;
      if (visStr == 'visible') visStr = 'hidden'; //convert vals
      else  visStr = 'visible';
      theObj.style.visibility = visStr;

     } }
}

// ***************************************************
// *** Pre-populate array used for navigation tabs ***
// ***************************************************
function initial1(){
   changeimg1(gloArr[CurTab],20);
}


// ***************************************************
// *** Close Window								   ***
// ***************************************************
function CloseWindow(){
   window.close();
}

// ***************************************************
// *** Initialize navigation images                ***
// ***************************************************
function initimages1(allcimages)
{
	cimages1 = new Array();
	for (i = 0;i < initimages1.arguments.length; i++)
	{
		cimages1[i] = initimages1.arguments[i]
	}
	if(document.images)
	{
		for(j = 0; j < initimages1.arguments.length; j++)  // navigation tab images yellow, brown, orange
		{
			imagearray1[j]     	= new Image
			imagearray1[j].src 	= "_Images/tab" + cimages1[j] + "1.gif"
			imagearray1[j+10]   	= new Image
			imagearray1[j+10].src 	= "_Images/tab" + cimages1[j] + "0.gif"
			imagearray1[j+20] 	= new Image
			imagearray1[j+20].src 	= "_Images/tab" + cimages1[j] + "2.gif"
		}
             
	}	
}


// ***************************************************
// *** Initialize navigation tabs                  ***
// ***************************************************
function initimages2(allcimages)
{
	cimages2 = new Array();
	for (i = 0;i < initimages2.arguments.length; i++)
	{
		cimages2[i] = initimages2.arguments[i]
	}
	if(document.images)
	{
		for(j = 0; j < initimages2.arguments.length; j++)  // navigation tab images yellow, brown, orange
		{
			imagearray2[j]     	= new Image
			imagearray2[j].src 	= "_Images/tab" + cimages2[j] + "1.gif"
			imagearray2[j+9]   	= new Image
			imagearray2[j+9].src 	= "_Images/tab" + cimages2[j] + "0.gif"
			imagearray2[j+18] 	= new Image
			imagearray2[j+18].src 	= "_Images/tab" + cimages2[j] + "2.gif"
		}
             
	}	
}


// ***************************************************
// *** Change image function                       ***
// ***************************************************
function changeimg1(image,mod,who)
{

        for(k=0;k<10;k++){ if (gloArr[k] == image) break; } 
	if(document.images)
	{
		for (i = 0;i < imagearray1.length; i++)
		{
			if (cimages1[i] == image)
			{       var item = 'document.Image' + k;
                    var obj      = eval(item);
                    obj.src  = imagearray1[i+mod].src;
          			break;
			}
		}
	}
 	else{
		alert("Your browser doesn't support the images array. Basically that means you cannot sample this area of the site.")
	}	
        if(who == 'itself'){
          who='';
          return;
      	}
        else
          changeimg1(gloArr[CurTab],20,'itself'); // one call to itself to override on what's current (tab)          	

}


//**************************************************
// Display Confirmation dialog box
// If filename exists, show confirmation 
//*************************************************
function CheckConfirmMessage(filename)
{	
	if (filename.value.length > 0 )
	{
		if(confirm('Are you sure you want to replace the existing document with this new document?')== false)
			return false;
	}
	
}


// ***************************************************
// *** Change image function                       ***
// ***************************************************
function changeimg2(image,mod,who)
{
        for(k=0;k<4;k++){ if (gloArr2[k] == image) break; } 
	if(document.images)
	{
		for (i = 0;i < imagearray2.length; i++)
		{
			if (cimages2[i] == image)
			{       var item = 'document.Imagecp' + k;
                    obj      = eval(item);
                    obj.src  = imagearray2[i+mod].src;
                    break;
			}
		}
	}
 	else{
		alert("Your browser doesn't support the images array. Basically that means you cannot sample this area of the site.")
	}	
        if(who == 'itself' || CurTab2 == 4){
          who='';
          return;
      	}
        else
          changeimg2(gloArr2[CurTab2],18,'itself'); // one call to itself to override on what's current (tab)          	

}

// ***************************************************
// *** Opens new window                            ***
// ***************************************************
function open_new(all_arg) {

        arg_arr = new Array();
	for (i = 0;i < open_new.arguments.length; i++)
		arg_arr[i] = open_new.arguments[i]

	var urlF = arg_arr[0]; // + arg_arr[1];	

        if(open_new.arguments.length > 0) {
        	var feedback_win = window.open(urlF,"new_window1","width=750,height=600,resizeable=no,scrollbars=yes,status=yes,toolbar=no");
	feedback_win.focus();
	}
 	else
        	var feedback_win = window.open(arg_arr[0],"new_window2","width=320,height=320,resizeable=yes,scrollbars=yes,status=yes");    
	feedback_win.focus();
	window.document.location.reload();
}

// ***************************************************
// *** Go one page backward                        ***
// ***************************************************
function go_back() {
	history.back();
}

// ***************************************************
// *** Go one page forward                         ***
// ***************************************************
function go_fwd() {
history.forward();
}

// ***************************************************
// *** Prints page                                 ***
// ***************************************************
function go_prn() {
window.print();
}

// ***************************************************************************
// *** Go to specific FAQ Page (Determine if user is using IE or NETSCAPE) ***
// ***************************************************************************
function faqSelect(){
        if (navigator.appName.indexOf('Microsoft') != -1) 
            window.document.location="../Faq/cwfa.html?4";
        else
            window.document.location="../Faq/cwfa2.html?4";
}

// *************************************************************************************
// *** Go to specific CIVIL PROCESS PAGE (Determine if user is using IE or NETSCAPE) ***
// *************************************************************************************
function SelectCivprocpage(){

arglist		= location.search ? unescape(location.search.substring(1)) + '&' : '';
// alert(arglist);
var CurTab	= arglist ? arglist.substring(0,arglist.indexOf('&')) : 0;
// alert(CurTab);
loc 		= window.document.location;
// alert(loc);
        if (navigator.appName.indexOf('Microsoft') != -1) 
            window.document.location="../CivilProcess/civprocess.html?1";
        else
            window.document.location="../CivilProcess/civprocess2.html?1";
}

// ***************************************************
// *** Validates search field                      ***
// ***************************************************
function allblanks(s) 
{
    if ( s.length == 0 )
      { alert("Search Value Blank !");
        return false;
      }
    else
    {
      for (var i = 0; i < s.length; i++) {
      var c = s.charAt(i);
      if (c != ' ')
         return true;
      }
      alert("Search Value Blank !");
      return false;
    }
}

// *******************************************************************
// *** Opens the search address routine (also known as GEO CODING) ***
// *******************************************************************
function open_adr_loc(formnumber)
{
//	open_new('searchaddr2.asp?FrmType='+ formnumber + '&status=0');
	popupWindowCenter('Searchaddr2.asp?FrmType='+ formnumber + '&status=0',700,520,1);

}

// ***************************************************
// *** Opens pdf file in new window                ***
// ***************************************************
function open_pdfile(filePath)
{
	open_new(filePath);
}

// *********************************************************
// *** Popups a new window in the center of your screen. *** 
// *********************************************************
var popupwindow=null;
function popupWindowCenter(url,popwidth,popheight,center){

	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
	     xposition = (screen.width - popwidth) / 2;
	     yposition = (screen.height - popheight) / 2;
	}

	args = "width=" +popwidth+  "," + "height=" +popheight+ "," + "location=0," + "menubar=0," + "resizable=no," + "scrollbars=no," + "status=no," + "toolbar=no,";

	if (window.navigator.appName == "Netscape")
	{ args = args + "screenx=" + xposition + "," + "screeny=" + yposition; }
        else
	{ args = args + "left=" + xposition + "," + "top=" + yposition; } 


        //if (popheight == undefined) { popheight = 540 }
        //if (popwidth == undefined) { popwidth  = 480 }
 
 	popupwindow = window.open(url,'popupwindow',args);
        popupwindow.focus();        
}

function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}

// Function that pops up a window of a specific size on all target browsers
//    Pass the window URL, the width and the height
function popWindow(urlVal,windowName,widthVal,heightVal,scrollBars,menuBar,reSizeable) {
	var paraString
	var wt
	var ht

	// Bug fix: we are now blanking the windowName variable
	windowName == "";

	wt = widthVal;
	ht = heightVal;

	origWinName = windowName;  //Addition for ICON

	paraString = "width=" + wt + ",height=" + ht;
	if (scrollBars == 1) {
		paraString = paraString + ",scrollbars=yes";
		} else {
		paraString = paraString + ",scrollbars=no";
		}
	if (menuBar == 1) {
		paraString = paraString + ",menubar=yes";
		}
	if (reSizeable == 1) {
		paraString = paraString + ",resizable=yes";
		}
	if(is.ie && is.pc) {
		if(typeof(poppedWindow) == "object") {
			poppedWindow.close();
			if(is.ie4) {
				poppedWindow = window.open(urlVal,windowName,paraString);
			}
		}
	}
	poppedWindow = window.open(urlVal,windowName,paraString);

	if (origWinName != "glossaryWindow") {
		poppedWindow.focus();
		poppedWindow.moveTo(40,40);
	}
	else {
		//move screen only for Netscape 4.5
		if (is.ns) {
			poppedWindow.focus();
			poppedWindow.moveTo(screenleft, screentop);
		}
	}

}

function popCaseSummaryReport(urlVal) {
	if (is.ns) {
		popWindow(urlVal,"pictureWindow",800,600,1,0,1);
	} else {
		popWindow(urlVal,"pictureWindow",800,655,1,0,1);

	}
}

function BrowserCheck() {

	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	
	// Added for opera browser check
	this.opera = (this.b="opera" && this.v >=4)
	
	this.min = (this.ns||this.ie||this.opera)
	this.pc = (this.version.indexOf('Win')>0)
	this.mac = (this.version.indexOf('PPC')>0)
	
	// next line added by d.owen on 52201
	this.ns408=(parseFloat(this.version)==4.08);
}

var is = new BrowserCheck()

//-->

