function changeURL(winName, newURL, dimensions) 
	{ 
		win = window.open("", winName, dimensions); 
		win.location.href = newURL;
	}

function move_in(img_name,img_src) 
	{ 
		document[img_name].src=img_src;	
	} 

function move_out(img_name,img_src) 
	{ 
		document[img_name].src=img_src;
	}


function check(formid)
	{
		formid.username.value = RemoveBad(formid.username.value); 
		formid.password.value = RemoveBad(formid.password.value);
		if (formid.username.value == '')
		{
			alert('Please enter a valid user name!');
			return false
		}
	
		if (formid.password.value == '')
		{
			alert('Please enter your password!');
			return false
		}			
	}

// MICROSOFT'S CODE
//*****************
//Code From Microsoft Knowledge Base

function RemoveBad(strTemp) 
	{
		strTemp = strTemp.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g, "");
		return strTemp
	}

function checkRes(formid) 
	{
		if ((screen.width == 640) && (screen.height == 480)) 
		formid.resolution.value = "640";
		else if ((screen.width == 800) && (screen.height == 600))
		formid.resolution.value = "800";
		else if ((screen.width == 1024) && (screen.height == 768))
		formid.resolution.value = "1024";
		else formid.resolution.value = "800"
	}

function changeImage(img_name)
{
	document.images['hidden1'].src = img_name;
	
}

function winConst()
{
	alert('The page you are trying to view is under construction!');
}

			function detectBrowser()
			{
			var browserName = navigator.appName;
			var browserVersion = navigator.appVersion;
			var browserVersionNum = parseFloat(browserVersion);
			var codeName=navigator.appCodeName;
			var userAgent=navigator.userAgent;

				if (browserVersionNum < 4) 
				{ 
					alert('Sorry, this web site is best viewed with \n Internet Explorer 4.0 >, or Netscape 4.5 >\n You will still be able to view the site, but some of the features may not work');
					return false;					
				}
				else
				{
					return true;
				}
			}



function doPreload()
			{

				var the_images = new Array('ww2homeover.gif','homeover.gif');
				preloadImages(the_images);
			}

function preloadImages(the_images_array) 
			{
				for(loop = 0; loop < the_images_array.length; loop++)
				{
					var an_image = new Image();
					an_image.src = the_images_array[loop];
				}
			}
