﻿// JScript File

function services(w){
    var parentid = 0;
    for(var i=0;i < w.options.length; i++){
        if(w.options[i].selected){
            parentid = w.options[i].value + ".";
            lengthid = w.options[i].value.length+1;
            for(var n=0;n < w.options.length; n++){
                if(w.options[n].value.substring(0,lengthid) == parentid){
                    w.options[n].selected = true;
                }
            }
        }
    }
}

function count(w){
    
    document.getElementById("counter").innerText = 153 - w.value.length + " tekens over";
    if(w.value.Length>153){
        w.value = w.value.substring(0,153);
    }
}

function submitfrm(){
   //document.location="";
}

