// JavaScript Document





function popUp(part, description, pdf, type){
	
	var dimmer=document.getElementById("wrapper");
	dimmer.style.opacity="0.5";
	dimmer.style.filter="alpha(opacity=" + 5*10 + ")";

	
	var popupBox=document.getElementById("popupwrapper");
	var popHeader=document.getElementById("popupheader");
	var popPDF=document.getElementById("popuppdfmain");
	var popPDFLink=document.getElementById("pdfLink");
	var popCustomLink=document.getElementById("customLink");
	var popQuoteLink=document.getElementById("quoteLink");
	var popupHeaderDescrip=document.getElementById("popupheaderdescription");
	
	
	var addReceptacle=document.getElementById("viewrecep");
	var recepHREF=addReceptacle.getAttribute("href");
	var receptacleLink=document.getElementById("recepLink");
	
	receptacleLink.setAttribute("href", recepHREF);
	
	
	
	
	
	
	popHeader.innerHTML = part;
	popupHeaderDescrip.innerHTML = description;
	popupBox.style.visibility="visible";
	popPDFLink.setAttribute("href", pdf);
	popCustomLink.setAttribute("href", "custom.php?part_num=" + part + "&type=" + type + "&description=" + description);
	popQuoteLink.setAttribute("href", "quote/quote_action.php?action=add&part_num=" + part + "&description=" + description);
	
	
}
	
function popUpClose() {
	
	var dimmer=document.getElementById("wrapper");
	dimmer.style.opacity="1.0";
	dimmer.style.filter="alpha(opacity=" + 100 + ")";
	var popupBox=document.getElementById("popupwrapper");
	popupBox.style.visibility="hidden";
	

}
			
			
			
 















