var NoPopUps = false // assume popups work
function PopUpWindows(){ 
	NoPopUps =  ! NoPopUps
	lastBad = false
	lastMsg=''
	if (NoPopUps){
		if ( typeof submitWindow =='object'){
			if ( ! submitWindow.closed ){
				submitWindow.close()
			}
		}
		if ( typeof errorWindow =='object'){
			if ( ! errorWindow.closed ){
				errorWindow.close()
			}
		}
		alert ("Error messages will be shown in a message box like this one.")
	}else{
		alert("Error message will be shown in a separate popup window.\nIf you don't see error messages, please click this link again.")
	}
}// function PopUpWindows
