
  function TimeRank(){
       var d, s = "";
       d = new Date();
       s += Math.random() * 99999 + d.getHours() + d.getMinutes() + d.getSeconds() + d.getMilliseconds();
       return(s);
    }
    var strP = '<div class="popUp"></div>';
    function showMail(popObj) {
        var popUp = jQuery(strP);
        var scrollWidth = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth);
        var scrollHeight = Math.max(document.documentElement.scrollHeight);
        var yScroll = document.documentElement.scrollTop;
        var winHeight = jQuery(window).height();
        var winWidth = jQuery(window).width();
        var popUpHeight = popObj.height();
        var popUpWidth = popObj.width();
        popUp.css({
            width: scrollWidth + 'px',
            height: scrollHeight + 'px',
			opacity:0.5
        }).appendTo('body').show()
        popObj.css({
            top: yScroll + winHeight / 2 - popUpHeight / 2 + 'px',
            left: winWidth / 2 - popUpWidth / 2 + 'px'
        }).show().find('.btn_sub').bind('click',function(){
            popUp.remove();
            jQuery('.photo_report').hide();
        });
    }   
    var popCompUp="";
     var strC = '<div class="popUpC"></div>';
    function showComplainMail(popObj) {
        popCompUp = jQuery(strC);
        var scrollWidth = Math.max(document.body.scrollWidth, document.documentElement.scrollWidth);
        var scrollHeight = Math.max(document.documentElement.scrollHeight);
        var yScroll = document.documentElement.scrollTop;
        var winHeight = jQuery(window).height();
        var winWidth = jQuery(window).width();
        var popUpHeight = popObj.height();
        var popUpWidth = popObj.width();
        popCompUp.css({
            width: scrollWidth + 'px',
            height: scrollHeight + 'px',
			opacity:0.5
        }).appendTo('body').show()
        popObj.css({
            top: yScroll + winHeight / 2 - popUpHeight / 2 + 'px',
            left: winWidth / 2 - popUpWidth / 2 + 'px'
        }).show().find('.btn_sub').bind('click',function(){
            popCompUp.remove();
            jQuery('.photoC_report').hide();
        });
    }   
    
//

