<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//creates appropriate pop-up window
function popWindow(type, urlargs){
	if (type == "privacy") {
		window.open('/common/popUps/popPrivacy.aspx','','scrollbars=no,resizable=yes,width=300,height=300');				
	} else if (type == "livehelp") {
		window.open('/common/popUps/popLiveHelp.aspx','LiveHelp','scrollbars=no,resizable=yes,width=410,height=420');				
	} else if (type == "definition") {
		urlargs = urlargs.replace(/\s/g, '+');
		window.open('/common/popUps/popDefinition.aspx?term=' + urlargs,'','scrollbars=yes,resizable=yes,width=300,height=300');
	} else if (type == "defbyid") {
		window.open('/common/popUps/popDefinition.aspx?id=' + urlargs,'','scrollbars=yes,resizable=yes,width=300,height=300');
	} else if (type == "file") {
		window.open(urlargs, '', 'scrollbars=yes,resizable=yes,width=550,height=550');
	} else if (type == "fullbrowser") {
		window.open(urlargs, '', 'menubar=yes,location=yes,status=yes,toolbar=yes,titlebar=yes,scrollbars=yes,resizable=yes,width=675,height=510');
    }    	
}

function dynPopWindow(url, name, windowAttributes)
{
	options = '';
	optWidth = 'width=500';
	optHeight = 'height=500';
	optScrollbar = 'scrollbar=yes';
	optResizable = 'resizable=yes';
	optMenubar = 'menubar=yes';
	optLocation = 'location=yes';
	optStatus = 'status=yes';
	optToolbar = 'toolbar=yes';
	
	windowOptions = windowAttributes.split(',');

	for(i = 0; i < windowOptions.length; i++)
	{
		attribute = windowOptions[i].substring(0, windowOptions[i].indexOf('=')).toLowerCase();
		
		if(attribute == 'width'){
			optWidth = windowOptions[i];
		} else if(attribute == 'height'){
			optHeight = windowOptions[i];
		} else if(attribute == 'scrollbar'){
			optScrollbar = windowOptions[i];	
		} else if(attribute == 'resizable'){
			optResizable = windowOptions[i];	
		} else if(attribute == 'menubar'){
			optMenubar = windowOptions[i];	
		} else if(attribute == 'location'){
			optLocation = windowOptions[i];	
		} else if(attribute == 'status'){
			optStatus = windowOptions[i];	
		} else if(attribute == 'toolbar'){
			optToolbar = windowOptions[i];	
		}
	}
	
	options = optWidth + ',' + optHeight + ',' + optScrollbar + ',' + optResizable + ',' + optMenubar + ',' + optLocation + ',' + optStatus + ',' + optToolbar;
	
	window.open(url, name, options);
}

//Validates RightNav Search Control input
function navSearchSubmit()
{
	if(trim(document.navSearchForm.keyword.value) != "")
	{
		document.navSearchForm.submit();
	}
	else
	{
		alert("You must enter a search value.");
		document.navSearchForm.keyword.focus();		
	}
}

//Removes All Spaces From String
function trim(val)
{
	return val.replace(/\s+/g , '');
}


//-->
