function testalert(){
 alert ("In testalert");
}

function findPos(obj) {
 var curleft = curtop = 0;
 if (obj.offsetParent) {
   do {
    curleft += obj.offsetLeft;
    curtop += obj.offsetTop;
   } while (obj = obj.offsetParent);
  return { x: curleft, y: curtop };
 }
}

function showhide(whichobj){
 whichobj.style.display ="inline"; 
}
function show(whichobj){
 //alert("in show with " + whichobj);
 // $('messagearea').innerHTML = "Hello World from show";
try {
     whichobj.style.display = "inline";
    } catch(e) {
    $(whichobj).style.display="inline";
    }
} 
function show2(whichobj, yloc){
   var offset = document.body.scrollTop ;
   var ypos = yloc + offset - 75;
   whichobj.style.display = "inline";
   whichobj.style.top = ypos;
   //$('messagearea').innerHTML = "Hello World from show2";
   $('recordsavedarea').style.top = ypos;
   $('recordsavedarea').style.width = $(whichobj).style.width;
   whichobj.style.top= yloc+offset; 
} 

function hide(whichobj){
  //$('messagearea').innerHTML = "Hello World from hide";
  //whichobj.style.display = "none";
   try {
     whichobj.style.display = "none";
    } catch(e) {
    $(whichobj).style.display="none";
    }

} 
function setOpacity(whichobj, val) { 
 whichobj.style.MozOpacity = val;
 whichobj.style.opacity = val/10;
 whichobj.style.filter = 'alpha(opacity=' + val*10 + ')';
};

/*
function changeIframeSrc(id, url) {
    if (!document.getElementById) return;
    var el = $(id);
    if (el && el.src) {
        el.src = url;
        return false;
    }
    return true;
}
*/
