 function openwindowlink(url) {
var openurl = url
if(openurl == 'RequestInfo.asp') {
newwin = window.open(openurl,"Vizion","height=520,width=420,scrollbars,resizable")
}
else{
newwin = window.open(openurl,"Vizion","height=400,width=420,scrollbars,resizable")
}
}

   
function xSetColour(LineR,LineG,LineB,FillR,FillG,FillB,BodyColour){
// Set global variables (colour scheme)
xLineR = LineR;
xLineG = LineG;
xLineB = LineB;
xFillR = FillR;
xFillG = FillG;
xFillB = FillB;
xBodyColour = BodyColour;
xDivDetails(1); xDrawPoly(1,'T',0,0); xDrawPoly(1,'B',0,-31);

}

function xDivDetails(ID)
{
// Reset content colour scheme
document.all["Content" + ID].style.backgroundColor = "rgb(" + xFillR + "," + xFillG + "," + xFillB + ")";
document.all["Content" + ID].style.fontSize = "7pt";
document.all["Content" + ID].style.fontFamily = "verdana";
document.all["Content" + ID].style.paddingLeft = "20px";
document.all["Content" + ID].style.paddingRight = "20px";
document.all["Content" + ID].style.color = "rgb(" + xLineR + "," + xLineG + "," + xLineB + ")";
document.all["Content" + ID].style.borderLeft = "1px solid rgb(" + xLineR + "," + xLineG + "," + xLineB + ")";
document.all["Content" + ID].style.borderRight = "1px solid rgb(" + xLineR + "," + xLineG + "," + xLineB + ")";
}

function xDrawPoly(ID,Pos,LeftPos,TopPos)
{
// Reset curve colour scheme
var ObjectCode1 = "<OBJECT ID=\"Poly" + Pos + ID + "\" STYLE=\"height:20;width:" + eval(document.all["Content" + ID].offsetWidth) + ";\" CLASSID=\"CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6\">";
var SetLineColor = "<PARAM NAME=\"Line0001\" VALUE=\"SetLineColor(" + xLineR + "," + xLineG + "," + xLineB + ")\">";
var SetLineStyle = "<PARAM NAME=\"Line0002\" VALUE=\"SetLineStyle(1,1)\">";
var SetFillColor = "<PARAM NAME=\"Line0003\" VALUE=\"SetFillColor(" + xFillR + "," + xFillG + "," + xFillB + ")\">";
var SetFillStyle = "<PARAM NAME=\"Line0004\" VALUE=\"SetFillStyle(1)\">";
var RoundRect = "<PARAM NAME=\"Line0005\" VALUE=\"RoundRect(" + LeftPos + "," + TopPos + ", " + eval(document.all["Content" + ID].offsetWidth - 1) + ",50, 40,40, 0)\">";
var Extent = "<PARAM NAME=\"ExtentLeft\" VALUE=\"0\"><PARAM NAME=\"ExtentTop\" VALUE=\"0\">";
var ObjectCode2 = "</OBJECT>"
document.all["Curve" + Pos + ID].innerHTML = ObjectCode1 + SetLineColor + SetLineStyle + SetFillColor + SetFillStyle + RoundRect + Extent + ObjectCode2;
}
