function initScrollLayers() {
	if (getRawObject('scroll_layer').offsetHeight >= 270) {
		// arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
		// if horizontal scrolling, id of element containing scrolling content (table?)
		var wndo1 = new scroll_scrollObj('scroll_win', 'scroll_layer', null);
		
		// arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
		// (x/y offsets of dragBar in track)
		wndo1.setUpScrollbar("dragBar1", "track1", "v", 1, 1);
		
		scroll_showLayers("scrollbar1");
	} else {
		showLayer('scroll_layer');
	}
}

function initScrollLayers_worksamples() {
	if (getRawObject('scroll_layer').offsetWidth >= 674) {
		// arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
		// if horizontal scrolling, id of element containing scrolling content (table?)
		var wndo1 = new scroll_scrollObj('scroll_win', 'scroll_layer', null);
		
		// arguments: dragBar id, track id, axis ("v" or "h"), x offset, y offset
		// (x/y offsets of dragBar in track)
		wndo1.setUpScrollbar("dragBar1", "track1", "h", 1, 1);
		
		scroll_showLayers("scrollbar1");
	} else {
		showLayer('scroll_layer');
	}
}

function scroll_showLayers() {
  if ( document.getElementById ) {
    var lyr, i;
    for (i=0; arguments[i]; i++) {
      lyr = document.getElementById( arguments[i] );
      lyr.style.visibility = "visible";
    }
  }
}

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

function formTest() {
	if (!document.ftpform.c_name.value) {
		alert ('Please enter a valid Company Name');
		document.ftpform.c_name.focus();
		return false;
	}
	if (!document.ftpform.s_name.value) {
		alert ('Please enter a valid Sender\'s Name');
		document.ftpform.s_name.focus();
		return false;
	}
	if (!document.ftpform.desc.value) {
		alert ('Please enter a Description');
		document.ftpform.desc.focus();
		return false;
	}
	if (!document.ftpform.tel.value) {
		alert ('Please enter a Telephone Number');
		document.ftpform.tel.focus();
		return false;
	}
	if (!emailCheck(document.ftpform.email2.value)) {
		document.ftpform.email2.focus();
		return false;
	}
	if (!fileUploadedFlag) {
		alert ('Please upload a file before submitting this form.');
		return false;
	}
	return true;
}