<script language=javascript>
//Edit the counter/limiter value as your wish
var count = "140";   //Example: var count = "175";
function limiter(){
var tex = document.myform.comment.value;
var len = tex.length;
if(len > count){
        tex = tex.substring(0,count);
        document.myform.comment.value =tex;
        return false;
}
document.myform.limit.value = count-len;
}

</script>

	<script language=javascript>
//Edit the counter/limiter value as your wish
var count2 = "1000";   //Example: var count = "175";
function limiter2(){
var tex = document.myform.comment2.value;
var len = tex.length;
if(len > count2){
        tex = tex.substring(0,count2);
        document.myform.comment2.value =tex;
        return false;
}
document.myform.limit2.value = count2-len;
}

</script>

<script language="javascript">
var ow = 0;
var oh = 0;
var s = 73;
var onload_blows = 0;
function scale(img)
{
    if (!onload_blows)
    scale_load(img);
                  
    i = document.getElementById(img);
    if (i.width > s)
    {
          i.style.cursor = "pointer";
                   i.width = s;
          i.height = s / (ow / oh);     
    }
    else if (i.width == s)
    {
          i.width = ow;
          i.height = oh;
    }
}
function scale_load(img)
{
    onload_blows = 1;
    t = 0;
    if (navigator.appName == "Netscape")
          t = window.innerWidth;
    else if (navigator.appName.indexOf("Microsoft") != -1 ||
                    navigator.appName.indexOf("Opera") != -1)
        t = document.body.offsetWidth;
    if (t > 64 && t < s)
          s = t - 60;
    i = document.getElementById(img);
    ow = i.width;
    oh = i.height;
    scale(img);
}
</script>
