<!--
This function will validate the data that is passed to the list page
-->
function validate () {
var fld, dateFld, timeFld, value, dateValue, timeValue, nullable,
checkBox;
var isIE = document.all ? 1 : 0;
var form = document.mainForm;
if(eval('document.all("'+buffRTE+'")').htmll){
eval('document.mainForm("'+buff+'")').value=eval('document.all("'+buffRTE+'")').htmll;
}else{
for (var i = 0; i < descriptors.length; i++) {
if (!validateTag (descriptors[i])) {
return false;
}
}
return true;
}}
!--
This function will convert ordinary text area to rich text area
and will pass any data available in ordinary text area to rich text
area
-->
function changeToRichText(text,richText){
eval('document.all("'+richText+'")').text=eval('document.mainForm("'+text+'")').value;
eval('document.mainForm("'+text+'")').style.visibility="hidden";
eval('document.mainForm("'+richText+'")').style.visibility="visible";
}
<!--
This function will convert rich text area to ordinary text area
and will pass any data available in rich text area to ordinary text
area
-->
function changeToOrdText(text,richText){
if(eval('document.all("'+richText+'")').text != ""
&& eval('document.all("'+richText+'")').text != eval('document.all("'+richText+'")').htmll)
{
conf=confirm("This will convert your message into plain text and
all the formatting will be lost. continue!");
if(!conf) return;
}
eval('document.mainForm("'+text+'")').value=eval('document.all("'+richText+'")').text;
eval('document.all("'+richText+'")').text="";
eval('document.mainForm("'+text+'")').style.visibility="visible";
eval('document.mainForm("'+richText+'")').style.visibility="hidden";
}
|