var rows1;

function change(id, cols, rows)
{
var buttonId = document.getElementById('ExpandBtn')
var txtId = document.getElementById(id);
txtId.cols = cols;
if (txtId.rows == 12)
{txtId.rows = 35;
rows1 = 35;
buttonId.value = "Reduce"
}
else
 {txtId.rows = 12;
 rows1= 12;
 buttonId.value = "Expand"}
 
 
}

function init()
{
  
    
  if(rows1>0)
  {
   var txtId = document.getElementById('Textarea2');
   txtId.rows = rows1;
   
   var buttonId = document.getElementById('ExpandBtn')
   
   if(rows1 == 35)
   {
      buttonId.value = "Reduce";
   }
   else
   {
      buttonId.value = "Expand";
   }

  }
}

function showPleaseWait()
{
document.getElementById('PleaseWait').style.display = 'block';
}

function showPleaseWait2()
{
document.getElementById('PleaseWait2').style.display = 'block';
}

function ClearTextBox()
{
    showPleaseWait();
   var txt = document.getElementById('Textarea2');
   txt.value = "";
   return true;
}
