function xSingleLabel() 
{ 
	var FirstName = nlapiGetFieldValue('firstname'); 
	var LastName = nlapiGetFieldValue('lastname'); 
	var FullName = FirstName + " " + LastName; 
	var BillAddr1 = nlapiGetFieldValue('billaddr1'); 
	var BillAddr2 = nlapiGetFieldValue('billaddr2'); 
	var BillCity = nlapiGetFieldValue('billcity'); 
	var BillState = nlapiGetFieldValue('billstate'); 
	var BillZip = nlapiGetFieldValue('billzip'); //we don't use Country in our mailings 
	var BillCountry = nlapiGetFieldValue('billcountry'); 
	var myString; //used to create address string 
	var DymoAddIn, DymoLabel; 
	
	DymoAddIn = new ActiveXObject('DYMO.DymoAddIn'); 
	DymoLabel = new ActiveXObject('DYMO.DymoLabels'); 
	//change location below to point at your label template. 
	DymoAddIn.Open("P:\\Label Files\\Address (30252, 30320, 30572).LWL"); 
	myString += (FullName + "\n"); myString += (BillAddr1 + "\n"); 
	
	if (BillAddr2.length >= 1) 
	{ 
		myString += (BillAddr2 + "\n"); 
	} 
	myString += (BillCity + ", " + BillState + " " + BillZip); 
	DymoLabel.SetAddress(1, myString); //sends string to label 
	DymoAddIn.Print(1, true); //Prints label 
} 
	
	
function xReturnAddress() 
{ 
	var DymoAddIn, DymoLabel; 
	DymoAddIn = new ActiveXObject('DYMO.DymoAddIn'); 
	DymoLabel = new ActiveXObject('DYMO.DymoLabels'); 
	var BillName = ("Canadian Food for the Hungry"); 
	var BillAddr1 = ("#201 - 2580 Cedar Park Place"); 
	var BillCity = ("Abbotsford"); 
	var BillState = ("BC"); 
	var BillZip = ("V2T 3S5"); //change location below to point at your label template. 
	
	if (DymoAddIn.Open("P:\\Label Files\\Address (30252, 30320, 30572).LWL")) 
	{ 
		myString = (BillName + "\n"); 
		myString += (BillAddr1 + "\n"); 
		myString += (BillCity + ", " + BillState + " " + BillZip); 
		DymoLabel.SetAddress(1, myString); DymoAddIn.Print(1, true); 
	} 
	else alert('Please Call Clint and ask him NICELY to assist you!'); 
} 