<!--

function printable(page) {
   if ( navigator.appName=='Microsoft Internet Explorer' ) {
	props0=window.open(page, 'printable', 'dependent=1,toolbar=0,scrollbars=0,location=0,statusbars=0,menubar=1,resizable=1,width=600,height=400,left=50,top=50');
   } else {
	props0=window.open(page, 'printable', 'toolbar=no,scrollbars=no,location=no,status=no,menubar=yes,resizable=yes,dependent=yes,width=600,height=400,screenX=50,screenY=50'); 
   };
}

function tourViewer(page) {
   if ( navigator.appName=='Microsoft Internet Explorer' ) {
	props0=window.open(page, 'printable', 'dependent=1,toolbar=0,scrollbars=0,location=0,statusbars=0,menubar=0,resizable=1,width=500,height=400,left=50,top=50');
   } else {
	props0=window.open(page, 'printable', 'toolbar=no,scrollbars=no,location=no,status=no,menubar=no,resizable=yes,dependent=yes,width=500,height=400,screenX=50,screenY=50'); 
   };
}

var submitcount=0;
function checkSubmit() {
   if (submitcount == 0)
   {
	   submitcount++;
	   document.Surv.submit();
   }
}


function wordCounter(field, countfield, maxlimit) {
wordcounter=0;
for (x=0;x<field.value.length;x++) {
      if (field.value.charAt(x) == " " && field.value.charAt(x-1) != " ")  {wordcounter++}  // Counts the spaces while ignoring double spaces, usually one in between each word.
      if (wordcounter > 250) {field.value = field.value.substring(0, x);}
      else {countfield.value = maxlimit - wordcounter;}
      }
   }

function textCounter(field, countfield, maxlimit) {
  if (field.value.length > maxlimit)
      {field.value = field.value.substring(0, maxlimit);}
      else
      {countfield.value = maxlimit - field.value.length;}
  }
// -->