
//Sets a value to target
function SetPageCommand(target, newcmd)
{
    var target = document.getElementById(target);
    target.value = newcmd;
}

//Browser-related value to direct select addition order
function NullValue()
{
    var nuva = null;	//For Firefox
    if(navigator.appName == "Microsoft Internet Explorer")
	nuva = -1;	//For IE
    return nuva;
}

//Menu selection => main frame triggering functions.

function WindowOpen(url, name, properties)
{
    window.open(url, name, properties)
}

//Load target frame with set url
function FrameLoad(name, url)
{
    var n=parent.frames.length;
    for(var i=0; i<n ; i++)
    {
	if(parent.frames[i].name == name)
	{
	    parent.frames[i].location.href = url;
	}
    }
}

function FocusMe(id)
{
    var foo = document.getElementById(id);
    foo.focus();
}
