function formSubmit(f) { 
	if (f._submitbutton) {
		if (f._submitbutton.length) {
			for (var i=0; i<f._submitbutton.length; i++) {
				f._submitbutton[i].value=' - - - - - - '; f._submitbutton[i].disabled=true;
			}
		} else {
			f._submitbutton.value=' - - - - - - '; f._submitbutton.disabled=true;
		}
	}
	if (f._cancelbutton) { f._cancelbutton.value=' - - - - - - '; f._cancelbutton.disabled=true; }
}

function popup(url, name, w, h) { window.open(url, name, 'width='+w+',height='+h+',menubar=no,scrollbars=no,toolbars=no')}

function swap(who, state) {
  var image = eval('document.images.'+who+'');
  var source = image.src.substr(0, image.src.indexOf('.gif')-1);
  image.src = source + state + '.gif';
}

function changeimagesrc(who, newsrc) {
  var image = eval('document.images.'+who+'');
  if (image) {
	  image.src = newsrc;
  }
}



function _goto(w) {
  document.gotoform.action = w;
  document.gotoform.submit();
}
