<!-- Start closed.nhtml - Version 5.3 -->
<HTML>
<!-- Start inceditheadintro.nhtml - Version 5.3 -->
<SCRIPT><!--
location.href = "/zia2000/pages/common/upgradebrowser.nhtml";
//--></SCRIPT>
<style type="text/css">
<!--
	.alertbig		{  font-family: Arial, Helvetica, sans-serif; font-size: 18px;	font-weight: bold; color: #FF0000 }
	.title			{  font-family: Arial, Helvetica, sans-serif; font-size: 14px;	font-weight: bold; color: #00009C }
	.welcome	{  font-family: Arial, Helvetica, sans-serif; font-size: 15px;	font-weight: normal; color: #000000 }
	.section		{  font-family: Arial, Helvetica, sans-serif; font-size: 14px;	font-weight: bold}
	.heading		{  font-family: Arial, Helvetica, sans-serif; font-size: 13px;	font-weight: bold}
	.headingred		{  font-family: Arial, Helvetica, sans-serif; font-size: 13px;	font-weight: bold; color: #FF0000 }
	.normal			{  font-family: Arial, Helvetica, sans-serif; font-size: 12px;	font-weight: normal}
	.normalwhite	{  font-family: Arial, Helvetica, sans-serif; font-size: 12px;	font-weight: normal; color: #FFFFFF }
	.smallprint		{  font-family: Arial, Helvetica, sans-serif; font-size: 11px;  font-weight: normal}
	.smallprintwhite{  font-family: Arial, Helvetica, sans-serif; font-size: 11px;  font-weight: normal; color: #FFFFFF }

	.select			{  font-family: Arial, Helvetica, sans-serif; font-size: 12px;  font-weight: normal}
	.button			{  font-family: Arial, Helvetica, sans-serif; font-size: 12px;  font-weight: normal}
	
	.textinput   	{  font-family: Courier New, Courier, mono;   font-size: 13px;  font-weight: normal}
	.checkbox       {  font-family: Arial, Helvetica, sans-serif; font-size: 12px;  font-weight: normal}

	.tabhilite		{  font-family: Arial, Helvetica, sans-serif; font-size: 18px;	font-weight: bold;   color: #FFFFFF }
	.tabnormal		{  font-family: Arial, Helvetica, sans-serif; font-size: 12px;	font-weight: normal; color: #00009C }
	.tabsubtext		{  font-family: Arial, Helvetica, sans-serif; font-size: 14px;	font-weight: normal; color: #FFFFFF }
	
	.navbartitle 	{color: #00FF00; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-weight:bold}
	.nounderline 	{text-decoration:none; color:#000000; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold}

	.underline:hover{background-color: #4367C5; color: #FFFFFF; text-decoration:none}
	.underline 		{color: #0033CC; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold}

	.signout 		{color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight:bold}
	.signout:hover 	{color: #FF0000}

	.help 			{color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-weight:bold}
	.help:hover 	{color: #00FF00}

	.home 			{color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif, sans-serif; font-size: 9pt; font-weight:bold}
	.home:hover 	{color: #00FF00}

	.editview 		{color: #0033CC; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold}

	.evlink 		{color: #0033CC; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold}
	.evlink:hover 	{background-color: #4367C5; color: #FFFFFF; text-decoration:none}

	.disabled 		{color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold}

	.catListing 	{BACKGROUND-COLOR: #dddddd; COLOR: #333333; FONT-FAMILY: Arial, Helvetica, sans-serif; font-size: 7.5pt;}
	
	B {font-weight: bold}
	SMALL {font-size: 10px}
A.plain   {color: #000000}
A         {color: #0033CC}
A:visited {color: #0033CC}
-->
</style>
<SCRIPT><!--
// WARNING! This file is not parsed on every request, so you
// cannot use nHTML within this file.  --res 6/1/00
var gErrorUrl="";


function OpenHelpErrorHandler() 
{
    if (gErrorUrl != "")
    {
        location.href = gErrorUrl;
        return true;
    }
    else
    {
        return false;
    }
}


function OpenHelp(url)
{        
    window.onerror = OpenHelpErrorHandler;
    gErrorUrl = url;
    var hWnd = window.open(url, "NVOHelp", "menubar=yes,toolbar=yes,width=630,height=400,resizable=yes,scrollbars=yes");
	if (!hWnd.opener) hWnd.opener = self;
	if (hWnd.focus != null) hWnd.focus();
    gErrorUrl = "";
}


function FindElement(elementName)
{
	var i = 0;
    
    for (i = 0; i < document.nvoForm.elements.length; i++)
	{
		if (document.nvoForm.elements[i].name == elementName)
		{
			return document.nvoForm.elements[i];
		}
	}
    return null;
}


// This is needed for IE 4.5 which doesn't run the onChange scripts
// until submit time (or unload time).  (SN 12/7/99)
function RemoveFocusAll()
{
	if (document.nvoForm)

	{
		var vers = navigator.appVersion;
		if (vers.indexOf("Mac") != -1 && vers.indexOf("IE") != -1)
		{
			var i = 0;

	    	for (i = document.nvoForm.elements.length - 1; i >= 0 ; i--)


			{
				if (document.nvoForm.elements[i].type == "text" || document.nvoForm.elements[i].type == "textarea")
				{
					document.nvoForm.elements[i].blur();
				}
			}
		}
	}
}



var gSaveAndGoURL = "";
var gChanged = false;  // set to true if page has been modified



function DoGoto(url, uid)
{
	CheckForTextChange();

	RemoveFocusAll();
    if (gChanged || uid == "")
    {
        gSaveAndGoURL = url;
        DoSave();
    }
    else
    {
        location.href = ReplaceString(url, "*", uid);
    }
}


// save the form data and goto the specified url

var hitreturn = false;

function DoDefault()
{
	if (!hitreturn) 
	{
 		hitreturn = true;
 		DoSave();
  	}
    return true;
}


function SaveAndGo(url)
{
	CheckForTextChange();

    RemoveFocusAll();
    if (gChanged)
    {
        gSaveAndGoURL = url;
        DoSave();
    }
    else
    {
        location.href = url;
    }
}


function Changed(url)
{
	gChanged = true;
}


function IsNetscape()
{
	return (navigator.appName.substring(0, 8) == "Netscape");
}


function WarnIfUsingOldBrowser()
{
	if (parseInt(navigator.appVersion) < 4)
	{
		if (IsNetscape())
			alert("Editing your Web site requires a newer version of Netscape Communicator. Visit Netscape's Web site at www.netscape.com to obtain the newest version. Failure to do so may result in unreliable behavior.");
		else
			alert("Editing your Web site requires a newer version of Internet Explorer. Visit Microsoft's Web site at www.microsoft.com to obtain the newest version. Failure to do so may result in unreliable behavior.");
	}
} 


function DoButton(buttonAction)
{
	if ((document.nvoForm.PageName) && (document.nvoForm.PageName.value == ""))
    {
    	alert("The Page Name is required and cannot be left blank. Please enter a valid name.");
    	document.nvoForm.PageName.focus();
    	document.nvoForm.PageName.select();
    	location.href = "#pagename";
    	return;
    }
    
	if (gSaveAndGoURL != "")
    {
        document.nvoForm.NVORedirect.value = gSaveAndGoURL;
    }
    
    document.nvoForm.NVOAction.value = buttonAction;
	document.nvoForm.submit();
}


window.errorLoadingApplet = false;



// This script is called when the user clicks on the client link before 
// the browser has had time to launch the applet

function AppletErrorHandler() 
{
    alert("Please wait for the page to complete loading and then try again.");
    return true;
}


// This javascript is used launch a helper app

function StartHelper(host, service, hostAddress, extra)
{

    if (navigator.appVersion.indexOf("Macintosh") != -1)
    {
		if (navigator.mimeTypes)
		{
            mimetype = navigator.mimeTypes["application/netopia"];
            if (mimetype && mimetype.enabledPlugin)
			{
	            location.href = "http://" + hostAddress + "/pages/common/" + host + ".nhtml?service=" + service + "&back=" + Escape(location.href) + "&extra=" + Escape(extra);
    		}
			else
			{
				alert("You must have the FREE Visitor Software in order to use this feature. Please download and install the Visitor Software.");
				location.href = "http://" + hostAddress + "/bin/download.nhtml";
			}
		} // if we can check for mimeTypes supported
		else
		{
            location.href = "http://" + hostAddress + "/pages/common/" + host + ".nhtml?service=" + service + "&back=" + Escape(location.href) + "&extra=" + Escape(extra);
		} // else go to plugin start page 
    }
	else
	{
	    if (window.errorLoadingApplet)
	    {
	        alert("You must have Java enabled in your browser in order to use this feature.");
	    }
	    else
	    {
	        window.onerror = AppletErrorHandler;
	        
	        installed = document.cc.isClassInstalled("com.netopia.ns.version.client.VisitorClient");
	        if (installed)
	        {
	            location.href = "http://" + hostAddress + "/pages/common/" + host + ".netopia?service=" + service + "&extra=" + Escape(extra);
	        }
	        else
	        {
	            alert("You must have the FREE Visitor Software in order to use this feature. Please download and install the Visitor Software.");
	            location.href = "http://" + hostAddress + "/bin/download.nhtml";
	        }
	    }
    } // else it's Windows
}


// pulls a parameter out of a comma delimeted string
// For example, given the string "a,b,c", passing
// index 0 would return "a", 1 would return "b", etc...

function GetField(rec, fieldindex)
{
    var     i;
    var     istart = 0;
    var     iend = 0;

    for (i = 0; i < fieldindex; i++)
    {
        istart = rec.indexOf(",", istart) + 1;
    }

    iend = rec.indexOf(",", istart);
    if (iend < 0)
    {
        iend = rec.length;
    }
    
    var temp = rec.substring(istart, iend);
    return temp;
}


function ReplaceString(org, match, replace)
{
    var     dst = "";
    var     starti = 0;
    var     endi = 0;

    while ((endi = org.indexOf(match, starti)) >= 0)
    {
        dst += org.substring(starti, endi) + replace;
        starti = endi + match.length;
    }

    dst += org.substring(starti, org.length);

    return dst;
}


function IsTrue(value)
{
	upperCaseValue = value.toUpperCase();
	return (upperCaseValue    != ""
			&& upperCaseValue != "NO" 
			&& upperCaseValue != "FALSE"
			&& upperCaseValue != "OFF"
			&& upperCaseValue != "0");
}



function setStatusBar(msg)
{
	window.status = msg;
	return true;
}


function FindSelectedElement(name, buttonName, action, messageNone, messageTooMany)
{
	sel = null;

	numsel = 0;
	for (var i = 0; i < document.nvoForm.elements.length; i++)
	{
		el = document.nvoForm.elements[i];
		if (el.name == name && el.checked)
		{
			numsel++;
			sel = el;
		}
	}

	if (numsel == 0)
	{
		
		alert(ReplaceString(messageNone, "^^^buttonName^^^", buttonName));
	}
	else if (numsel > 1)
	{
		alert(ReplaceString(messageTooMany, "^^^action^^^", action));
		sel = null;
	}

	return sel;
}


function CheckURL(urlElement)
{
	if (urlElement.value.length > 0 && urlElement.value.indexOf("://") == -1)
	{
		urlElement.value = "http://" + urlElement.value;
	}
	urlElement.value = ReplaceString(urlElement.value, " ", "%20");
	Changed();
}


function OpenSetupWiz(theURL) {
  var wzWnd = window.open(theURL,'wizard','width=630,height=400,resizable=yes');
    if (!wzWnd.opener) wzWnd.opener = self;
    if (wzWnd.focus != null) wzWnd.focus();
}


function AppendQuery(url, query)
{
	if (query != "")
	{
		if (url.indexOf("?") != -1) // if has ?
			url += "&";
		else
			url += "?";
		url += query;
	}
	return url;
}


function NibbleToHexDigit (nibble)
{
    return "0123456789ABCDEF".charAt(nibble);
}

function Escape (name)
{
    var c;
	var	newName = "";

	for (var i = 0; i < name.length; i++)
	{
		c = name.charCodeAt(i);
		// Escape: <lf> <cr> <space> ! " # % & ' ( ) + ' : ; < = >
		// ? [ \ ] ^  { | } ~
        if (c == 10 || c == 13 || c == 32 || c == 33 || c == 34 || c == 35 ||
            c == 36 || c == 37 || c == 38 || c == 39 || c == 40 || c == 41 || 
			c == 43 || c == 44 || c == 58 || c == 59 || c == 60 || c == 61 || 
			c == 62 || c == 63 || c == 91 || c == 92 || c == 93 || c == 94 || 
			c == 96 || c == 123 || c == 124 || c == 125 || c == 126 || c == 174)
        {
            newName += "%";
            newName += NibbleToHexDigit((c & 0xf0) >> 4);
            newName += NibbleToHexDigit( c & 0x0f);
        }
        else
            newName += name.charAt(i);
    }
		
	return newName;
}

function EscapeForPost (name)
{
	// Can be used to escape only ampersands and semicolons for nHTML post actions
    var c;
    var newName = "";
    var nameLength = name.length;

    for (var i = 0; i < nameLength; i++)
    {
        c = name.charCodeAt(i);
        // Escape: space " & ' + ; = \ < >
        if (c == 32 || c == 34 || c == 38 || c == 39 || c == 43 ||
			c == 59 || c == 60 || c == 61 || c == 62 || c == 92)
        {
            // Only escape percent sign when not part of %0D0A
            if ( c != 37 || 
                (i+4 >= nameLength) ||
                (name.charCodeAt(i+1) != 48) ||
                (name.charCodeAt(i+2) != 68) ||
                (name.charCodeAt(i+3) != 48) ||
                (name.charCodeAt(i+4) != 65)  )
            {
                newName += "%";
                newName += NibbleToHexDigit((c & 0xf0) >> 4);
                newName += NibbleToHexDigit( c & 0x0f);
            }
            else
                newName += name.charAt(i);
        }
        else
            newName += name.charAt(i);
    }
        
    return newName;
}


// globaledit.js

// WARNING! This file is not parsed on every request, so you
// cannot use nHTML within this file.

// this is the action string used to save the standard pages properties
function GetStdAction()
{
	var hidePage = (document.nvoForm.hidePage && document.nvoForm.hidePage.checked) ? "ON" : "OFF";
	var hideSignIn = (document.nvoForm.hideSignIn && document.nvoForm.hideSignIn.checked) ? "OFF" : "ON";
	var useSSL = (document.nvoForm.useSSL && document.nvoForm.useSSL.checked) ? "ON" : "OFF";

	if (hidePage == "ON") /* if hidden page, go back home */
	{
		document.nvoForm.NVORedirect.value = document.nvoForm.hostAddressForHiddenPage.value;
	}
	
    return "Set(.Sitemap.Name." + document.nvoForm.ObjectUID.value + "=" + Escape(document.nvoForm.PageName.value) 
    			+ "&.Sitemap.Title." + document.nvoForm.ObjectUID.value + "=" + Escape(document.nvoForm.PageTitle.value) 
    			+ "&.Sitemap.AltTag." + document.nvoForm.ObjectUID.value + "=" + Escape(document.nvoForm.PageAltTag.value) 
    			+ "&.Sitemap.Hide." + document.nvoForm.ObjectUID.value + "=" + hidePage 
    			+"&.Sitemap.Hide-SignIn." + document.nvoForm.ObjectUID.value + "=" + hideSignIn
    			+"&.Sitemap.useSSL." + document.nvoForm.ObjectUID.value + "=" + useSSL +");";
}

function GetStdActionNavTab()
{
    return "Set(.Sitemap.Name." + document.nvoForm.ObjectUID.value + "=" + Escape(document.nvoForm.PageName.value) 
    			+ "&.Sitemap.Title." + document.nvoForm.ObjectUID.value + "=" + Escape(document.nvoForm.PageTitle.value) 
    		    + ");";
}



function JavaTextAreaErrorHandler()
{
	alert("The text editor encounted an error so the page cannot be saved.\nIf a security dialog appears when loading this page, make sure you accept it and wait for the page to load completely.\nClick the reload button or close and reopen your browser if that does not work.");
    return true;
}


var gHaveCalledUpdateTextAreas = false;


function UpdateTextAreas()
{
	var i = 0;
    var applet;
    var appletindex;
    var strValue = "";

    if (!gHaveCalledUpdateTextAreas)
    {
        gHaveCalledUpdateTextAreas = true;
        
        if (document.nvoForm)
	    {
    	    window.onerror = JavaTextAreaErrorHandler;

    	    for (i = 0; i < document.nvoForm.elements.length; i++)
		    {        
        	    if (document.nvoForm.elements[i].name == "!minijane")
			    {
            	    appletindex = parseInt(GetField(document.nvoForm.elements[i].value, 1)) - 1;

            	    applet = document.applets[appletindex];

            	    if (!applet.forbiddenWordCheck())
            	    {
                	    window.onerror = null;
				        gHaveCalledUpdateTextAreas = false;
                	    return false;
            	    }

            	    if (applet.HTMLChanged())
                	    gChanged = true;

					strValue = applet.getHTML();
					if (!validateStringLength(strValue)) return false;

            	    // copy the contents of the miniJane editor into the hidden field
            	    document.nvoForm.elements[i + 1].value = strValue;

                    applet.destroy();
					
			    }
				else if (document.nvoForm.elements[i].name.substring(0,7) == "!rteBox")
				{
					CheckForTextChange();
					strValue =  getHTML(eval(document.nvoForm.elements[i].value));
					if (!validateStringLength(strValue)) return false;

					// copy the contents of the rte editor into its corresponding hidden field,
					// removing any IE-only CSS style dimension tags from the images.
					document.nvoForm.elements[i-1].value = fixImageDimensions(strValue);
				}
				else if (document.nvoForm.elements[i].type == "textarea")
				{
					if (!validateStringLength(document.nvoForm.elements[i].value))
						return false;
				}
		    }

		}

        window.onerror = null;
    }

    return true;
}

function validateStringLength(strValue)
{
	// The current maximum length allowed by NSS is 30,000 chars,
	// but the value here is reduced because some characters will
	// be escaped by the server increasing the string's length on 
	// the server. By reducing this to below 30,000 chars it gives
	// the server a safety buffer for escaping chars.
	if (strValue.length > 25000)
	{
		alert("The amount of text in one or more of the fields\non this page has exceeded the maximum allowed.\n\nIf there are fields with large amounts of text or complex\nHTML formatting, please reduce the size and try again.");
		gHaveCalledUpdateTextAreas = false;
		return false;
	}
	return true;
}

function CheckForTextChange()
{
	// If there are any miniJane applets on the page, check to see if text has changed
    var applet;
    var appletindex;

    if (document.nvoForm && document.nvoForm.elements)
    {
	    for (var i = 0; i < document.nvoForm.elements.length; i++)
	    {        
	   	    if (document.nvoForm.elements[i].name == "!minijane")
		    {
	       	    appletindex = parseInt(GetField(document.nvoForm.elements[i].value, 1)) - 1;
	
	       	    // the appet name is the same as the define name
	       	    applet = document.applets[appletindex];
	
	       	    if (applet.HTMLChanged())
	          	    gChanged = true;
		    }
			else if (document.nvoForm.elements[i].name.substring(0,7) == "!rteBox")
			{
				if (document.nvoForm.elements[i-1].value != getHTML(eval(document.nvoForm.elements[i].value)))
				{
					gChanged = true;
				}
			}
	
		}
    }
}

function NormalizeObjectName(name)
{
	// This function should only be used prior to calling the NewProfile
	// PostAction since it relies on this action to replace upper Latin
	// characters with lower Latin characters
	var	newName = "";

	for (var i = 0; i < name.length; i++)

	{
		charCode = name.charCodeAt(i);
		if (charCode < 0)
			charCode += 256;
		
		// Remove the chars \ / : * ? \" < > | ' 
		// and handle only ascii values between 32 and 128
		
		if (charCode == 38			/*  &  */
			|| charCode == 47		/*  /  */
			|| charCode == 92		/*  \  */
			|| charCode == 58		/*  :  */
			|| charCode == 42		/*  *  */
			|| charCode == 63		/*  ?  */
			|| charCode == 34		/*  "  */
			|| charCode == 60		/*  <  */
			|| charCode == 62		/*  >  */
			|| charCode == 124		/*  |  */
			|| charCode == 39)		/*  '  */
		{
			// do nothing
		}
		// allow upper Latin characters here, with the understanding
		// that the server will convert them appropriately for object names
		else if ((charCode > 32 && charCode < 128) || 
				 (charCode > 150 && charCode < 256))
			newName += name.substr(i, 1);
	}
	
    // if we eliminated all chars, name the object "page" 
	if (newName == "")
		newName = "page";
		
	return newName;
	
}


function PreparePostName(name)
{

	//  This function is used to prevent a PostAction from failing
	var	newName = "";

	for (var i = 0; i < name.length; i++)

	{
		charCode = name.charCodeAt(i);
		if (charCode < 0)
			charCode += 256;
		
		
		if (charCode == 38		/*  &  */
			|| charCode == 59)	/*  ;  */
		{
			/* do nothing */
		}
		else
			newName += name.substr(i, 1);
	}
	
	/* if we eliminated all chars, name the object "page" */
	if (newName == "")
		newName = "page";
		
	return newName;
	
}



function StdDelete(singularname, pluralname, profile, list, stdeditpage, cbName)
{
    var     action = "";
    var     count = 0;
	var		m1, m2;


	// cbName was added to allow multiple list per page, if null it is the origninal function
   	if (cbName == null)
		cbName = "cb";
  
    if (stdeditpage)
        action = GetStdAction();
    
    action += "UseProfile(Name=" + profile + ");Save()";

    for (var i = 0; i < document.nvoForm.elements.length; i++)
    {
		el = document.nvoForm.elements[i];
		if (el.name == cbName && el.checked)
        {
            uid = GetField(el.value, 0);
            action +=";Delete(List=" + list + "&UID=" + uid + ")";
            count++;
        }
    }

    if (count > 1)
    {
		m1 = "Are you sure that you want to delete ^^^count^^^ ^^^pluralname^^^?";
		m2 = ReplaceString(m1, "^^^count^^^", count);
        if (confirm(ReplaceString(m2, "^^^pluralname^^^", pluralname)))
        {
			if (!UpdateTextAreas())
        		return;
            DoButton(action);
        }
    }
    else
    {
	    if (count == 1)
	    {
			m1 = "Are you sure that you want to delete ^^^count^^^ ^^^singularname^^^?";
			m2 = ReplaceString(m1, "^^^count^^^", count);
	        if (confirm(ReplaceString(m2, "^^^singularname^^^", singularname)))
	        {
				if (!UpdateTextAreas())
    	    		return;
	            DoButton(action);
	        }
	    }
	    else
	    {
			m1 = "Please use the checkboxes to select one or more items and then click Delete.";
	        alert(ReplaceString(m1, "^^^pluralname^^^", pluralname));
	    }
	}
}


function StdMove(name, moveurl, helpurl, profile, list, field, doneurl, query, uid, extraretparms, cbName)
{
    var     startuid = "";
    var     enduid = "";

	if (!uid)
		uid = "";
		
	// cbName was added to allow multiple list per page, if null it is the origninal function
   	if (cbName == null)
		cbName = "cb";

	for (var i = 0; i < document.nvoForm.elements.length; i++)
    {
		el = document.nvoForm.elements[i];
		if (el.name == cbName && el.checked)
        {
            if (startuid.length == 0)
                startuid = GetField(el.value, 0);
            else
                enduid = GetField(el.value, 0);
        }
    }

    if (startuid.length > 0)
    {
        if (enduid.length == 0)
            enduid = startuid;
		action = moveurl + "?startuid=" + startuid + "&enduid=" + enduid + "&profile=" + profile + "&list=" + list + "&field=" + field + 
				  "&name=" + Escape(name) + "&doneurl=" + doneurl + "&uid=" + uid + "&helpurl=" + helpurl + query;
		if (extraretparms)
			action += "&extraretparms=" + extraretparms;
        SaveAndGo(action);
    }
    else
    {
		var   message = "Please use the checkboxes to select the item and then click Move.";
		alert(ReplaceString(message, "^^^name^^^", name));
    }
}


function StdEdit(name, editurl, editlisturl, query, cbName)
{
    var     uidlist = ",";
    var     count = 0;
    
   	// cbName was added to allow multiple list per page, if null it is the origninal function
   	// At this time cbName is not used because most 2nd list have there own edit function
   	// This was changed for future consistency reasons
   	if (cbName == null)
		cbName = "cb";

    for (var i = 0; i < document.nvoForm.elements.length; i++)
    {
		el = document.nvoForm.elements[i];
		if (el.name == cbName && el.checked)
        {
            uid = GetField(el.value, 0);
            uidlist += uid + ",";
            count++;
        }
    }

    if (count > 0)
    {
        if (count == 1)
            SaveAndGo(editurl + "?uid=" + uid + query);
        else
        {
            if (editlisturl == "")
                alert("Please select just one item to edit.");
            else
                SaveAndGo(editlisturl + "?count=" + count + "&uidlist=" + uidlist + query);
        }
    }
    else
    {
		var message = "Please use the checkboxes to select the item and then click Edit.";
        alert(ReplaceString(message, "^^^name^^^", name));
    }
}


function DoSelectAll(elementName, cbName)
{

	var originalElementName = "FALSE";
	
	// If both are null then this was an original single list
	// this requires both params: elementName & cbName if this is a 2nd list
	if (elementName == null && cbName == null)
	{	
		originalElementName = "TRUE";		
		cbName = "cb";
		elementName = document.nvoForm.allSelected.value;
	}
	
	for (var i = 0; i < document.nvoForm.elements.length; i++)
	{

		el = document.nvoForm.elements[i];
		
		if (el.name == cbName)
			el.checked = (elementName == "check");
			
	}

    // toggle values

	if (originalElementName == "TRUE")
	{
		if (document.nvoForm.allSelected.value == "check")
			document.nvoForm.allSelected.value = "uncheck";
		else
			document.nvoForm.allSelected.value = "check";
	}
	else
	{
		// This is returned and stored in the element name for 2nd or 3rd list.
		if (elementName == "check")
			return "uncheck";
		else
			return "check";
	}
}


// This is used for edit pages with 2 (or more) lists

function GotoSelectAll(CheckBoxName)
{
	if (!CheckBoxName)
		CheckBoxName = "cb";	

	switch(CheckBoxName)
	{
		case "cb":
			DoSelectAll();
			break;

		case "cb2":
			elementName = document.nvoForm.allSelected2.value
			document.nvoForm.allSelected2.value = DoSelectAll(elementName, "cb2");
			break;
	}
}


function DoPictureGoto(useObject, isList, path, profile, displayBoxName, saveFileName, returnURL, fileName, uid)
{
	// useObject - indicates that the destination expects the profile to be passed as the "object" param
	// isList - indicates that we are dealing with a picture from a list
	// path - location of destination page
	// profile - the profile to save the picture into
	// displayBoxName - where to save state of "display picture" checkbox
	// saveFileName - where to save new image filename
	// returnURL - where to return after picking the picture
	// fileName - location of image
	// uid - if a list, uid of picture
	//
	var url = path;

    // Update gChanged flag if necessary, and check for forbidden words before going to picture page
	if (!UpdateTextAreas())
        return;
	
	if (useObject)
		url += "?object=";
	else
		url += "?profile=";
		
	url += profile;
	
	if (isList == "TRUE") // $ISTRUE() will return "TRUE" or "FALSE"
	{
		url += "&UID=*";
		url += "&baseName=";
		url += saveFileName;
		url += "&include=";
		url += displayBoxName;
		if (displayBoxName != "")
		    url += ".*";
		url += "&name=";
		url += saveFileName;
        if (saveFileName != "")
		    url += ".*";

        // add the UID to the returnURL if it does not already include it
        if ((returnURL.indexOf("uid=") == -1) && (returnURL.indexOf("UID=") == -1))
        {
            tmpVar = AppendQuery(returnURL, "UID=*")
            returnURL = tmpVar;
        }

	}
	else
	{
		url += "&include=";
		url += displayBoxName;
		url += "&name=";
		url += saveFileName;
	}
	
	url += "&url="
	url += Escape(returnURL);
	
	url += "&initial=";
	url += Escape(fileName);
	
	if (isList == "TRUE")
		DoGoto(url, uid);
	else
		SaveAndGo(url);
}



function SwitchMiniJane(isList, uid, fieldName)
{
    var refreshURL = document.location.href;
    var tmpVar = "";
    
    if (refreshURL.indexOf("?") == -1)
    {
       tmpVar = AppendQuery(refreshURL, "post=TRUE");
       refreshURL = tmpVar;
    }
	
	if (IsTrue(isList))
    {
        if ((refreshURL.indexOf("uid=") == -1) && (refreshURL.indexOf("UID=") == -1))
        {
            tmpVar = AppendQuery(refreshURL, "UID=*");
            refreshURL = tmpVar;
        }
    }

    if (!IsTrue(document.nvoForm.miniJaneFlag.value))
    {
        if (!IsTrue(document.nvoForm[fieldName].value))
        {
            document.nvoForm[fieldName].value = "ON";
        }
        else if (IsTrue(document.nvoForm[fieldName].value))
        {
            document.nvoForm[fieldName].value = "OFF";
        }
    }

    document.nvoForm.miniJaneFlag.value = "TRUE";
    Changed();
	if (IsTrue(isList))
        DoGoto(refreshURL, uid);
    else 
        SaveAndGo(refreshURL);
}
//--></SCRIPT>
<script><!--
/*
*/
//--></script>
<!-- End inceditheadintro.nhtml - Version 5.3 -->
<TITLE>Alan O'Beirne - Web Site</TITLE>
<META NAME="keywords" CONTENT="Alan O'Beirne">
<META NAME="description" CONTENT="Web Site of Alan O'Beirne"> 
</HEAD>
<BODY BGCOLOR="#ffffff" LINK="#006633" VLINK="#CC3300">
<TABLE WIDTH=576 ALIGN=CENTER CELLPADDING=0 CELLSPACING=0 BORDER="0">
<TR>
<TD VALIGN=TOP WIDTH=15>
<IMG SRC="/zia2000/pages/images/trans_pix.gif" WIDTH="15" HEIGHT="15" BORDER="0">
</TD>
<TD ALIGN=CENTER VALIGN=TOP>
<IMG SRC="/zia2000/pages/addons/images/partner.gif" BORDER="0"><BR>
</TD>
</TR>
<!-------Start Body-->
<tr>
<td valign=top width=15>
<img src="/zia2000/pages/images/trans_pix.gif" width="15" height="15" border="0">
</td>
<td>
<br>
<CENTER>
<span class="section">
<b>Alan O'Beirne's Web site is Closed.</b> <BR>
</span>
<BR>
<span class="normal">
To reopen this Web site, without losing any information, please contact Techincal Support at <br>
<A HREF="http://barts.nuskin.net/latest_support/open_site.html">
</A>1-800-487-1000
</span>
<BR>
</CENTER>
</td>
</tr>
<!-------End Body-->
<tr>
<td valign=top width=15>
<img src="/zia2000/pages/images/trans_pix.gif" width="15" height="15" border="0">
</td>
<td>
<BR>
<CENTER>
<HR SIZE=NOSHADE>
<span class="smallprint">
This site is best viewed by Microsoft&#174; Internet Explorer&#153; 4.0 or higher,<BR> and is compatible with Netscape Communicator&#153; 4.0 or higher.
</span>
<BR>
<BR>
<!-- Start inccopyright.nhtml - Version 5.3 -->
<SCRIPT><!--
function SaveGo(url)
{
location = url;
}
//--></SCRIPT>
<span class="smallprint">Big Planet DWP<br>
Copyright &#169; 1997-2001, <a href=javascript:SaveGo(&quot;http://www.bigplanet.com&quot;)>Big Planet</a>
</span>
<!-- End inccopyright.nhtml - Version 5.3 -->
</font>
</CENTER>
<BR>
</td>
</tr>
</TABLE>
</BODY>
</HTML>
<!-- End closed.nhtml - Version 5.3 -->

