// JavaScript Document
/* ################### */
/* OLD POPUP FUNCTIONS */
/* ################### */
function popup_window(url,n,w,h,s,r) {
	var popwin;
	popwin = window.open (url,n,"width="+w+",height="+h+",scrollbars="+s+"statusbar=0,resizable="+r+",toolbar=0,location=0");

	if(popwin == null || typeof(popwin) == "undefined") {
		return true;
	} else {
		popwin.focus();
		return false;
	}
}

function closeWindow(thisForm, popUp) {
   var agreed = new Boolean();
   var isPopUp = new Boolean();
   isPopUp = eval(popUp);

   for (var i = 0; i < thisForm.agreed.length; i++) {
	if (eval(thisForm.agreed[i].checked)) {
		agreed = eval(thisForm.agreed[i].value);
		break;
	}
   }
   if ((isPopUp) && !(agreed)) {
	window.close();
	return false;
   }
   else if ((isPopUp) && (agreed)) {
	window.close();
	return true;
   }
}
/* ####################### */
/* END OLD POPUP FUNCTIONS */
/* ####################### */

