// confirm msgbox

function conBox(msg, doc)
{


	for(var i=0; i < doc.forms[0].res.length; i++){

		  if (doc.forms[0].res[i].checked == true){

					var sEnd = doc.forms[0].res[i].parentElement.innerHTML.search("<");
					var sHour = doc.forms[0].res[i].parentElement.innerHTML.substring(6,sEnd);

					msg = msg+"\n\n\t"+doc.forms[0].Date.value+"\n\t"+sHour

							var name = confirm(msg)
					
							if (name == true)
							{
							return true; 
							}
							else
							{
							return false;
							}

/*				else 
					if (doc.forms[0].res[i].value == "")
					{
						alert("geen uur")
						return false;
					}
*/
		  }

	}


//	return true;
}



// popup config

function popup(url, name, width, height)
{

scrWidth = screen.availWidth - width;
scrHeight = screen.availHeight - height;

popLeft = scrWidth / 2 ;
popTop = scrHeight / 2 ;

// alert(scrWidth + "x" + scrHeight + " " + popLeft + "x" + popTop);

settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,top="+popTop+", left="+popLeft+
"resizable=no,width="+width+",height="+height;

MyNewWindow=window.open(url,name,settings);
}

