<!-- //hide from older browsers
function OpenCertDetails()
{
	thewindow = window.open('https://www.thawte.com/cgi/server/certdetails.exe?code=USOLML1-1', 'anew', config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');
}

function Rcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=10110309141618757', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 

function areYouSure() {
        if( confirm('Are you sure?') ) {
                return true;
        }
        return false;
}

function Estimate2(weight, free_option, total) 
{
var theLink = '/cgi-bin/estimate.pl?weight=' + weight + '&f=' + free_option + '&t='+total;
estWin = window.open(theLink, 'test','location=yes,scrollbars=yes,width=480,height=280'); 
estWin.focus();
} 

var wnd = null;

// function to produce little pop-up screens
function popUpWnd(theLink, scrollable, w, h) {
   if (wnd && !wnd.closed) {
       wnd.close();
   }
   wnd = window.open(theLink,"ContextPopUp","width="+w+",height="+h+",scrollbars="+scrollable+",dependent=yes");

   wnd.focus();
}

function toggleBox(id, iState) { // 1 visible, 0 hidden
    if(document.layers) {	   //NN4+
       document.layers[id].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById) {	  //gecko(NN6) + IE 5+
        var obj = document.getElementById(id);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all){	// IE 4
        document.all[id].style.visibility = iState ? "visible" : "hidden";
    }
}

function hideShowElement(id) {
    if(document.getElementById) {	  //gecko(NN6) + IE 5+
        var obj = document.getElementById(id);
	if (obj.style.visibility == "visible") {
		obj.style.visibility = "hidden";
	}
	else {
		obj.style.visibility = "visible";
	}
    }
}
// end hiding script -->

// NEW PART. PopUps...
function showPopupNew( el_id, parent )
{
	try
	{
		// Make invisible main popup window (block)...
		el = document.getElementById( el_id );
		el.style.display = 'none';
		el.parentNode.removeChild(el);

		// Change main popup window parent control
		parent_element = document.getElementById( parent );
		parent_element.appendChild(el);

		// Make visible main popup window (block)
		el.style.display = 'block';
	}
	catch (e)
	{
		alert('showPopupNew :: Error!\n'+e.description);
	}
}

// PopUps END
