function showImage()
{
	var img_ary = new Array(); // Array to hold filenames 

	img_ary[0] = 'forensic.jpg'; 
	img_ary[1] = 'kevin2.jpg'; 
	img_ary[2] = 'summer2.jpg'; 
	
	var j = 0;
	var p = img_ary.length;
	var preBuff = new Array();
	for (i = 0; i < p; i++){
	   preBuff[i] = new Image();
	   preBuff[i].src = img_ary[i];
	}
	var selectImage = Math.round(Math.random()*(p-1));
	
	var imageName = img_ary[selectImage];
// Uncomment when in use
//	document.getElementById('targetImage').innerHTML="<img src='" + imageName + "'>";
}

function resizeIframe()
{
	document.getElementById("CS_IFRAME").style.height = "0px"; // So that it doesn't affect the new height
	document.getElementById("CS_IFRAME").style.width = "0px";  // So that it doesn't affect the new width

	document.getElementById("CS_IFRAME").style.height	= window.document.getElementById("container").clientHeight + "px";

	if ((navigator.appName).indexOf("Microsoft")!=-1)
	{
		document.getElementById("CS_IFRAME").style.width	= window.document.getElementById("container").clientWidth - 230 + "px";
	}
	else
	{
		document.getElementById("CS_IFRAME").style.width	= window.document.getElementById("container").clientWidth - 200 + "px";
	}
}

function validatePWChange()
{
	if (document.passwordChange.cur_password.value == "")
	{
		alert("Please enter your current password.");
	}
	else
	{
		if (document.passwordChange.new_password.value != document.passwordChange.new_password2.value)
		{
			alert("New Password does not match.  Please re-type it.");
		}
		else
		{
			if(document.passwordChange.new_password.value.length <= 4 ||
				document.passwordChange.new_password2.value.length <= 4)
			{
				alert("Please enter a password with length greater than four (4).");
			}
			else
			{
				// Allow it to submit
				document.passwordChange.submit();
			}
		}
	}
}