function Csub(ShE) {
    document.sf.erm.value = ShE;
    document.sf.submit();
}
function Csubb(ShE) {
    document.sff.ermm.value = ShE;
    document.sff.submit();
}
function Csubp(ShE) {
    document.sfp.erm.value = ShE;
    document.sfp.submit();
}
function Csubr(ShE) {
    document.sfr.erm.value = ShE;
    document.sfr.submit();
}
function ERlg(e) {
	if(!e) e = window.event; 
	if(e.keyCode) kC=e.keyCode;
	else kC=e.charCode
	if(kC==13) { Rlg(); }
}
function limit(what,chars,counter) {

    if (what.value.length > chars) {
        what.value=what.value.substr(0,chars);
        alert('Max '+chars+' characters please!');
    }

    counting = (chars - what.value.length);
    c = document.getElementById(counter);
    c.innerHTML = counting;
}
