function aspire_googleCommand(commandname, subject, body, ci
, completesubjectline
, completeBody)
{
var baseurl="http://www.google.com/search?hl=en&q=" + escape(subject);
//body exists
var newbody = '
Search for: ' + subject + '
'
ci.newSubject=subject;
ci.newAppendText = newbody;
}
function aspire_imagesCommand(commandname, subject, body, ci
, completesubjectline
, completeBody)
{
var baseurl="http://www.google.com/images?hl=en&q=" + escape(subject);
//body exists
var newbody = '
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;
}