var theAddress = '<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;' + '&#99;&#112;&#97;&#114;&#107;&#101;&#114;@' + '&#99;&#112;&#97;&#114;&#107;&#101;&#114;&#100;&#101;&#115;&#105;&#103;&#110;&#46;&#99;&#111;&#109;' + '">' + '&#99;&#112;&#97;&#114;&#107;&#101;&#114;&#64;&#99;&#112;&#97;&#114;&#107;&#101;&#114;&#100;&#101;&#115;&#105;&#103;&#110;&#46;&#99;&#111;&#109;' + '</a>';


var today = new Date()
var year = today.getYear()
if(year<1000) year+=1900


//window opening scripts


/* openFeature - this has the size set in the script*/

function openFeature(url, name) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name, "width=970,height=580,toolbar,location,status,menubar,scrollbars,resizable");
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url,name, "width=970,height=550,toolbar,location,status,menubar,scrollbars,resizable");
}
}
popupWin.focus();
}


/*
This is the link for openFeature
javascript:openFeature('page.html','featureWin')

OR

<a href="page.html" onclick="openFeature('page.html','featureWin'); return false;">
*/





/* openFeatureSize - this lets you set the size in the link - GIVE THIS WINDOW A DIFFERENT NAME if you use in in the same site with the other script */



function openFeatureSize(url, name, width, height) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name, "width=" + width + ",height=" + height + ",toolbar,location,status,menubar,scrollbars,resizable");
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url,name, "width=" + width + ",height=" + height + ",toolbar,location,status,menubar,scrollbars,resizable");
}
}
popupWin.focus();
}

/*
This is the link for openFeatureSize
javascript:openFeatureSize('page.html','featureWin2','780','500')

OR

<a href="page.html" onclick="javascript:openFeatureSize('page.html','featureWin2','780','500'); return false;">

*/





/* openFeatureSizePlain - this lets you set the size in the link and has no browser chrome- GIVE THIS WINDOW A DIFFERENT NAME if you use in in the same site with the other script */



function openFeatureSizePlain(url, name, width, height) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,name, "width=" + width + ",height=" + height + ",status,scrollbars,resizable");
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url,name, "width=" + width + ",height=" + height + ",toolbar,location,status,menubar,scrollbars,resizable");
}
}
popupWin.focus();
}

/*
This is the link for openFeatureSizePlain
javascript:openFeatureSizePlain('page.html','featureWin2','780','500')

OR

<a href="page.html" onclick="javascript:openFeatureSizePlain('page.html','featureWin2','780','500'); return false;">

*/
