// JavaScript Document
function formCheck(formobj){
	//1) Enter name of mandatory fields
	var fieldRequired = Array("Address", "City", "state", "Zip", "email");
	//2) Enter field description to appear in the dialog box
	var fieldDescription = Array("Address", "City", "State", "Zip", "email");
	//3) Enter dialog message
	var alertMsg = "The Following fields are incomplete:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
self.name = "mainWin";
}
function Pcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=6141999080533', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 
