//***Adds a new class to an object, preserving existing classes
function AddClass(obj,cName){ KillClass(obj,cName); return obj && (obj.className+=(obj.className.length>0?' ':'')+cName); }

//***Removes a particular class from an object, preserving other existing classes.
function KillClass(obj,cName){ return obj && (obj.className=obj.className.replace(new RegExp("^"+cName+"\\b\\s*|\\s*\\b"+cName+"\\b",'g'),'')); }

//***Returns true if the object has the class assigned, false otherwise.
function HasClass(obj,cName){ return (!obj || !obj.className)?false:(new RegExp("\\b"+cName+"\\b")).test(obj.className) }

function wopen(url,w,h)
    {
        var mywin = window.open(url,'newwin','height=' + h + ',width=' + w + ',location=no,status=no,toolbar=no,scrollbars=no,resizable=yes'); 
        mywin.focus();
    }
    
function hidestatus()
{

var statusmsg=""
window.status=statusmsg
return true

}
