

function openBrochure(IDvalue, LISTvalue, AD_IDvalue, SEQ_NUMvalue, CA_IDvalue)
	{
		var winName="brochure";
		
		
		win = window.open('brochure.asp?CO_ID=' + IDvalue + '&LIST_ID=' + LISTvalue + '&AD_ID=' + AD_IDvalue + '&SEQ_NUM=' + SEQ_NUMvalue + '&CA_ID=' + CA_IDvalue,winName,'height=300,width=453,top=0,left=0,scrollbars=yes,resizable');
		win.focus();

	}

	function openBillBoard(CA_ID,BB_ID)
	{
		var winName;
		
		winName = "BillBoard";
		
		win = window.open('blank.html',winName,'height=525,width=500,top=0,left=0,scrollbars=yes,resizable');
		win.focus();	
		if (BB_ID=='')
			document.CompanyBillBoard.CA_ID.value = CA_ID;
		else
			document.CompanyBillBoard.BB_ID.value = BB_ID;
		document.CompanyBillBoard.action = "billboard.asp";
		document.CompanyBillBoard.target = winName;
		setTimeout('document.CompanyBillBoard.submit()',100);	

	}


	function openBillBoardLink(co_id, ca_id, xferURL)
	{
		win = window.open('blank.html','xfer','height=500,width=700,top=0,left=0,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable');
		win.focus();
		document.Transfer.CO_ID.value = co_id;
		document.Transfer.CA_ID.value = ca_id;
		document.Transfer.xferURL.value = xferURL;	
		document.Transfer.xferType.value = '4';
		document.Transfer.action = "transfer.asp";
		document.Transfer.target = "xfer";	
		setTimeout('document.Transfer.submit()',100);		
	}


	function openPlantTag(plant_id,bizType)
	{
		win = window.open('plant_tag.asp?pID=' + plant_id + '&biz=' + bizType,'plant_tag','height=500,width=400,top=0,left=0,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable');
		win.focus();
	}

	function openTransferLink(xferURL,co_id,xferType)
	{	
	
		var URL;	
		if ((xferType=='')||(xferType==null))
			xferType=2;
		
		URL = 'transfer.asp?CO_ID=' + co_id + '&xferType=' + xferType + '&xferURL=' + URLencode(xferURL);
		win = window.open(URL,'xfer','top=0,left=0,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable');
		win.focus();		
	}

	function openTransferAd(xferURL, co_id, ad_id, seq_num, ca_id)
	{
		var URL;
		
		if (ca_id==undefined)
			ca_id='';
			
		URL = 'transfer.asp?CO_ID=' + co_id + '&AD_ID=' + ad_id + '&SEQ_NUM=' + seq_num + '&CA_ID=' + ca_id + '&xferType=1&xferURL=' + URLencode(xferURL);
		win = window.open(URL,'xfer','top=0,left=0,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable');
		win.focus();		
	}

	function openFloorPlan(dirID, cc, boothNum, coID)
	{
		if (coID=='')	
			win = window.open('floorplan.asp?dID=' + dirID + '&disp=one&cc=' + cc + '&bn=' + boothNum,'floorplan','height=520,width=800,top=0,left=0,scrollbars=yes,toolbar=yes,menubar=no,location=no');
		else
			win = window.open('floorplan.asp?dID=' + dirID + '&disp=comp&cc=' + cc + '&coID=' + coID,'floorplan','height=520,width=800,top=0,left=0,scrollbars=yes,toolbar=yes,menubar=no,location=no');
			
		win.focus();
	}		

	function submitNetworkAdClick(ca_id,con_code,xferURL)
	{

		var URL;
		
		URL=URLencode(xferURL) + '?ca_id=' + ca_id + '&con_code=' + con_code;
		win = window.open(URL,'net','height=500,width=700,top=0,left=0,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable');
		win.focus();		
	}
	
	function URLencode(sStr) {
		return escape(sStr).replace(/\+/g, '%2C').replace(/\"/g,'%22').replace(/\'/g, '%27');
	}


