self.name='mesmain';
function Rcertify(){
	popupWin=window.open('http://www.bbbonline.org/cks.asp?id=1040112927638685','Participant','location=yes,scrollbars=yes,width=450,height=600');
	window.name='opener';
}
function popCvv(){
	window.open('https://www.merchantequip.com/cvv.php',"CVV","location=yes,width=480,height=400,toolbars=0,scrollbars=1");
	window.name='CVV Window';
}

function popUp(url){window.open(url,"pop","width=480,height=400,toolbars=0,scrollbars=1");}
function popUpp(url){window.open(url,"popp","width=560,height=500,toolbars=0,scrollbars=1");}
function popUpc(url){window.open(url,"popc","width=725,height=500,toolbars=0,scrollbars=1");}
function superimage(url){window.open(url,"superimage","width=650,height=700,toolbars=0,scrollbars=1");}

function showDiv($element)
{
    var div = document.getElementById($element);
    var pY;

    var scnWid,scnHei;

    if (window.innerHeight && window.scrollMaxY) {// Firefox
        yWithScroll = window.innerHeight + window.scrollMaxY;
        pY=window.pageYOffset;
    } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
        yWithScroll = document.body.scrollHeight;
        pY=document.body.scrollTop;
    } else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
        yWithScroll = document.body.offsetHeight;
        pY=document.documentElement.scrollTop;
    }


        div.style.top = (pY+100)+'px';

div.style.display = 'block';
document.getElementById('fade').style.height = yWithScroll+'px';
document.getElementById('fade').style.display = 'block';
}

function hideDiv($element,$fade)
{
    var div = $element;
    document.getElementById(div).style.display='none';
    if($fade != 'keep'){
        document.getElementById('fade').style.display='none';
    }
}