window.name = "Main_Default_Window"

function newWindow(winURL, winName, winFeatures){
  varWindow = window.open(winURL, winName, winFeatures)
  varWindow.focus()
}

function wopen(url) {
	var w = window.open('http://' + url, 'w', 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=500,top=50,left=50')
	w.focus();
	return false;
}

function popwin(url) { 
   popw = window.open(url,'Menu','toolbar=0,width=600,height=285,location=0,directories=0,top=50,left=50,status=0,menubar=0,scrollbars=1,resizable=0')
   popw.focus()
}

function popwinlarge(url) { 
   popw = window.open(url,'Menu','toolbar=1,width=800,height=600,location=1,directories=1,top=50,left=50,status=1,menubar=1,scrollbars=1,resizable=1')
   popw.focus()
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function gotoRegister(newURL){
	window.open(newURL, "Main_Default_Window")
	window.close();
}

function FieldOk(fld, fname) {
	if (JSTrim(fld.value) == '') {
		alert('Please provide a value for: ' + fname);
		fld.focus();
		return false;
	}
	return true;
}

function JSTrim(s) {
	var i, FirstPos = 0, LastPos;

	if (typeof(s) != 'string') {
		return s;
	}
	
	LastPos = s.length;
	
	for (i = 0; i < s.length; i++) {
		if (s.charAt(i) != ' ') {
			break;
		}
		FirstPos++;
	}
	
	for (i = s.length - 1; i >= 0; i--) {
		if (s.charAt(i) != ' ') {
			break;
		}
		LastPos--;
	}
	
	if (LastPos == 0) {
		return "";
	} else {
		return s.substring(FirstPos, LastPos);
	}
	
}

function PictureChange(fld, dir) {
	var img = eval('document.images.img' + fld);
	var o = eval('document.forms[0].' + fld + '.options');
	for (i=0; i< o.length; i++) {
		if (o[i].selected) {
			if (o[i].value == '') 
				img.src = '/_Images/1x1.gif';
			else
				img.src = dir + o[i].value;
			return
		}
	}
}

function Validator(theForm){
	var errorFound = 0;
	var strError = 'The following fields need to be completed:\n\n';
	var str=theForm.email.value;
	var filter=/^.+@.+\..{2,3}$/;

  if (theForm.name.value == ""){
    strError = strError + "- Name\n";
    errorFound = 1;
  }

  if (theForm.comments.value == ""){
    strError = strError + "- Comments/Questions\n";
		errorFound = 1;
  }


if (filter.test(str)){
	
	}

else{
	{
    strError = strError + "- Email Address\n";
    errorFound = 1;
  }

}

  if (errorFound == 1) {
	alert(strError);
	return false;
  } else {
	return true;
  }
}

function CheckDel() {
  if (confirm("Are you sure you want to delete this entry?\nThis operation cannot be undone."))
    return true;
  else
    return false;
}

if (document.images){
	Group1img1 = new Image
	Group1img2 = new Image
	Group1img3 = new Image
	Group1img4 = new Image
	Group1img5 = new Image
	Group1img6 = new Image
	Group1img7 = new Image
	Group1img8 = new Image
	
	Group2img1 = new Image
	Group2img2 = new Image
	Group2img3 = new Image
	Group2img4 = new Image
	Group2img5 = new Image
	Group2img6 = new Image
	Group2img7 = new Image
	Group2img8 = new Image
	
	Group3img1 = new Image
	Group3img2 = new Image
	Group3img3 = new Image
	Group3img4 = new Image
	Group3img5 = new Image
	Group3img6 = new Image
	Group3img7 = new Image
	Group3img8 = new Image
	
	Group4img1 = new Image
	Group4img2 = new Image
	Group4img3 = new Image
	Group4img4 = new Image
	Group4img5 = new Image
	Group4img6 = new Image
	Group4img7 = new Image
	Group4img8 = new Image
	
	Group5img1 = new Image
	Group5img2 = new Image
	Group5img3 = new Image
	Group5img4 = new Image
	Group5img5 = new Image
	Group5img6 = new Image
	Group5img7 = new Image
	Group5img8 = new Image
	
	Group6img1 = new Image
	Group6img2 = new Image
	Group6img3 = new Image
	Group6img4 = new Image
	Group6img5 = new Image
	Group6img6 = new Image
	Group6img7 = new Image
	Group6img8 = new Image
	
	Group7img1 = new Image
	Group7img2 = new Image
	Group7img3 = new Image
	Group7img4 = new Image
	Group7img5 = new Image
	Group7img6 = new Image
	Group7img7 = new Image
	Group7img8 = new Image
	
	Group8img1 = new Image
	Group8img2 = new Image
	Group8img3 = new Image
	Group8img4 = new Image
	Group8img5 = new Image
	Group8img6 = new Image
	Group8img7 = new Image
	Group8img8 = new Image
	
	Group9img1 = new Image
	Group9img2 = new Image
	Group9img3 = new Image
	Group9img4 = new Image
	Group9img5 = new Image
	Group9img6 = new Image
	Group9img7 = new Image
	Group9img8 = new Image
	Group9img9 = new Image
	
	HomeImg01 = new Image
	HomeImg02 = new Image
	HomeImg03 = new Image
	HomeImg04 = new Image
	HomeImg05 = new Image
	HomeImg06 = new Image
	HomeImg07 = new Image
	HomeImg08 = new Image
	HomeImg09 = new Image
	HomeImg10 = new Image
	HomeImg11 = new Image
	HomeImg12 = new Image
	HomeImg13 = new Image
	HomeImg14 = new Image
	HomeImg15 = new Image
	HomeImg16 = new Image
	HomeImg17 = new Image
	HomeImg18 = new Image
	HomeImg19 = new Image
	HomeImg20 = new Image
	HomeImg21 = new Image
	HomeImg22 = new Image
	HomeImg23 = new Image
	HomeImg24 = new Image
	HomeImg25 = new Image
	HomeImg26 = new Image
	HomeImg27 = new Image
	
	Group1img1.src = "/images/ClientsSC/AccelerationInternational.jpg"
	Group1img2.src = "/images/ClientsSC/AlFrescoAllNatural.jpg"
	Group1img3.src = "/images/ClientsSC/AtlanticRestoration.jpg"
	Group1img4.src = "/images/ClientsSC/Aviation.jpg"
	Group1img5.src = "/images/ClientsSC/BandBBargains.jpg"
	Group1img6.src = "/images/ClientsSC/BelmontInstrument.jpg"
	Group1img7.src = "/images/ClientsSC/BostonPCWalk.jpg"
	Group1img8.src = "/images/ClientsSC/Bratwurship.jpg"
	
	Group2img1.src = "/images/ClientsSC/BrooksInteriors.jpg"
	Group2img2.src = "/images/ClientsSC/CCDesign.jpg"
	Group2img3.src = "/images/ClientsSC/CharliesOilCompany.jpg"
	Group2img4.src = "/images/ClientsSC/CITL.jpg"
	Group2img5.src = "/images/ClientsSC/Classe.jpg"
	Group2img6.src = "/images/ClientsSC/CoffeyForSenate.jpg"
	Group2img7.src = "/images/ClientsSC/Congress2004.jpg"
	Group2img8.src = "/images/ClientsSC/DBMacc.jpg"
	
	Group3img1.src = "/images/ClientsSC/DBMcareerservices.jpg"
	Group3img2.src = "/images/ClientsSC/DBMrealworld101.jpg"
	Group3img3.src = "/images/ClientsSC/DigitalArtsSciences.jpg"
	Group3img4.src = "/images/ClientsSC/DigitalMediaDesign.jpg"
	Group3img5.src = "/images/ClientsSC/Diversinet.jpg"
	Group3img6.src = "/images/ClientsSC/EdelsteinCompany.jpg"
	Group3img7.src = "/images/ClientsSC/EquityInternational.jpg"
	Group3img8.src = "/images/ClientsSC/EyeSpyStyle.jpg"
	
	Group4img1.src = "/images/ClientsSC/FisherChurchill.jpg"
	Group4img2.src = "/images/ClientsSC/ForSaleByOwner.jpg"
	Group4img3.src = "/images/ClientsSC/GourmetCaterers.jpg"
	Group4img4.src = "/images/ClientsSC/GovernerBrackettHouse.jpg"
	Group4img5.src = "/images/ClientsSC/GPSSolutions.jpg"
	Group4img6.src = "/images/ClientsSC/GrowthStrategyPartners.jpg"
	Group4img7.src = "/images/ClientsSC/GTReilly.jpg"
	Group4img8.src = "/images/ClientsSC/HCNA.jpg"
	
	Group5img1.src = "/images/ClientsSC/HDCGroup.jpg"
	Group5img2.src = "/images/ClientsSC/HistoricNewEngland.jpg"
	Group5img3.src = "/images/ClientsSC/HUBInternationalNE.jpg"
	Group5img4.src = "/images/ClientsSC/HumphreyEnterprises.jpg"
	Group5img5.src = "/images/ClientsSC/iCommand.jpg"
	Group5img6.src = "/images/ClientsSC/JamesBrowne.jpg"
	Group5img7.src = "/images/ClientsSC/JoAnnsSwimSchool.jpg"
	Group5img8.src = "/images/ClientsSC/JohnHoadleyandSons.jpg"
	
	Group6img1.src = "/images/ClientsSC/KayemFoods.jpg"
	Group6img2.src = "/images/ClientsSC/KoolAire.jpg"
	Group6img3.src = "/images/ClientsSC/LewisandClark.jpg"
	Group6img4.src = "/images/ClientsSC/LexingtonEye.jpg"
	Group6img5.src = "/images/ClientsSC/LighthouseElectronics.jpg"
	Group6img6.src = "/images/ClientsSC/MassBioFuel.jpg"
	Group6img7.src = "/images/ClientsSC/MailboxClub.jpg"
	Group6img8.src = "/images/ClientsSC/NeedelWelchStone.jpg"
	
	Group7img1.src = "/images/ClientsSC/NESystemsandSolutions.jpg"
	Group7img2.src = "/images/ClientsSC/NobleVoice.jpg"
	Group7img3.src = "/images/ClientsSC/OceanSports.jpg"
	Group7img4.src = "/images/ClientsSC/OrthopaedicJournalHMS.jpg"
	Group7img5.src = "/images/ClientsSC/PineHillGardens.jpg"
	Group7img6.src = "/images/ClientsSC/PointsEastSailing.jpg"
	Group7img7.src = "/images/ClientsSC/ProjectGuggenheim.jpg"
	Group7img8.src = "/images/ClientsSC/QuickServ.jpg"
	
	Group8img1.src = "/images/ClientsSC/RESCOMArchitectural.jpg"
	Group8img2.src = "/images/ClientsSC/RINETCompany.jpg"
	Group8img3.src = "/images/ClientsSC/RingMasterSoftware.jpg"
	Group8img4.src = "/images/ClientsSC/Robitech.jpg"
	Group8img5.src = "/images/ClientsSC/Rotel.jpg"
	Group8img6.src = "/images/ClientsSC/SGTorrice.jpg"
	Group8img7.src = "/images/ClientsSC/SilverSwitch.jpg"
	Group8img8.src = "/images/ClientsSC/SiroonianTechnologies.jpg"
	
	Group9img1.src = "/images/ClientsSC/Sunnex.jpg"
	Group9img2.src = "/images/ClientsSC/TechEtch.jpg"
	Group9img3.src = "/images/ClientsSC/TheodoreRoosevelt.jpg"
	Group9img4.src = "/images/ClientsSC/TurningPointSolutions.jpg"
	Group9img5.src = "/images/ClientsSC/VITechnology.jpg"
	Group9img6.src = "/images/ClientsSC/WideHorizonsForChildren.jpg"
	Group9img7.src = "/images/ClientsSC/Xpressman.jpg"
	Group9img8.src = "/images/ClientsSC/YankeeConnecticut.jpg"
	Group9img9.src = "/images/ClientsSC/YankeeRowe.jpg"
	
	HomeImg01.src = "/images/ani_logo_ConnActivity.gif"
	HomeImg02.src = "/images/pt_MakeYourVisionReality.gif"
	HomeImg03.src = "/images/UserLoginBox_top_a.jpg"
	HomeImg04.src = "/images/WebMailBox_top_a.jpg"
	HomeImg05.src = "/images/checkdot_a.gif"
	HomeImg06.src = "/images/img_FooterDesignLeftBtm3.gif"
	HomeImg07.src = "/images/img_FooterDesignEmail_A.gif"
	HomeImg08.src = "/images/img_FooterDesignHome_B.gif"
	HomeImg09.src = "/images/UserLoginBox_left.jpg"
	HomeImg10.src = "/images/WebMailBox_left.jpg"
	HomeImg11.src = "/images/btn_go1_a.gif"
	HomeImg12.src = "/images/btn_go2_a.gif"
	HomeImg13.src = "/images/btn_userlogin_CFA_ani_04.gif"
	HomeImg14.src = "/images/txt_LoginName.gif"
	HomeImg15.src = "/images/txt_Password.gif"
	HomeImg16.src = "/images/spacer.gif"
	HomeImg17.src = "/images/bg_Tile003.jpg"
	HomeImg18.src = "/images/fb_01_ISP.gif"
	HomeImg19.src = "/images/fb_02_WebDesign.gif"
	HomeImg20.src = "/images/fb_03_WebApp.gif"
	HomeImg21.src = "/images/fb_04_WebHosting.gif"
	HomeImg22.src = "/images/fb_05_Email.gif"
	HomeImg23.src = "/images/fb_06_Maintenance.gif"
	HomeImg24.src = "/images/fb_07_SearchEngine.gif"
	HomeImg25.src = "/images/fb_08_Multimedia.gif"
	HomeImg26.src = "/images/fb_09_Network.gif"
	HomeImg27.src = "/images/checkdot_b.gif"
}
else {
	Group1img1 = ""
	Group1img2 = ""
	Group1img3 = ""
	Group1img4 = ""
	Group1img5 = ""
	Group1img6 = ""
	Group1img7 = ""
	Group1img8 = ""
	
	Group2img1 = ""
	Group2img2 = ""
	Group2img3 = ""
	Group2img4 = ""
	Group2img5 = ""
	Group2img6 = ""
	Group2img7 = ""
	Group2img8 = ""
	
	Group3img1 = ""
	Group3img2 = ""
	Group3img3 = ""
	Group3img4 = ""
	Group3img5 = ""
	Group3img6 = ""
	Group3img7 = ""
	Group3img8 = ""
	
	Group4img1 = ""
	Group4img2 = ""
	Group4img3 = ""
	Group4img4 = ""
	Group4img5 = ""
	Group4img6 = ""
	Group4img7 = ""
	Group4img8 = ""
	
	Group5img1 = ""
	Group5img2 = ""
	Group5img3 = ""
	Group5img4 = ""
	Group5img5 = ""
	Group5img6 = ""
	Group5img7 = ""
	Group5img8 = ""
	
	Group6img1 = ""
	Group6img2 = ""
	Group6img3 = ""
	Group6img4 = ""
	Group6img5 = ""
	Group6img6 = ""
	Group6img7 = ""
	Group6img8 = ""
	
	Group7img1 = ""
	Group7img2 = ""
	Group7img3 = ""
	Group7img4 = ""
	Group7img5 = ""
	Group7img6 = ""
	Group7img7 = ""
	Group7img8 = ""
	
	Group8img1 = ""
	Group8img2 = ""
	Group8img3 = ""
	Group8img4 = ""
	Group8img5 = ""
	Group8img6 = ""
	Group8img7 = ""
	Group8img8 = ""
	
	Group9img1 = ""
	Group9img2 = ""
	Group9img3 = ""
	Group9img4 = ""
	Group9img5 = ""
	Group9img6 = ""
	Group9img7 = ""
	Group9img8 = ""
	Group9img9 = ""
	
	HomeImg01 = ""
	HomeImg02 = ""
	HomeImg03 = ""
	HomeImg04 = ""
	HomeImg05 = ""
	HomeImg06 = ""
	HomeImg07 = ""
	HomeImg08 = ""
	HomeImg09 = ""
	HomeImg10 = ""
	HomeImg11 = ""
	HomeImg12 = ""
	HomeImg13 = ""
	HomeImg14 = ""
	HomeImg15 = ""
	HomeImg16 = ""
	HomeImg17 = ""
	HomeImg18 = ""
	HomeImg19 = ""
	HomeImg20 = ""
	HomeImg21 = ""
	HomeImg22 = ""
	HomeImg23 = ""
	HomeImg24 = ""
	HomeImg25 = ""
	HomeImg26 = ""
	HomeImg27 = ""
}

fbPix = new Array("/images/fb_01_ISP.gif", "/images/fb_02_WebDesign.gif", "/images/fb_03_WebApp.gif", "/images/fb_04_WebHosting.gif", "/images/fb_05_Email.gif", "/images/fb_06_Maintenance.gif", "/images/fb_07_SearchEngine.gif", "/images/fb_08_Multimedia.gif", "/images/fb_09_Network.gif")
imgCt = fbPix.length

function choosePic(){
	if (document.images){
		randomNum = Math.floor((Math.random() * imgCt))
			
		document.FocusBurst.src = fbPix[randomNum]
	}
}
	
function ValidateLogin(frm){
	return true;
	
	if (frm.Username.value == ''){
		frm.Username.focus();
		alert("Please enter your username.");
		return false;
	}

	if (frm.Password.value == ''){
		frm.Password.focus();
		alert("Please enter your password.");
		return false;
	}
	
	return true;

}

var xG1 = 1
var xG2 = 9
var xG3 = 17
var xG4 = 25
var xG5 = 33
var xG6 = 41
var xG7 = 49
var xG8 = 57
var xG9 = 65
var links = new Array

links[1] = "http://www.accelerationint.com"
links[2] = "http://www.alfrescoallnatural.com"
links[3] = "http://www.atlanticrestoration.com"
links[4] = "http://www.aviation.org"
links[5] = "http://www.bandbbargains.com"
links[6] = "http://www.belmontinstrument.com"
links[7] = "http://www.bostonpcwalk.org"
links[8] = "http://www.bratwurship.com"
links[9] = "http://www.brooksinteriors.com"
links[10] = "http://www.ccdesignbiz.com"
links[11] = "http://www.charliesoil.com"
links[12] = "http://www.citl.org"
links[13] = "http://www.classeaudio.com"
links[14] = "http://www.coffeyforsenate.com"
links[15] = "http://www.congress2004.org"
links[16] = "http://www.dbmacc.com"
links[17] = "http://www.dbmcareerservices.com"
links[18] = "http://www.dbmrealworld101.com"
links[19] = "http://www.digiartsci.com"
links[20] = "http://www.dmdgo.com"
links[21] = "http://www.diversinet.com"
links[22] = "http://www.edelsteincpa.com"
links[23] = "http://www.equityaudio.com"
links[24] = "http://www.eyespystyle.com"
links[25] = "http://www.fisherchurchill.com"
links[26] = "http://www.fsbome.com"
links[27] = "http://www.gourmetcaterers.com"
links[28] = "http://www.govbracketthouse.com"
links[29] = "http://www.gpssolutionsus.com"
links[30] = "http://www.growthstrategypartners.com"
links[31] = "http://www.gtreilly.com"
links[32] = "http://www.hcna.net"
links[33] = "http://www.thehdcgroup.com"
links[34] = "http://www.historicnewengland.org"
links[35] = "http://www.cjmccarthy.com"
links[36] = "http://www.humphreyenterprises.com"
links[37] = "http://www.icommandnetworks.com"
links[38] = "http://www.jamesbrowne.net"
links[39] = "http://www.joannswimschool.com"
links[40] = "http://www.hoadleyandsons.com"
links[41] = "http://www.kayem.com"
links[42] = "http://www.kool-aire.net"
links[43] = "http://www.lewis-clark.com"
links[44] = "http://www.lexeye.com"
links[45] = "http://www.lhei.com"
links[46] = "http://www.massbiofuel.com"
links[47] = "http://www.mailboxclub.com"
links[48] = "http://www.nwscpas.com"
links[49] = "http://www.nesands.com"
links[50] = "http://www.noblevoice.com"
links[51] = "http://www.oceansportsdive.com"
links[52] = "http://www.orthojournalhms.org"
links[53] = "http://www.pinehillgardens.com"
links[54] = "http://www.pointseastsailing.com"
links[55] = "http://www.projectguggenheim.org"
links[56] = "http://www.qkserv.com"
links[57] = "http://www.rescomarch.com"
links[58] = "http://www.rinetco.com"
links[59] = "http://www.ringmastersw.com"
links[60] = "http://www.robitech.com"
links[61] = "http://www.rotel.com"
links[62] = "http://www.sgtorrice.com"
links[63] = "http://www.silverswitch.com"
links[64] = "http://www.siroonian.com"
links[65] = "http://www.sunnexonline.com"
links[66] = "http://www.tech-etch.com"
links[67] = "http://www.theodoreroosevelt.org"
links[68] = "http://www.tpointsolutions.com"
links[69] = "http://www.vitechnology.com"
links[70] = "http://www.whfc.org"
links[71] = "http://www.xpressman.com" 
links[72] = "http://www.connyankee.com" 
links[73] = "http://www.yankee.com" 


function newWin(x){
	if (x != 0){ 
		varWin = window.open(links[x], '', 'menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes')
		varWin.focus();
	}
}
