<!-- Begin

function placeTextFocus() {
if (document.forms.length > 0) {
var field = document.forms[0];
for (i = 0; i < field.length; i++) {
if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) { 
/* if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea")) {	*/
document.forms[0].elements[i].focus();
break;
         }
      }
   }
}

function ChangeLocation(newloc) {
	window.location=newloc;
	return false;
}

function ReloadPage() {
	window.location.reload();
}

function getListValue(list){
	var listValue="";
	if (list.selectedIndex != -1) {
		listValue = list.options[list.selectedIndex].value;
		}
	return (listValue);
}

function PlaceListValueInText(list, textbox) {
	var someobj;
	someobj = eval("document.forms[0]." + textbox);
	someobj.value = getListValue(list);	
}

function PlaceListIndexInText(list, textbox) {
	var someobj;
	someobj = eval("document.forms[0]." + textbox);
	someobj.value = list.selectedIndex;	
}

function PlaceTextValueInText(txt, textbox) {
	var someobj;
	someobj = eval("document.forms[0]." + textbox);
	someobj.value = txt.value;	
}

function PlaceValueInText(parmval, textbox) {
	var someobj;
	someobj = eval("document.forms[0]." + textbox);
	someobj.value = parmval;	
}

function SubmitForm(myform) {
	var someobj;
	someobj = eval("document." + myform);
	someobj.submit();
}

function OpenHelp(hlpid, popvar) {
	var hfile = 'helpfilesdetails.asp?id=' + hlpid + '&pop=';
	if (popvar =='')
		hfile = hfile + '1';
	else
		hfile = hfile + popvar;
	window.open(hfile,'_blank','height=600,width=400,top=10,left=10,status=yes,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes,titlebar=no,');
}

function popupProcessingWin(where) {
	if (where==null)
		where ='';
	if (document.all) {
		var leftpos = (document.body.clientWidth/2); 
		var toppos = (document.body.clientHeight/2);
	}
	else {
		var leftpos = (window.innerWidth/2); //- 100;
		var toppos = (window.innerHeight/2); //- 40;
	}
	newWindow = window.open(where + 'processingmsg.htm','newWin','width=200,height=180,top=' + toppos + ',left=' + leftpos + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no');
}

//  End -->