defaultReturnPeriod = 4//CUSTOMISE THIS:::::::::Note 5
graphAreaOffsetY = -60//Note 6
isGraphDivRelative = true //Note 1
lineThicknessX = 1
lineThicknessY = 2
toolTipsMovingBoundedMethod = 1
if(document.layers && isGraphDivRelative){
  nsAndRelative = true//leave this one.
  nsRelGraphDivToDocX = 37//Note 2
  nsRelGraphDivToDocY = 30
}
function ggPageOnload(){
  setComparisonsSelected()
} 
function setComparisonsSelected(){
  if(comparisonsParam.indexOf('ALL_SHARE@IT') != -1){document.chartForm.comparison4.checked = true}
  if(comparisonsParam.indexOf('3720@GRP') != -1){document.chartForm.comparison2.checked = true}
  if(comparisonsParam.indexOf('NMX@IT') != -1){document.chartForm.comparison3.checked = true}
  if(comparisonsParam.indexOf('MID_250@IT') != -1){document.chartForm.comparison1.checked = true}  
}
function getComparisons(){
  var comparisons = "";
  if(document.chartForm.comparison1.checked == true){comparisons += document.chartForm.comparison1.value}
  if(document.chartForm.comparison2.checked == true){if(comparisons != ""){comparisons += ","} comparisons += document.chartForm.comparison2.value}
  if(document.chartForm.comparison3.checked == true){if(comparisons != ""){comparisons += ","} comparisons += document.chartForm.comparison3.value}
  if(document.chartForm.comparison4.checked == true){if(comparisons != ""){comparisons += ","} comparisons += document.chartForm.comparison4.value}  

  if(comparisons != ""){comparisons = '&comparisons=' + comparisons}
  return comparisons
}

function goToGraphURL(newURL){
  self.location.href = newURL;
}

///TOOLTIPS.
tooltipsHTMLBefore = '<table border="0" cellspacing="0" cellpadding="1" style="background-color: #000000"><tr><td><table width="1" border="0" cellspacing="0" cellpadding="1" style="font-family: Verdana, Arial, sans-serif; background-color: #D5ECDF; color: #000066"><tr><td><nobr>'
tooltipsHTMLAfter = '<span id="tooltipsDivWidthFinder" style="position:relative; left:0px; top:0px; width:0px; height:0px; z-index:5; visibility:visible;"></span></nobr></td></tr></table></td></tr></table>'
if(document.layers){
  tooltipsStaticHTMLBefore = '<font style="font-family: Verdana, Arial, sans-serif; font-size:12px; background-color: #D5ECDF; color: #000066">'
  tooltipsStaticHTMLAfter = '</font>'
} else {
  tooltipsStaticHTMLBefore = ''
  tooltipsStaticHTMLAfter = ''
}
