//Final version 1.000. function EMailStream(obj) { var stream; if(document.body.innerHTML.search(/fbRating/) != -1) {fbReload();} // *****Start: Localization Section************************ var fbTitle_Text = 'Do you have feedback about this ADO topic?'; var fbParagraph_Text = 'The MDAC documentation team welcomes your suggestions and comments about our documentation and samples. You can quickly and directly send us e-mail feedback using the form below.

If you need technical support, see "Getting Help from Microsoft Product Support Services." The MDAC documentation team cannot answer technical support questions, but we welcome your comments concerning the presentation, accuracy, and thoroughness of the documentation.

Thank you for your feedback!'; //---Note to localization: Do not change and tags.--- var fbRateThisTopic_Text = 'Rate this topic (1-5):'; var fbPoor_Text = "Poor"; var fbExcellent_Text = "Excellent"; var fbEnterFeedbackHere_Text = 'To submit written feedback about this topic, click here:'; var fbCancel_Text = 'Cancel'; // ******End: Localization Section************************ // *****(There is another localization section below.)***** stream = '

' + '
' + '
' + '
' + fbTitle_Text + '
' + '

' + fbParagraph_Text + '

' + '
' + '

' + fbRateThisTopic_Text + '    ' + fbPoor_Text + ' ' + '' + '' + '' + ' ' + fbExcellent_Text + '

' + '
' + '

' + fbEnterFeedbackHere_Text + '    ' + ''+ submitFeedback() + '

' + '

' + fbCancel_Text + '       

' + '
' + '
'; obj.innerHTML = stream; } function submitFeedback() { // *****Start: Localization Section********************** var fbTypeHere_Text = 'Please type comments here, leaving the subject line in place.' var fbSubmit_Text = 'Submit feedback'; // ******End: Localization Section*********************** var sRecipient = "mailto:adodoc@microsoft.com"; var sTitle = ParseTitle(document.title); var sCHM = ParseFileName(window.location.href,1); var sHTM = ParseFileName(window.location.href,2); var sLang = navigator.systemLanguage; var sSubject = sTitle + ' (' + sCHM + '::/' + sHTM + '>>' + '\' + GetRating() + \':' + sLang + ')'; var sEntireMailMessage = sRecipient + '?subject=' + sSubject + '&body=---' + fbTypeHere_Text + '---'; var sHREF = '' + fbSubmit_Text + ''; return sHREF; } //---Parses document title.--- function ParseTitle(theTitle) { theTitle = theTitle.replace(/\"/g,"--"); theTitle = theTitle.replace(/'/g,"-"); if (theTitle == "") {theTitle = "Documentation Feedback";} if (theTitle.length > 60) {theTitle = theTitle.slice(0,57) + "...";} return theTitle; } //---Parses document filename.--- function ParseFileName(Filename, theNum) { var intPos = Filename.lastIndexOf("\\"); var intLen = Filename.length; var newFileName = Filename.substr(intPos + 1, intLen - intPos) newFileName = newFileName.replace(/#Feedback/g,""); var x = newFileName.lastIndexOf("/"); if (theNum == 1) {newFileName = newFileName.substr(0, (x-2));} if (theNum == 2) {newFileName = newFileName.substr(x + 1);} return(newFileName); } function GetRating() { sRating = "0"; for(var x = 0;x < 5;x++) { if(document.formRating.fbRating(x).checked) {sRating = x + 1;} } return sRating; } //---Reloads window.--- function fbReload() { window.location.reload(true); }