function ClearForm() {
    document.forms[0].loginName.value = "";
	document.forms[0].loginName.focus();
}

function ResizeScreen() {
	IframeResize();
}

function LoadPage() {
	IframeResize();
	preloadImages();
}

function IframeResize() {
	var myIFrame = document.getElementById("contentIFrame");
	var myCell =   document.getElementById("contentCell");
	var myTable =  document.getElementById("contentTable");
	var myStretchCell = document.getElementById("stretchCell");
	myIFrame.style.display = "none";
	myIFrame.height = 100;
	var myHeight = document.body.clientHeight - 270;
	if (myHeight < 456) {
		myHeight = 456;
	}
	myIFrame.height = myHeight;
	myTable.height = myHeight;
	myCell.height = myHeight;
	myStretchCell.height = myHeight - 321;
	myIFrame.style.display = "";
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}