function sharethis(provider) 
{
		u=location.href;
        t=document.title;
        
        if(provider=='facebook'){
        	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer', 'toolbar=yes,location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes, width=626, height=436');
        	return false;
        }
        if(provider=='digg'){
        	window.open('http://digg.com/submit?url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'sharer', 'toolbar=yes,location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes, width=626, height=436');
        	return false;
        }
        if(provider=='delicious'){
        	window.open('http://del.icio.us/post?url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'sharer', 'toolbar=yes,location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes, width=626, height=436');
            return false;
        }
        if(provider=='twitter'){
        	window.open('http://twitter.com/home?status='+encodeURIComponent(u),'sharer', 'toolbar=yes,location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes, width=626, height=436');
            return false;
        }
        if(provider=='linkedin'){
        	window.open('http://linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t)+'&summary='+encodeURIComponent(t)+'&source=CRN','sharer', 'toolbar=yes,location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, resizable=yes, width=626, height=436');
            return false;
        }
}

