function getHeight(){
var d=document;
var box=new Array("index2leftSide","index2rightSide");
for(x=0;x<box.length;x++){
h=d.getElementById(box[x]).offsetHeight;
for(y=0;y<box.length;y++){
test_h=d.getElementById(box[y]).offsetHeight;
if(h<test_h)h=test_h;
}
}
for(x=0;x<box.length;x++)d.getElementById(box[x]).style.height=h+"px";
if(navigator.userAgent.indexOf("Opera")!=-1){
var versionindex=navigator.userAgent.indexOf("Opera")+6
if(parseInt(navigator.userAgent.charAt(versionindex))>=8){
document.getElementById("watermarkLogo").style.backgroundImage='none';
document.getElementById("watermarkZone").style.display='none';
}
}
}

function swapPic()
 {
 if(document.getElementById)
   {
   var thePicture=document.getElementById("titleHeaderImage");
   var picPath="_images/banner/"+rnd(1)+".jpg";
   thePicture.style.background="url("+picPath+") no-repeat center"; /* this line was amended by adding the repeat and center behaviour. without this, the css cannot control the centering of the image - jb 11/04/07*/

   }
 }


function indexGetHeight(){
var d=document;
var box=new Array("leftSide","middleSide","rightSide");
for(x=0;x<box.length;x++){
h=d.getElementById(box[x]).offsetHeight;
for(y=0;y<box.length;y++){
test_h=d.getElementById(box[y]).offsetHeight;
if(h<test_h)h=test_h;
}
}
for(x=0;x<box.length;x++)d.getElementById(box[x]).style.height=h+"px";
if(navigator.userAgent.indexOf("Opera")!=-1){
var versionindex=navigator.userAgent.indexOf("Opera")+6
if(parseInt(navigator.userAgent.charAt(versionindex))>=8){
document.getElementById("watermarkLogo").style.backgroundImage='none';
document.getElementById("watermarkZone").style.display='none';
}
}
}
function adjustScreen(){
if(screen.width==800){
document.getElementById("column1").style.fontSize="11px";
document.getElementById("column2").style.fontSize="11px";
document.getElementById("column3").style.fontSize="11px";
document.getElementById("column4").style.fontSize="11px";
document.getElementById("column5").style.fontSize="11px";
document.getElementById("column6").style.fontSize="11px";
}
}
function checkNull4Search(){
if(document.forms[0].description.value==""){
return false;
}
else{
document.forms[0].submit();
}
}



