");
}
function Transform()
{
var input = self.document.inputForm.textArea.value;
var source = self.document.inputForm.source.value;
var target = self.document.inputForm.target.value;
padmawin = window.open("", "padma");
var doc = padmawin.document;
writeHeader(doc);
var length = input.length;
var next = 0;
do {
var hash = input.indexOf('#', next);
if (hash == next) {
hash = input.indexOf('#', hash + 1);
if (hash != -1)
doc.write((new String(self.document.padma.transform(input.substring(next + 1, hash), source, target))).replace(/\n/g, "
"));
else doc.write((new String(self.document.padma.transform(input.substring(next + 1), source, target))).replace(/\n/g, "
"));
next = hash + 1;
}
else if (hash != -1) {
doc.write(new String(input.substring(next, hash)).replace(/\n/g, "
"));
next = hash;
}
else {
doc.write(new String(input.substring(next)).replace(/\n/g, "
"));
}
} while (hash != -1 && hash < (length - 1));
doc.writeln("
Transformed using పద్మ<\/A> Version 0.1. Copyright © 2005 Nagarjuna Venna. All rights reserved.<\/P>");
doc.writeln("<\/BODY><\/HTML>");
doc.close();
return true;
}
// end hiding contents from old browsers -->
For the latest version of Padma, click here.