/**
* This array is used to remember mark status of rows in browse mode
*
- * @copyright © 2005-2006 The SquirrelMail Project Team
+ * @copyright 2005-2014 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
*/
var e = document.forms[i].elements.length;
var j = 0;
while( pos == -1 && j < e ) {
- if ( document.forms[i].elements[j].type == 'text' || document.forms[i].elements[j].type == 'password' ) {
+ if ( document.forms[i].elements[j].type == 'text' || document.forms[i].elements[j].type == 'password' || document.forms[i].elements[j].type == 'textarea' ) {
pos = j;
}
j++;
}
}
}
+
+function printThis()
+{
+ parent.frames['right'].focus();
+ parent.frames['right'].print();
+}
+
+/* JS implementation of more/less links in To/CC. Could later be extended
+ * show/hide other interface items */
+function showhide (item, txtmore, txtless) {
+ var oTemp=document.getElementById("recpt_tail_" + item);
+ var oClick=document.getElementById("toggle_" + item);
+ if (oTemp.style.display=="inline") {
+ oTemp.style.display="none";
+ oClick.innerHTML=txtmore;
+ } else {
+ oTemp.style.display="inline";
+ oClick.innerHTML=txtless;
+ }
+}