function swap(imgname,AltImgWithPath) {
   if (!document.images) return;
   document.images[imgname].src = AltImgWithPath;
 }
function swapPara(imgname,AltImgWithPath) {
   if (!document.images) return;
   document.images[imgname].src = AltImgWithPath;
 }

function swapBckGrnd(id,AltImgWithPath) {
  document.getElementById(id).style.background = "url('" + AltImgWithPath + "')";
 }


/* Display a Msg Box for given number of seconds */ 

function DispTipBox(id,msg,Language,TimeOut) {
 var user = document.getElementById(id);
 var mousex = window.event.x;        // mouse location capture event
 var mousey = window.event.y;        // mouse location capture event
 user.style.visibility = 'visible';       // make it visible 
 if (Language == 0){
    user.style.width = (msg.length * 7);     // Adjust width
    user.innerHTML="&nbsp;" + msg + "&nbsp;" // Tip Message to be displaye
   }
 else
   {
    user.style.width = (msg.length * 5.5);     // Adjust width
    user.innerHTML="<font class='kiranfont'><font size='3' color='#000000'>" + msg + "</font></font>" // Tip Message to be displayed
   }
 if ((mousex) > 700)
    {
    user.style.left = mousex - 70 ;
    }
 else
    {
    user.style.left = mousex + 5;           // place popup at the mouse X (left) location
    }
 user.style.top = mousey+5;              // place popup at the mouse Y (top) location
 if (TimeOut == 1) {
    setTimeout('CloseTipBox("' + id + '")',1500); 
 }
}
function CloseTipBox(id) {
    var user = document.getElementById(id);
    user.style.visibility = 'hidden';
}