function aCheck(liNe1,liNe2){
	var todo = false;
	if (liNe1.indexOf("\'s")>-1  ||  liNe2.indexOf("\'s")>-1){
	todo = confirm ("Suggestion: \n\nAn apostrophe appears in the text you entered.\nIf you entered a name similar to THE SMITH\'S\nthe correct usage is simply THE SMITHS.\n\n\(An apostrophe indicates posession, NOT plural.\nDo you wish to change this?")};

 	return todo;
}

function lineCheck(checkLine,empTy){
	var msgWord="";
	var todo = false;
	if (checkLine.indexOf(" Rd.")>-1 && empTy>0) msgWord="Road";
	if (checkLine.indexOf(" Rd")>-1 && empTy>1 && checkLine.indexOf("Rd.")==-1) msgWord="Road";
	
	if (checkLine.indexOf(" St.")>-1 && empTy>2) msgWord="Street";
	if (checkLine.indexOf(" St")>-1 && empTy>3 && checkLine.indexOf("St.")==-1) msgWord="Road";
	
	if (checkLine.indexOf(" Ave.")>-1 && empTy>1) msgWord="Avenue";
	if (checkLine.indexOf(" Ave")>-1 && empTy>2 && checkLine.indexOf("Ave.")==-1) msgWord="Avenue";
	
	if (checkLine.indexOf(" Av.")>-1 && empTy>2) msgWord="Avenue";
	if (checkLine.indexOf(" Av")>-1 && empTy>3 && checkLine.indexOf("Av.")==-1) msgWord="Avenue";
	
	if (checkLine.indexOf(" Pl.")>-1 && empTy>2) msgWord="Place";
	if (checkLine.indexOf(" Pl")>-1 && empTy>3 && checkLine.indexOf("Pl.")==-1) msgWord="Place";
	
	if (checkLine.indexOf(" Ln.")>-1 && empTy>0) msgWord="Lane";
	if (checkLine.indexOf(" Ln")>-1 && empTy>1 && checkLine.indexOf("Ln.")==-1) msgWord="Lane";
	
	if (checkLine.indexOf(" Cir.")>-1 && empTy>1) msgWord="Circle";
	if (checkLine.indexOf(" Cir")>-1 && empTy>2 && checkLine.indexOf("Cir.")==-1) msgWord="Circle";
	
	if (checkLine.indexOf(" Ter.")>-1 && empTy>3)msgWord="Terrace";
	if (checkLine.indexOf(" Ter")>-1 && empTy>4 & checkLine.indexOf("Ter.")==-1) msgWord="Terrace";
	
	if  (msgWord!=""){
		todo = confirm('Suggestion: \nYou have room for the full word \"'+msgWord+'\"\nThe full word usually looks better than the abbreviation.\n\nDo you wish to change this?');
	} 
	
	return todo;
}

// ------------------------ Street Check
function streetCheck(styleNo,liNe1,liNe2){
var lastP=styleNo.length-1,empTy=0,reWrite=false,chArs=0;
// - how many characters
if (styleNo.indexOf("S",lastP)>-1) chArs=18;
if (styleNo.indexOf("M",lastP)>-1 || styleNo.indexOf("X",lastP)>-1) chArs=20;
if (styleNo.indexOf("L",lastP) >-1)chArs=22;

// - count empty spaces
empTy=chArs-liNe1.length;

reWrite = lineCheck(liNe1,empTy);
if (reWrite) return false;
empTy=chArs-liNe2.length;
reWrite = lineCheck(liNe2,empTy);
if (reWrite)return false;
return reWrite;
}

