<!-- HIDE
//  Copyright (c) 2001 WinWriters
//  You are free to use or modify this code only if you reference the
//  WinWriters web site http://www.winwriters.com
//  Coded by Rick Schlamp

//Script to check for missing required form information before server submission

function ChkForm(skillstech) {

var AlertText = "You did not respond to the following:\n\n";
var ErrFlag = 0;
var ChkFlag, i;
var numButtons;
var ConfirmSend;

//Make sure they *really* want to send the survey
ConfirmSend = confirm ("Click OK to send us the survey.  Otherwise, click Cancel.");
if (!ConfirmSend) 
	return false;

//Reset generic respondent name to email address
if (document.forms[0].email.value != "") 
	document.forms[0].realname.value = document.forms[0].email.value;

// Check for missing information in text boxes
if (skillstech.email.value == "") {
    AlertText += "           Your email address\n";
    ErrFlag = 1;
    }

/* if (skillstech.Name.value == "") {
    AlertText += "           Your name\n";
    ErrFlag = 1;
    } */

// Check for "Other" textboxes unfilled with a radio button ranking not default
// . . . if so, set default value

numButtons = 6;

if (skillstech.TOther.value == "") {
    for (i = 0; i < numButtons; i++) {
    skillstech.TOther_Imp[i].checked = false;
    }
    skillstech.TOther_Imp[numButtons-1].checked = true;
}

if (skillstech.SOther.value == "") {
    for (i = 0; i < numButtons; i++) {
    skillstech.SOther_Imp[i].checked = false;
    }
    skillstech.SOther_Imp[numButtons-1].checked = true;
}

if (skillstech.ATOther.value == "") {
    for (i = 0; i < numButtons; i++) {
    skillstech.ATOther_Sat[i].checked = false;
    }
    skillstech.ATOther_Sat[numButtons-1].checked = true;
}

// If no missing required info, return a true and pass form to server

if (ErrFlag == 0) return true;

// Otherwise, return a false with an alert box
    
AlertText += "\nPlease supply the missing information and click Send Survey.";
    
alert(AlertText);
return false;

}

// Script to open a popup window

var windowParam = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=250,height=200,top=5,left=5"
var windowOpen = false;
var fileSave = "";
function OpenDoc(fileName) {
	if (windowOpen && !newwin.closed && fileName == fileSave) {
		newwin.focus();		// re-focus popup (same file requested)
	}
	else if (windowOpen && !newwin.closed && fileName != fileSave) {
		newwin.close();		// close popup, create new popup with another file
		newwin = open (fileName, "", windowParam);
		newwin.focus(); 
		windowOpen = true;
		fileSave = fileName;
	}
	else {
		newwin = open (fileName, "", windowParam);		// none open, create new popup
		newwin.focus(); 
		windowOpen = true;
		fileSave = fileName;
	}
}

// Script to re-focus popup window, if it exists

function ReFocus(fileName) {
	if (windowOpen && !newwin.closed && fileName == fileSave) {
		newwin.focus(); 
	}
}

//STOP HIDING -->
