﻿		function PrintStory( sServer)
		{
				var sReleaseDate = document.getElementById('spanReleaseDate');
				var sTitle = document.getElementById('spanTitle');						
				var sContent = document.getElementById('spanContent');

				var d = new Date();
				var curr_year = d.getFullYear();

				var sPrintText =          '<head>'
				sPrintText = sPrintText + '    <meta name="WebPartPageExpansion" content="full">'
				sPrintText = sPrintText + '    <link href="http://' + sServer + '/www.css" rel="stylesheet" type="text/css" />'
				sPrintText = sPrintText + '</head>'
				sPrintText = sPrintText + '<body style="font-family: Verdana;">'
				sPrintText = sPrintText + '    <p>'
				sPrintText = sPrintText + '        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="topArea" style="height: 91px">'
				sPrintText = sPrintText + '            <tr valign="top" style="height: 91px;">'
				sPrintText = sPrintText + '                <td valign="center" style="width: 204px">'
				sPrintText = sPrintText + '                    <a href="http://' + sServer + '/">'
				sPrintText = sPrintText + '                        <img src="http://' + sServer + '/Img/spacer.gif" width="305" height="46" border="0"></a>'
				sPrintText = sPrintText + '                </td>'
				sPrintText = sPrintText + '            </tr>'
				sPrintText = sPrintText + '        </table>'
				sPrintText = sPrintText + '    </p>'
				sPrintText = sPrintText + '    <div class="Panel_Main1_content">'
				sPrintText = sPrintText + '        <div class="NewsContentDisplay_Content">'
				sPrintText = sPrintText + '<span class="NewsContentDisplay_ReleaseDate">' + sReleaseDate.innerHTML + '</span><br/><span class="NewsContentDisplay_Title">' + sTitle.innerHTML + '</span><br/><br/>' + sContent.innerHTML
				sPrintText = sPrintText + '        </div>'
				sPrintText = sPrintText + '    </div>'
				sPrintText = sPrintText + '    <p>'
				sPrintText = sPrintText + '        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse; background-color: #333333;">'
				sPrintText = sPrintText + '            <tr>'
				sPrintText = sPrintText + '                <td style="width: 10px;" align="left" valign="bottom" rowspan="3">'
				sPrintText = sPrintText + '                    &nbsp;</td>'
				sPrintText = sPrintText + '                <td align="left" valign="bottom" style="padding-top:5px">'
				sPrintText = sPrintText + '                    <a class="WwwMaster_LowerMenuRssLink" href="http://' + sServer + '/Feeds" target="_blank">'
				sPrintText = sPrintText + '                        <img class="WwwMaster_LowerMenuRssImage" src="http://' + sServer + '/img/feed-icon12.png"'
				sPrintText = sPrintText + '                            alt="RSS" style="border-width: 0; top: 1px" />'
				sPrintText = sPrintText + '                        Subscribe to iSuppli RSS Feed</a></td>'
				sPrintText = sPrintText + '                <td align="right" valign="bottom">'
				sPrintText = sPrintText + '                    <a runat="server" id="InfoMailtoLink" style="text-align: right" class="WwwMaster_LowerMenuContact"'
				sPrintText = sPrintText + '                        href="mailto:info@isuppli.com" rel="nofollow">info@isuppli.com</a><span class="WwwMaster_LowerMenuContact">&nbsp;'
				sPrintText = sPrintText + '                            |&nbsp; +1.310.524.4007</span></td>'
				sPrintText = sPrintText + '                <td style="width: 10px;" align="left" valign="bottom" rowspan="3">'
				sPrintText = sPrintText + '                    &nbsp;</td>'
				sPrintText = sPrintText + '            </tr>'
				sPrintText = sPrintText + '            <tr style="height: 1px;">'
				sPrintText = sPrintText + '                <td colspan="2">'
				sPrintText = sPrintText + '                    <hr style="height: 1px; color: gray;" />'
				sPrintText = sPrintText + '                </td>'
				sPrintText = sPrintText + '            </tr>'
				sPrintText = sPrintText + '            <tr>'
				sPrintText = sPrintText + '                <td colspan="2" class="WwwMaster_LowerMenuCopyright" style="text-align: center; padding-bottom:5px"">'
				sPrintText = sPrintText + '                    Copyright &copy; ' + curr_year + ' iSuppli Corporation. All Worldwide Rights Reserved. | <a class="WwwMaster_LowerMenuCopyright"'
				sPrintText = sPrintText + '                        href="http://' + sServer + '/Asset/2008%20iSuppli%20Copyright%20Policy.pdf" target="_blank">'
				sPrintText = sPrintText + '                        Copyright, Quotation, and Intellectual Property Policy</a></td>'
				sPrintText = sPrintText + '            </tr>'
				sPrintText = sPrintText + '        </table>'
				sPrintText = sPrintText + '    </p>'
				sPrintText = sPrintText + '</body>'

				winPrintPreview = window.open(); 
				winPrintPreview.document.write( sPrintText);
				winPrintPreview.focus();
				winPrintPreview.print();
		}


		function EmailNews( sServer)
		{
				var sFileLeafRef = document.getElementById('spanFileLeafRef');
				var sTitle = document.getElementById('spanTitle');						
				var sReleaseDate  = document.getElementById('spanReleaseDate');

				var sMailToLink = 'mailto:?subject=' + sTitle.innerHTML + ' - ' + sReleaseDate.innerHTML + '&body=Here is an iSuppli article that may be of interest to you:%0Dhttp://' + sServer + '/News/Pages/' + sFileLeafRef.innerText;								

				win = window.open( sMailToLink, 'emailWindow'); 
				
				// close window if user clicks back to parent
				if (win && win.open && !win.closed) 
				{
					win.close(); 
				}				
		}

		function EmailMarketItem( sServer, sSubsite)
		{
				var sFileLeafRef = document.getElementById('spanFileLeafRef');
				var sTitle = document.getElementById('spanTitle');						
				var sReleaseDate  = document.getElementById('spanReleaseDate');

				var sMailToLink = 'mailto:?subject=' + sTitle.innerHTML + ' - ' + sReleaseDate.innerHTML + '&body=Here is an iSuppli article that may be of interest to you:%0Dhttp://' + sServer + sSubsite + sFileLeafRef.innerText;							

				win = window.open( sMailToLink, 'emailWindow'); 
				
				// close window if user clicks back to parent
				if (win && win.open && !win.closed) 
				{
					win.close(); 
				}				
		}

		function EmailStory( sServer)
		{
				var sId = document.getElementById('ID');
				var sTitle = document.getElementById('spanTitle');						
				var sReleaseDate  = document.getElementById('spanDate');

				var sMailToLink = 'mailto:?subject=' + sTitle.innerHTML + ' - ' + sReleaseDate.innerHTML + '&body=Here is an iSuppli article that may be of interest to you:%0Dhttp://' + sServer + '/marketwatchdetail.aspx?ID=' + sId.value;								

				win = window.open( sMailToLink, 'emailWindow'); 
				
				// close window if user clicks back to parent
				if (win && win.open && !win.closed) 
				{
					win.close(); 
				}				
		}