mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
42 lines
851 B
JavaScript
42 lines
851 B
JavaScript
function LinkUp(element)
|
|
{
|
|
var number = document.getElementById(element).selectedIndex;
|
|
location.href = document.getElementById(element).options[number].value;
|
|
}
|
|
|
|
function openParent(get)
|
|
{
|
|
parent.location.href = 'index.php?' + get;
|
|
}
|
|
|
|
|
|
function openParentNote(get)
|
|
{
|
|
parent.location.href = 'index.php?note=' + document.getElementById('note').value + '&' + get;
|
|
}
|
|
|
|
function openParentObject(oid,get)
|
|
{
|
|
var a = parent.document.getElementById(oid);
|
|
if (a)
|
|
{
|
|
var clone = a.cloneNode(true);
|
|
var pnode = a.parentNode;
|
|
clone.data = get;
|
|
pnode.removeChild(a);
|
|
pnode.appendChild(clone);
|
|
}
|
|
|
|
}
|
|
|
|
function toggleRec(text,link,classes)
|
|
{
|
|
var a = parent.document.getElementById('reclink');
|
|
if (a)
|
|
{
|
|
a.innerHTML = text;
|
|
a.href = "javascript:poptastic('" + link + "');";
|
|
a.className = classes;
|
|
}
|
|
}
|