File: //old_home_backup/mycamden.co.uk/public_html/top_tables/networklinks.js
<!--
// Just the network links
function network_pop(loc,width,height)
{
//alert(loc);
//alert(width);
//alert(height);
if(document.location.search.indexOf("domainID=") != -1)
{
//alert("domainID present");
var que = document.location.search;
var domainID = que.substring(que.indexOf("domainID=")+9, que.length);
}
else
{
//alert("no domainID");
var subloc = document.location.hostname;
test = subloc.substring(subloc.indexOf(".")+1, subloc.length);
var domainID = test.substring(test.index, test.indexOf("."));
}
if (loc.indexOf("?") != -1)
{
//alert(domainID);
temp = loc+"&domainID="+domainID;
eval("window.open('"+temp+"','comp','width="+width+",height="+height+"')");
}
else
{
//alert(domainID);
temp = loc+"?domainID="+domainID;
eval("window.open('"+temp+"','comp','width="+width+",height="+height+"')");
}
}
function network_link(linkx,new_window)
{
if(document.location.search.indexOf("domainID=") != -1)
{
//alert("domainID present");
var que = document.location.search;
var domain = que.substring(que.indexOf("domainID=")+9, que.length);
}
else
{
//alert("no domainID");
var subloc = document.location.hostname;
test = subloc.substring(subloc.indexOf(".")+1, subloc.length);
var domain = test.substring(test.index, test.indexOf("."));
}
if (linkx.indexOf("?") != -1)
{
temp = linkx+"&domain="+domain;
}
else
{
temp = linkx+"?domain="+domain;
}
if (new_window == "true")
{
window.open(temp, 'what');
}
else
{
top.location.href = temp;
}
}
//-->