// JavaScript Document

// Reloads the window if Nav4 resized
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

// Disable a radio group
function disableGroup(groupID,booleanDisabled){
	for(var i=0;i<document.questionnaire.elements[groupID].length;i++){
    	document.questionnaire.elements[groupID][i].disabled=booleanDisabled;
	}
}

// Disable an input
function disableInput(inputID,booleanDisabled){
	document.questionnaire.elements[inputID].disabled=booleanDisabled;
}

// Set popup window properties
var newWindow;
function popIt(url,h,w){
	newWindow=window.open(url,'height='+h+',width='+w+',resizable=0,scrollbars=0,toolbar=0,menubar=0,location=0,status=yes,directories=no');
	if(window.focus){newWindow.focus()}
}
