//Misc helper javascript functions
//Copyright 2004 Seanix Technology Canada Ltd.
//Last revised by JL Jan 2004

if (document.images) {
	var arrow = new Image();
	arrow.src = "/images/arrow.gif";
	var arrowBlank = new Image();
	arrowBlank.src = "/images/arrowBlank.gif";
} // end of if (document.images)
		
function changeImages() {
	if (document.images) {
		for (var i=0; i < changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		} // end of for (var i=0; i&lt;changeImages.arguments.length; i+=2)
	} // end of if (document.images)
} // end of function changeImages()

function usernameFocus() {
//   document.loginForm.lg_ID.focus();
	 document.getElementById('lg_ID').focus();
} // end of function usernameFocus()

function homeFocus() {
//	alert('...');
  document.getElementById('home').focus();
} // end of function homeFocus()

function updateCompany(formName) {
	if (formName == "orderStatus") {
		getValue = document.orderStatus.Company.value;
		setValue = document.orderStatus.searchCompany.value = getValue;
	} // end of if formname == "orderStatus" }
	
	if (formName == "orderTrack") {
		getValue = document.orderTrack.Company.value;
		setValue = document.orderTrack.searchCompany.value = getValue;
	} // end of if formname == "orderTrack" }
	
} // end of updateCompany()

function clearCompanyValue() {
	document.orderStatus.searchCompany.value = "";
	document.orderStatus.Company.value = "";
} // end of clearCompanyValue()


