			if(document.images)
			{
				//image1 = new Image();
				//image1.src = "/images/Mattius_Logo.gif";
				image2 = new Image();
				image2.src = "/images/Mattius-Logo.gif";
			}
			
			function swapPic(imgName, imgSrc)
			{
				document[imgName].src = imgSrc;
			}
			
			var newwindow;
			
			function popupCreator(url, popUpName, popUpHeight, popUpWidth)
			{
				Left = (screen.width/2) - (popUpWidth / 2);
				Top = (screen.height/2) - (popUpHeight / 2);
			
				popUpOptions = 'height=' + popUpHeight + ', width=' + popUpWidth + ', left=' + Left + ', top=' + Top + ',scrollbars=yes';
				newwindow=window.open(url, popUpName, popUpOptions);
				
				if (window.focus) {newwindow.focus();}
			}
			
			function ValidateField(field, fieldName, maxLen, minLen)
			{
				var fieldShort 	= 0;
				var fieldLong 	= 0;
				var fieldEmpty = 0;

				if (field.value.length == 0)
				{
					fieldEmpty = 1;
				}
				
				if (field.value.length > maxLen)
				{
					fieldLong = 1;
				}

				if (field.value.length < minLen)
				{
					fieldShort = 1;
				}

				if (fieldEmpty == 1)
				{
					window.alert ("Your " + fieldName + " is Empty!");
					field.focus();
					return false;
				}
				else if (fieldLong == 1)
				{
					window.alert ("Your " + fieldName + " is too Long!");
					field.focus();
					return false;
				}
				else if (fieldShort == 1)
				{
					window.alert ("Your " + fieldName + " is too Short!");
					field.focus();
					return false;
				}
				else
				{
					return true;
				}
			} 

			function sf(textBox)
			{
				textBox.focus();
			}
			
			function openProgressBar()
			{
				Left = (screen.width/2) - (popUpWidth / 2);
				Top = (screen.height/2) - (popUpHeight / 2);
			
				popUpOptions = 'height=100, width=200, left=' + Left + ', top=' + Top;
				ProgressBar = window.open('Script/Progress Bar.html', 'Uploading', popUpOptions);
				
				if (window.focus) {ProgressBar.focus();}
			}
			
			function closeProgressBar()
			{
				IF (false == ProgressBar.closed)
				{
					ProgressBar.close;
				}
			}
			
			var progressEnd = 9;		// set to number of progress <span>'s.
			var progressColor = 'blue';	// set to progress bar color
			var progressInterval = 1000;	// set to time between updates (milli-seconds)
			
			var progressAt = progressEnd;
			var progressTimer;
			
			function progress_clear() 
			{
				for (var i = 1; i <= progressEnd; i++)
				{
					document.getElementById('progress'+i).style.backgroundColor = 'transparent';
				}
				progressAt = 0;
			}
			function progress_update() 
			{
				progressAt++;
				if (progressAt > progressEnd)
				{
					progress_clear();
				}
				else
				{
					document.getElementById('progress'+progressAt).style.backgroundColor = progressColor;
				}
				progressTimer = setTimeout('progress_update()',progressInterval);
			}
			function progress_stop() 
			{
				clearTimeout(progressTimer);
				progress_clear();
			}