function wopen (wobj, path, name)
{
    p_width = 424;
    p_height = 254;	
    p_opt = 'scrollBars=0,resizable=1,width='+ p_width +',height='+p_height;
    p_wnd = window.open(path,name,p_opt);
    p_wnd.focus();
    return true;
}

function $(element)
{
    return document.getElementById (element);
}

function textCounter(field, countfield, maxlimit) 
{
    var f = $(field);
    var cf = $(countfield);
    
    if (f.value.length > maxlimit)
    {
	f.value = f.value.substring(0, maxlimit);
    }
    else 
    {
	cf.value = maxlimit - f.value.length;
    }	
}
	
