Show images for: ' + subject + '
' ci.newSubject=subject; ci.newAppendText = newbody; } function aspire_imageCommand(commandname, linkText, linkUrl, ci , completesubjectline , completeBody) { dalert(linkText); dalert(linkUrl); if (linkText == "") { this.errorMessage = "Subject is empty"; return; } if (linkUrl == "") { this.errorMessage = "A image url is required for a image command"; return; } var finalBody = ''; dalert(finalBody); ci.newAppendText = finalBody; ci.newSubject = linkText; } function aspire_gquestionCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var appendText = '' + subject + '
'; var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject); //body exists var googleSearchUrl = '' ci.newSubject=subject; ci.newAppendText = appendText + "\n" + googleSearchUrl; } function aspire_aquestionCommand(commandname, subject, body, ci , completesubjectline , completeBody) { var appendText = '' + subject + '
'; ci.newSubject=subject; ci.newAppendText = appendText + "\n" + getGoogleText(subject) + "\n" + getAndroidDevelopersText(subject) + "\n" + getAndroidBeginersText(subject) + "\n" + getGoogleCodeText(subject) + "\n" + getAndroidIssuesText(subject) ; } function getGoogleText(subject) { var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject); var googleSearchUrl = 'Search Google for: ' + subject + '
'; return googleSearchUrl; } function getAndroidDevelopersText(subject) { var baseurl="http://groups.google.com/group/android-developers/search?group=android-developers&q=" + escape(subject); var searchUrl = 'Search Android Developers Group for: ' + subject + '
'; return searchUrl; } function getAndroidBeginersText(subject) { var baseurl="http://groups.google.com/group/android-beginners/search?group=android-beginners&q=" + escape(subject); var searchUrl = 'Search Android Beginers Group for: ' + subject + '
'; return searchUrl; } function getGoogleCodeText(subject) { var baseurl="http://code.google.com/search/#p=android&q=" + escape(subject); var searchUrl = ''; return searchUrl; } function getAndroidIssuesText(subject) { var baseurl="http://code.google.com/p/android/issues/list?can=2&colspec=ID+Type+Version+Security+Status+Owner+Summary&cells=tiles&q=" + escape(subject); var searchUrl = '' return searchUrl; }