function getURL(icon)
{  
		var URL = window.document.URL.toString();
        var Title= document.title.toString();
		var Title_encode = encodeURIComponent(Title);
		var URL_encode = encodeURIComponent(URL);

		switch (icon)
			{
				case "Email": 
				email1= "/news/printPage/messageForm.html?url="+URL+"&title="+Title;
				window.open(email1,"_blank","width=460, height=460, scrollbars=0"); 
				break;

				case "Link": 
				link1 = "/news/printPage/link.html?url="+URL+"&title="+Title;
				window.open(link1,"_blank","width=400,height=380,scrollbars=1");  
				break;

				case "Technorati":
				news1 = "http://technorati.com/search/"+'"'+Title_encode+'"'+"?partnerid=420";
	            window.open(news1,"_blank");
				break;

				case "BlogSearch":
				var words = Title_encode.split('%20');
				var s = words.join("+"); 
				news1 = "http://blogsearch.google.com/blogsearch?hl=en&q="+s+"&btnG=Search+Blogs";
	            window.open(news1,"_blank");
				break;

				case "Delicious": 
				news1 = "http://del.icio.us/post?url="+URL_encode+"&amp;title="+ Title_encode+ "&amp;jump=doclose"+ "&amp;partner=prnews";
				window.open(news1,"_blank","toolbar=no, width=700, height=400");
				break;

				case "Digg":
				var x = URL.split('?');
				u = "http://www.prnewswire.co.uk/cgi/news/release" + "?" + x[1];
	  			URL_encode1 = encodeURIComponent(u);
	    	    news1 = "http://digg.com/submit?phase=2&url="+URL_encode1+"&title="+ Title_encode;
	            window.open(news1,"_blank");
				break;

				case "Facebook":
				news1 = 'http://www.facebook.com/sharer.php?u='+URL_encode+'&t='+Title_encode;
	            window.open(news1,'sharer','toolbar=0,status=0,width=626,height=436');
				break;

				case "Google":
				news1 = "http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+URL_encode+"&title="+Title_encode;
	            window.open(news1,"bkmk_popup","left="+((window.screenX||window.screenLeft)+10)+",top="+((window.screenY||window.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");
				break;

				case "MySpace":
				news1 = 'http://www.myspace.com/Modules/PostTo/Pages/?' + 't=' + Title_encode+ '&c=' + Title_encode + '&u=' + URL_encode + '&l=' + 2;
	            window.open(news1,"_blank");
				break;

				case "MyYahoo":
				news1 = 'http://beta.bookmarks.yahoo.com/toolbar/savebm?u='+URL_encode+'&t='+Title_encode;
	            window.open(news1,'sharer','toolbar=0,status=0,width=626,height=436,scrollbars=yes');
				break;

				case "Newswine":
				news1 = 'http://www.newsvine.com/_wine/save?popoff=1&h=' + escape(Title) + '&u='+ escape(URL);
	            window.open(news1,'newsvine','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
				break;

				case "Reddit":
				news1 = 'http://reddit.com/submit?url=' + escape(URL) + '&title=' + escape(Title);
	            window.open(news1,'reddit','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
				break;

				case "Stumbleupon":
				news1 = 'http://www.stumbleupon.com/submit?url=' + escape(URL) + '&title=' + escape(Title);
	            window.open(news1,'stumbleupon','toolbar=no,width=590,height=600,resizable=yes,scrollbars=yes');
				break;

				case "Blogger":
				if (legalconfirm() == false){
					javascript:popw='';
					Q='';
					x=document;
					y=window;
					if(x.selection) 
						{Q=x.selection.createRange().text;} 
					else if (y.getSelection) 
						{Q=y.getSelection();} 
					else if (x.getSelection) 
						{Q=x.getSelection();}
					news1 = 'http://www.blogger.com/blog_this.pyra?t=' + escape(Q) + '&u=' + escape(URL) + '&n=' + escape(Title);
					popw = window.open(news1,'bloggerForm','scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes');
					if (!document.all) T = setTimeout('popw.focus()',50);
					void(0);
				}
				break;

				case "Wordpress":
				if (legalconfirm() == false){
					news1 = 'http://wordpress.com/wp-admin/';
		            window.open(news1,'bookmarklet','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes,resizable=yes');
				}
				break;

				case "Twitter":
				if (legalconfirm() == false){
					twitstr = "Reading: " + URL;
					news1 = "http://twitter.com/home?status=" + encodeURIComponent(twitstr);
	           			window.open(news1,"Twitter", "width=600, height=500, location, status, scrollbars, resizable");
				}
				break;

				default : 
				alert("no icon");
             }

        return true;
}

function legalconfirm() {
	var answer = confirm("The blogging site you are about to enter has no connection to PR Newswire or the issuer of this release. Links to third party sites are for your convenience only and do not imply any endorsement, guarantee, warranty or representation by PR Newswire or the issuer of this release.")
	if (answer){
		return false;
	} else {
		return true;
	}
}

