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=780,height=550,toolbar,location,status,menubar,scrollbars,resizable");
} else {
if (!popupWin.closed){
popupWin.location.href = url;
} else {
popupWin = window.open(url,name, "width=780,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;">
*/






/* openFeaturePlain - this has the size set in the script and has minimal bworser chrome*/

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


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

OR

<a href="page.html" onclick="openFeaturePlain('page.html','featureWinPlain'); 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="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 + ",status,scrollbars,resizable");
}
}
popupWin.focus();
}

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

OR

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

*/
