function generatePasskeyURL(tracker) {
var shareURL =location.href;
var queryStr = (decodeURIComponent(shareURL).indexOf('?') > 0) ? "&" : "?";
queryStr += 'partner=' + tracker;
queryStr += '&exprod=' + tracker;
return encodeURIComponent(queryStr);
}

function newwindow(x) {
u=location.href;
t=document.title;
if(x==1){
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
}
else if(x==2){
popUpUrl = generatePasskeyURL('digg');
window.open('http://digg.com/remote-submit?phase=2&url='+popUpUrl+'&title=t&bodytext=tr', 'digg', 'toolbar=0,status=0');
}
else if(x==3){
window.open('http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t)+'&summary=mySummary&source='+encodeURIComponent(u),'sharer','toolbar=0,status=0');
}
else if(x==4){
window.open('http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t), 'delicious','toolbar=no,width=700,height=400');
}
else if(x==5){
window.open('http://buzz.yahoo.com/article/new_york_times/' + encodeURIComponent(u),'yahoobuzz','scrollbars=yes,resizable=yes');
}

}

////////////////////////////////
function smallfont(){
var v=document.getElementById("fontvalue").value;
d=parseInt(v)-1;
if(d<=9)d=9;
document.getElementById("fontvalue").value=d;
document.getElementById("bodydiv").style.fontSize=d;
document.getElementById("bodytd").style.fontSize=d;
}
function normalfont(){
document.getElementById("fontvalue").value=13;
document.getElementById("bodydiv").style.fontSize="13px";
document.getElementById("bodytd").style.fontSize=13;
}

function largefont()
{
var v=document.getElementById("fontvalue").value;
d=parseInt(v)+1;
if(d >= 18)d=18;
document.getElementById("fontvalue").value=d;
document.getElementById("bodydiv").style.fontSize=d;
document.getElementById("bodytd").style.fontSize=d;
}

