// FUNCTION TO WRITE YEAR
function writeYear() {
var time=new Date();
var year=time.getYear();
if (year < 2000)    
year = year + 1900; 
document.write(year);
}

// FUNCTION FOR POP-UP WINDOWS
function openPopup(url,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
	if(url.indexOf('/pddev') != -1) {
		popupwin=window.open(url, 'Popup', 'width='+w+',height='+h+',scrollbars=yes,toolbar=no,menubar=no,location=no,titlebar=no,left='+winl+',top='+wint+',screenX='+winl+',screenY='+wint+',resizable=yes,alwaysRaised=yes');
  	} else {
		popupwin=window.open(url, 'Popup', 'width='+w+',height='+h+',scrollbars=yes,toolbar=yes,menubar=yes,location=yes,titlebar=yes,left='+winl+',top='+wint+',screenX='+winl+',screenY='+wint+',resizable=yes,alwaysRaised=yes');
  	}
  popupwin.focus();
}


// Javascript to show and hide layers
// if layer is to be hidden on load then the DIV's attribute needs to be  
// style="display: none"
// DIV must also have a unique ID

function HideContent(d) {
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	document.getElementById(d).style.display = "";
}



