// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function whereNext(dir,aVar) {
	if (dir == 'prev') {
		newPage = aVar - 1;
	}else{
		newPage = aVar + 1;
	}
	var nextLink = new Array();
	nextLink[0] = "default.cfm?nxtpg=" + newPage;
	nextLink[1] = "start.cfm?nxtpg=" + newPage;
	nextLink[2] = "02-gettingStarted.cfm?nxtpg=" + newPage;
	nextLink[3] = "03-mutaterOverview.cfm?nxtpg=" + newPage;
	nextLink[4] = "04-mo_workingStatus.cfm?nxtpg=" + newPage;
	nextLink[5] = "05-mo_training.cfm?nxtpg=" + newPage;
	nextLink[6] = "06-mo_settings.cfm?nxtpg=" + newPage;
	nextLink[7] = "07-mo_help.cfm?nxtpg=" + newPage;
	nextLink[8] = "08-tabsOverview.cfm?nxtpg=" + newPage;
	nextLink[9] = "pt1-review.cfm?nxtpg=" + newPage;
	nextLink[10] = "09-p2_overview.cfm?nxtpg=" + newPage;
	nextLink[11] = "10-p2_mutaterLogin.cfm?nxtpg=" + newPage;
	nextLink[12] = "11-p2_WorkStatus.cfm?nxtpg=" + newPage;
	nextLink[13] = "pt2-review.cfm?nxtpg=" + newPage;
	nextLink[14] = "12-p3_workingOnDictation.cfm?nxtpg=" + newPage;
	nextLink[15] = "13-p3_jobInfoTab.cfm?nxtpg=" + newPage;
	nextLink[16] = "14-p3_listeningAudio.cfm?nxtpg=" + newPage;
	nextLink[17] = "15-p3_footPedalInstall.cfm?nxtpg=" + newPage;
	nextLink[18] = "16-p3_footPedalCust.cfm?nxtpg=" + newPage;
	nextLink[19] = "17-p3_audioNoPedal.cfm?nxtpg=" + newPage;
	nextLink[20] = "18-p3_faxJobs.cfm?nxtpg=" + newPage;
	nextLink[21] = "19-p3_regularFax.cfm?nxtpg=" + newPage;
	nextLink[22] = "20-p3_directFax.cfm?nxtpg=" + newPage;
	nextLink[23] = "21-p3_noAudioNoFax.cfm?nxtpg=" + newPage;
	nextLink[24] = "pt3-review.cfm?nxtpg=" + newPage;
	nextLink[25] = "22-p4_clientToolsRequests.cfm?nxtpg=" + newPage;
	nextLink[26] = "23-p4_usingTemplate.cfm?nxtpg=" + newPage;
	nextLink[27] = "24-p4_usingMultTemplate.cfm?nxtpg=" + newPage;
	nextLink[28] = "25-p4_savingJobTemplate.cfm?nxtpg=" + newPage;
	nextLink[29] = "26-p4_custFileName.cfm?nxtpg=" + newPage;
	nextLink[30] = "27-p4_diffWPFormat.cfm?nxtpg=" + newPage;
	nextLink[31] = "28-p4_addEmail.cfm?nxtpg=" + newPage;
	nextLink[32] = "29-p4_clientAddBook.cfm?nxtpg=" + newPage;
	nextLink[33] = "pt4-review.cfm?nxtpg=" + newPage;
	nextLink[34] = "thankyou.cfm";

	MM_goToURL('parent',nextLink[newPage]);return document.MM_returnValue;
}
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_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_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 showDIV(divID){
	var divItem = document.getElementById(divID);
	if (divItem.style.display == 'none') {
		divItem.style.display = 'block';
	}else{
		divItem.style.display = 'none';
	}
}

function actDeact(divID) {
	if (document.getElementById(divID).className == "inactive") {
		document.getElementById(divID).className = '';
		document.NewCustomer.addr1.disabled=false
	} else {
		document.getElementById(divID).className = 'inactive';
		document.NewCustomer.addr1.disabled=true;
	}
}