// clears and replaces text in form input fields and textareas
// -----------------------------------------------------------------
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function newDetailsWindow(htmlfile,width,height) {
	htmlWindow = window.open(htmlfile, 'newWin', 'width='+width+',height='+height+',toolbar=no,scrollbars=yes');
	htmlWindow.focus();
}
