// JavaScript Document
//-----------
//new window
//-----------
var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth, strTop, strLeft) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth+" ,top="+strTop+" ,left="+strLeft;
 if (strType=="fixed") 
   strOptions="status,scrollbars,resizable,height="+ 
     strHeight+",width="+strWidth+" ,top="+strTop+" ,left="+strLeft;
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth+" ,top="+strTop+" ,left="+strLeft; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}
//-----------
//end new window
//-----------

function confirmDel(message) {
document.DelReturnValue=confirm(message);
}

<!--
function checkDate(theform, thefield) {
var startday, startmonth, startyear, indexa, indexb, indexc, errFlag;
with (theform)
 {
indexa=Day.selectedIndex;
indexb=Month.selectedIndex;
indexc=Year.selectedIndex;
startday=Day.options[indexa].value;
startmonth=Month.options[indexb].value;
startyear=Year.options[indexc].value;

//NB won't work for 2100, 2200 etc!!
if(((startmonth == 4 | startmonth == 6 | startmonth == 9 | startmonth == 11) && startday==31) | (startyear % 4 != 0 && startmonth == 2 && startday > 28) | (startyear % 4 ==0 && startmonth == 2 && startday > 29)) {
		alert("Invalid date");
		document.MM_returnValue=false;
	} else {
			thefield.value=startday+'/'+startmonth+'/'+startyear;
			document.MM_returnValue=true;	
	}	
 }		
}
//-->

function positionFooter()
{
	var heightContent = 0;

	// Get biggest column height by checking left, middle and right column
	if (document.getElementById('navigation'))
	{
		heightContent = document.getElementById('navigation').offsetHeight;
	}
	if (document.getElementById('content'))
	{
		heightContent = document.getElementById('content').offsetHeight > heightContent ? document.getElementById('content').offsetHeight : heightContent;
	}
	if (document.getElementById('div_column_right'))
	{
		heightContent = document.getElementById('div_column_right').offsetHeight > heightContent ? document.getElementById('div_column_right').offsetHeight : heightContent;
	}
	
	// Is there an element with the ID "footer"?
	if (document.getElementById('footer'))
	{
		// IE or not IE?
		if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0)
		{
			document.getElementById('footer').style.setAttribute('top', heightContent + 'px');
		}
		else
		{
			document.getElementById('footer').style.setProperty('top', heightContent + 'px', null);
		}
	}
}
