<!-- begin
function checkconfident()
{
//	var confident = document.getElementById("agreecheckbox").checked;
	var redir = document.getElementById("redirurl").value;
	if (document.getElementById("agreecheckbox").checked == false) 	{
		redir = "/content/usermessage.asp?umsgid=6";
	}
	document.location=redir
}

function launchwin(winurl,winname,winfeatures)               
{                                                            
  newwin = window.open(winurl,winname,winfeatures);         
}

function afterbodyload() {
	loadpics();
}

function afterbodyloadstart() {
	loadpics();
	startit();
}


function listpics() {
	for (i=0;i<document.images.length;i++) {
		alert(document.images[i].src);
	}
}

function loadpics() {
	var M_A,M_Al, i;
	if(typeof(window.ImgArr)!='undefined'){
		M_A=window.ImgArr;
		M_Al=M_A.length;
		for (i=0;i<M_Al;i+=2) {
			if (document.images.length > 0){
				document.images[M_A[i]].src = M_A[i+1];
			}
		}
	}
}

function fadepic(){
if (curpos<100){
curpos+=10
if (tempobj.filters)
tempobj.filters.alpha.opacity=curpos
else if (tempobj.style.MozOpacity)
tempobj.style.MozOpacity=curpos/100
}
else{
clearInterval(dropslide)
nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'" alt="">'
nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
setTimeout("rotateimage()",pause)
}
}

function rotateimage(){
if (ie4||dom){
resetit(curcanvas)
var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex++
var temp='setInterval("fadepic()",50)'
dropslide=eval(temp)
curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
}
else
document.images.defaultslide.src=fadeimages[curimageindex]
curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

function resetit(what){
curpos=10
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj.filters)
crossobj.filters.alpha.opacity=curpos
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=curpos/100
}

function startit(){
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'" alt="">'
rotateimage()
}

function formHandler1(form1){
//var URL = document.form1.site.options[document.form1.site.selectedIndex].value;
var URL = document.getElementById('site').options[document.getElementById('site').selectedIndex].value
window.location.href = URL;
}

function formHandler2(form2){
//var URL = document.form2.site.options[document.form2.site.selectedIndex].value;
var URL = document.getElementById('site').options[document.getElementById('site').selectedIndex].valuewindow.location.href = URL;

}

function imgSwap(oImg) {
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}

function emailSend(winurl) {
	var winfeatures = "'fullscreen=no,toolbar=no,status=no,menubar=no,resizable=yes,directories=no,location=no,width=430,height=500,left=100,top=100,scrollbars=yes'";
	var winname = "emailafriend";
   newwin = window.open(winurl,winname,winfeatures); 
   setTimeout('newwin.focus();',250);            
}


function closeWindow() {
    // avoid the "Are you sure?" question.
    window.open('','_parent','');
    window.close();
}


function showpopup(url) {
    var myTitle = "Maintenance Utility";
    var myWinFeatures = "dialogHeight: 400px; dialogWidth: 600px; edge: Raised; center: Yes; help: Yes; resizable: No; status: No;"
    var myText = showModalDialog(url, myTitle, myWinFeatures); // str or obj specified here can be read from dialog as "window.dialogArguments"
}
function showpopupcolorpicker(url) {
    var myTitle = "Maintenance Utility";
    var myWinFeatures = "dialogHeight: 350px; dialogWidth: 500px; edge: Raised; center: Yes; help: Yes; resizable: No; status: No;"
    var myText = showModalDialog(url, myTitle, myWinFeatures); // str or obj specified here can be read from dialog as "window.dialogArguments"
}
function go_submit() {
	var val, value;
	val = document.frmSearch.expand.options[document.frmSearch.expand.selectedIndex].value;
	value = val.split("|");
	document.frmSearch.refer.value = value[0];
	document.frmSearch.page.value = value[1];
	document.frmSearch.linktype.value = value[2];
//	alert(value[0])
	if (value[0] == 0)	 {
		document.frmSearch.refer.name=null;
		document.frmSearch.submit();

		return false;
		}
		else {
		document.frmSearch.submit();
		}
	}
function go_submit2() {
	var val, value;
	val = document.frmSearch.expand.options[document.frmSearch.expand.selectedIndex].value;
	value = val.split("|");
	document.frmSearch.refer.value = value[0];
	document.frmSearch.page.value = value[1];
	document.frmSearch.linktype.value = value[2];
	document.frmSearch.submit();
}

function refresh() {
	if (document.frmSearch.title.selectedIndex == 0) {
		document.frmSearch.title.name="";
		frmSearch.submit()
	}
	frmSearch.submit()
}

//**********************************************************************
//  BEGIN MODAL DIALOG CODE (can also be loaded as external .js file)
//***********************************************************************/
// Global for brower version branching.
var Nav4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))

// One object tracks the current modal dialog opened from this window.
var dialogWin = new Object()

// Generate a modal dialog.
// Parameters:
//    url -- URL of the page/frameset to be loaded into dialog
//    width -- pixel width of the dialog window
//    height -- pixel height of the dialog window
//    returnFunc -- reference to the function (on this page)
//                  that is to act on the data returned from the dialog
//    args -- [optional] any data you need to pass to the dialog
function openDGDialog(url, width, height, returnFunc, args) {
	if (!dialogWin.win || (dialogWin.win && dialogWin.win.closed)) {
		// Initialize properties of the modal dialog object.
		dialogWin.returnFunc = returnFunc
		dialogWin.returnedValue = ""
		dialogWin.args = args
		dialogWin.url = url
		dialogWin.width = width
		dialogWin.height = height
		// Keep name unique so Navigator doesn't overwrite an existing dialog.
		dialogWin.name = (new Date()).getSeconds().toString()
		// Assemble window attributes and try to center the dialog.
		if (Nav4) {
			// Center on the main window.
			dialogWin.left = window.screenX + 
			   ((window.outerWidth - dialogWin.width) / 2)
			dialogWin.top = window.screenY + 
			   ((window.outerHeight - dialogWin.height) / 2)
			var attr = "screenX=" + dialogWin.left + 
			   ",screenY=" + dialogWin.top + ",resizable=no,width=" + 
			   dialogWin.width + ",height=" + dialogWin.height
		} else {
			// The best we can do is center in screen.
			dialogWin.left = (screen.width - dialogWin.width) / 2
			dialogWin.top = (screen.height - dialogWin.height) / 2
			var attr = "left=" + dialogWin.left + ",top=" + 
			   dialogWin.top + ",resizable=no,width=" + dialogWin.width + 
			   ",height=" + dialogWin.height
		}
		
		// Generate the dialog and make sure it has focus.
		dialogWin.win=window.open(dialogWin.url, dialogWin.name, attr)
		dialogWin.win.focus()
	} else {
		dialogWin.win.focus()
	}
}

// Event handler to inhibit Navigator form element 
// and IE link activity when dialog window is active.
function deadend() {
	if (dialogWin.win && !dialogWin.win.closed) {
		dialogWin.win.focus()
		return false
	}
}

// Since links in IE4 cannot be disabled, preserve 
// IE link onclick event handlers while they're "disabled."
// Restore when re-enabling the main window.
var IELinkClicks

// Disable form elements and links in all frames for IE.
function disableForms() {
	IELinkClicks = new Array()
	for (var h = 0; h < frames.length; h++) {
		for (var i = 0; i < frames[h].document.forms.length; i++) {
			for (var j = 0; j < frames[h].document.forms[i].elements.length; j++) {
				frames[h].document.forms[i].elements[j].disabled = true
			}
		}
		IELinkClicks[h] = new Array()
		for (i = 0; i < frames[h].document.links.length; i++) {
			IELinkClicks[h][i] = frames[h].document.links[i].onclick
			frames[h].document.links[i].onclick = deadend
		}
		frames[h].window.onfocus = checkModal
    	frames[h].document.onclick = checkModal
	}
}

// Restore IE form elements and links to normal behavior.
function enableForms() {
	for (var h = 0; h < frames.length; h++) {
		for (var i = 0; i < frames[h].document.forms.length; i++) {
			for (var j = 0; j < frames[h].document.forms[i].elements.length; j++) {
				frames[h].document.forms[i].elements[j].disabled = false
			}
		}
		for (i = 0; i < frames[h].document.links.length; i++) {
			frames[h].document.links[i].onclick = IELinkClicks[h][i]
		}
	}
}

// Grab all Navigator events that might get through to form
// elements while dialog is open. For IE, disable form elements.
function blockEvents() {
	if (Nav4) {
		window.captureEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS)
		window.onclick = deadend
	} else {
		disableForms()
	}
	window.onfocus = checkModal
}
// As dialog closes, restore the main window's original
// event mechanisms.
function unblockEvents() {
	if (Nav4) {
		window.releaseEvents(Event.CLICK | Event.MOUSEDOWN | Event.MOUSEUP | Event.FOCUS)
		window.onclick = null
		window.onfocus = null
	} else {
		enableForms()
	}
}

// Invoked by onFocus event handler of EVERY frame,
// return focus to dialog window if it's open.
function checkModal() {
	setTimeout("finishChecking()", 50)
	return true
}

function finishChecking() {
	if (dialogWin.win && !dialogWin.win.closed) {
		dialogWin.win.focus() 
	}
}
//**************************
//  END MODAL DIALOG CODE
//**************************/


                                                            
// End -->