$(document).ready(function()
{
    $("#searchPop").click(rateRepairShopPopUp);
    $(".jqRatingCancel").click(closeRating);
    
    
   // $(".jqMyCarListing").click(showMyCarDetails);
});




function rateRepairShopPopUp()
{
    //var currentLink             = $(this);
    var windowWidth             = $(window).width();
    var windowHeight            = $(window).height();
    var popupHeight             = $("#jqSearchPop").height();
    var popupWidth              = $("#jqSearchPop").width();
    var pageScrollTop           = document.documentElement.scrollTop ? document.documentElement.scrollTop : (document.body.scrollTop ? document.body.scrollTop : 0);
    var addCommentBoxTop        = pageScrollTop + (windowHeight - popupHeight) /2;
    var addCommentBoxLeft       = (windowWidth - popupWidth) / 2;
    //alert(addCommentBoxTop);
    //return false;

    $("#jqSearchPop").css({
                    position : "absolute",
                    left : addCommentBoxLeft,
                    top: addCommentBoxTop
                }).fadeIn("slow");
      return false;
}



function closeRating()
{
    $("#jqSearchPop").fadeOut("slow");
    //$("#txtShareEmail").val("");
    return false;
}




