<!--

// ******************************
// LAUNCH WINDOW FUNCTIONS
// ******************************

// launchRemote function launches a new window with specific attributes. launch function supports.
function launch(newURL, newName, newFeatures) {
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null)
		remote.opener = window;
	return remote;
}

function launchRemote(pageName, uniqueName, winHeight, winWidth) {
	myRemote = launch(pageName, uniqueName, "height=" + winHeight + ",width=" + winWidth +",screenX=100,left=100,screenY=100,top=100,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0");
}


// ******************************
// CONFIRM FUNCTIONS
// ******************************

// ConfirmDelete function adds confirmation box to any deletions
function ConfirmDelete(url) {
	if (confirm('Are you sure you want to delete this item?')) {
		document.location = url;
	}		
}


// ConfirmDeleteButton function adds confirmation box to any button deletions
function ConfirmDeleteButton(formName) {
	if (!confirm("Are you sure you want to delete these items?")) {
		return;
    }
	formName.submit();
}


// ******************************
// FORM FUNCTIONS
// ******************************

// syncChecks is used on lists with multiple checkboxes to check all the checkboxes in the list
function syncChecks(formName)
{

for (var i=0;i<formName.elements.length;i++)
	{
	var e = formName.elements.elements[i];
	if (e.name != 'allbox')
		e.checked = formName.allbox.checked;
	}
}


// selectLink is used on pulldown menus to automatically open a URL based on the user's selection

function selectLink(sURL)
{
        if (sURL != "") {
                // first param is the URL, second param is the frame name
                open(sURL,"_self");
                
                // parent.archive.location = sURL
        }
}

	
// -->
