
function over(obj, num) {
    obj.src = "/Images/egg_" + num + ".gif";
    document.getElementById("ctl00_lbt" + num).style.visibility = "visible";
}
function out(obj, num) {
    obj.src = "/Images/egg.gif";
    document.getElementById("ctl00_lbt" + num).style.visibility = "hidden";
}

function checksubmit(btn){   
     if (typeof(Page_ClientValidate) == 'function')   
     {   
         if(Page_ClientValidate('')==true)   
         {             
           
           btn.disabled = true;
           __doPostBack(btn.ClientID, "");   
         }   
      }   
}

var flag = false;
function resizeimg(ImgD) {
    var image = new Image();
    var iwidth = 80;
    var iheight = 80;
    image.src = ImgD.src;
    if (image.width > 0 && image.height > 0) {
        flag = true;
        if (image.width / image.height >= iwidth / iheight) {
            if (image.width > iwidth) {
                ImgD.width = iwidth;
                ImgD.height = (image.height * iwidth) / image.width;
            } else {
                ImgD.width = image.width;
                ImgD.height = image.height;
            }
        }
        else {
            if (image.height > iheight) {
                ImgD.height = iheight;
                ImgD.width = (image.width * iheight) / image.height;
            } else {
                ImgD.width = image.width;
                ImgD.height = image.height;
            }
        }
    }
}  


//function row_over(obj) {
//    OMO.style.color = 'black';
//    OMO.style.fontWeight = 'bold';
//}

//function row_out(obj) {
//    OMO.style.color = '';
//    OMO.style.fontWeight = '';
//}