// Some functions 4 comments section. 
// written by Nima Shayafar.

function insertSmiley(smiley) {
	smiley = ' ' + smiley + ' ';
	document.forms['frmComment'].comment.value  += smiley;
	document.forms['frmComment'].comment.focus();	
}
function textCounter(field, maxlimit) {
   if(field.value.length > maxlimit){
      field.value = field.value.substring(0, maxlimit);
   }
   else{ 
      counter.innerText = maxlimit - field.value.length;
   }
}

