
function openPersonnel()
	{
	window.open('Personnel/login.asp', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=135,left = 362,top = 234');
	}
		
function Logout() 
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/includes/logout.asp' ,'',window_style);
	}
	
function royaltyPopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/royalty_report_popup.asp' ,'',window_style);
	}
	
function evalassignedPopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/evalassigned_popup.asp' ,'',window_style);
	}
	
function globalroyaltyPopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/Global_royalty_popup.asp' ,'',window_style);
	}
	
function royaltyPopup2()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/royalty_report_popup2.asp' ,'',window_style);
	}
	
	
function cancellationPopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/Cancellation_report_popup.asp' ,'',window_style);
	}
	
function PhonePopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=750,height=400,top=100,left=50'"
	   window.open('/Personnel/Phone_send.asp' ,'',window_style);
	}
	
function GivePhonePopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,width=750,height=400,top=100,left=50'"
	   window.open('/Personnel/Give_phone_messages.asp' ,'',window_style);
	}
	
function cancelEvalPopup()
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=100,top=200,left=300'"
	   window.open('/Personnel/CancelEval_report_popup.asp' ,'',window_style);
	}
		
function checkForm(Form)
	{
	if (Form.Username.value == "")
		{
		alert("Please enter a Username.")
		Form.Username.focus();
		return false;
		}
	if (Form.Password.value == "")
		{
		alert("Please enter a Password.")
		Form.Password.focus();
		return false;
		}
	return true;

	}

function goToLogin()
	{
	window.location.href = "/Personnel/login.asp"
	}
	
function editProfile(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=343,top=150,left=200'"
	   window.open('/Personnel/edit_profile.asp?id=' + id ,'',window_style);
	}
	
function checkPassword(Form)
	{
	if (Form.Password.value != Form.Password2.value)
		{
		alert("Passwords do not match, please re-enter passwords.")
		Form.Password.value = "";
		Form.Password2.value = "";
		Form.Password.focus();
		return false;
		}

	return true;
	}
	
function editCustomer(id)
	{
	   window.location.href = '/Personnel/edit_customer.asp?id=' + id
	}

function changeSchedule(id,lessonid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_lesson.asp?id=' + id + '&lessonid=' + lessonid,'',window_style);
	}
	
function changeName(directionid,locationid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_name.asp?directionid=' + directionid + '&locationid=' + locationid,'',window_style);
	}
	
function changeReference(referenceid,locationid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_reference.asp?referenceid=' + referenceid + '&locationid=' + locationid,'',window_style);
	}
	
function changePicture(picid,locationid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_pictures.asp?picid=' + picid + '&locationid=' + locationid,'',window_style);
	}
	
function changeGroupInfo(locationid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_GroupInfo.asp?locationid=' + locationid,'',window_style);
	}
	
function changeClass(directionid,locationid,gDate)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_class.asp?directionid=' + directionid + '&locationid=' + locationid + '&gDate=' + gDate,'',window_style);
	}
	
function changeBoarding(BoardDate,StallId)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=yes,width=410,height=440,top=150,left=200'"
	   window.open('/Personnel/change_board.asp?BoardDate=' + BoardDate + '&StallID=' + StallId ,'',window_style);
	}
	
function changePersonal(lessonid)
	{
	   var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=150,height=125,top=150,left=200'"
	   window.open('/Personnel/change_personal.asp?lessonid=' + lessonid,'',window_style);
	}

function checkZipcode(zip)
	{
	   var zip2 = Zipcode.value
	   var window_style = "'toolbar=no,menubar=yes,resizable=no,scrollbars=no,status=no,width=450,height=350,top=150,left=150'"
	   window.open('http://helpmesearchit.com/zipcode.php?zip1=' + zip + '&zip2=' + zip2 ,'',window_style);
	}


function reschedulePersonal(lessonid)
	{
	window.location.href = '/Personnel/reschedule_personal.asp?lessonid=' + lessonid
	}
	
function cancelPersonal(lessonid)
	{
	window.location.href = '/Personnel/cancel_personal.asp?lessonid=' + lessonid
	}

function rescheduleLesson(id,lessonid)
	{
	window.location.href = '/Personnel/change_schedule.asp?id=' + id + '&lessonid=' + lessonid
	}

function cancelLesson(lessonid)
	{
	window.location.href = '/Personnel/cancel_lesson.asp?lessonid=' + lessonid
	}
	
function goToEditCustomer(id,locid)
	{
	window.location.href = '/Personnel/full_edit_customer.asp?id=' + id +'&locid=' + locid
	}	

function goToScheduleBB(trainerid)
	{
	window.location.href = '/Personnel/m-schedule.asp?trainerid=' + trainerid
	}	
	
function goToScheduleZip(trainerid)
	{
	window.location.href = '/Personnel/schedule.asp?trainerid=' + trainerid
	}

function OpenEditCustomer(id,locid)
	{
    var window_style = "'toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,status=no,width=800,height=600,top=10,left=10'"
	window.open('/Personnel/full_edit_customer.asp?id=' + id +'&locid=' + locid ,'',window_style);
	//window.location.href = '/Personnel/full_edit_customer.asp?id=' + id +'&locid=' + locid
	}	
	
function OpenEditCustomerOnly(id,locid)
	{
    var window_style = "'toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,status=no,width=800,height=600,top=10,left=10'"
	window.open('/Personnel/edit_customer.asp?id=' + id ,'',window_style);
	//window.location.href = '/Personnel/full_edit_customer.asp?id=' + id +'&locid=' + locid
	}		
	
	
function goToListLocation(locid)
	{
	window.location.href = '/Personnel/full_edit_customer.asp?locid=' + locid
	}
	
function checkScheChange(Form)
	{
	if (Form.Date.value == "")
		{
		alert("Please select a Date for the lesson.")
		Form.Date.focus();
		return false;
		}
	if (Form.Time.value == "")
		{
		alert("Please select a Time for the lesson.")
		Form.Time.focus();
		return false;
		}	
	if (Form.ChangeNotes.value == "")
		{
		alert("Please enter reason for re-schedule in the Change Notes.")
		Form.ChangeNotes.focus();
		return false;
		}	
	}
	
function checkPersonalChange(Form)
	{
	if (Form.Date.value == "")
		{
		alert("Please select a Date for the personal event.")
		Form.Date.focus();
		return false;
		}
	if (Form.Time.value == "")
		{
		alert("Please select a Time for the personal event.")
		Form.Time.focus();
		return false;
		}		
	}
	
function checkCancelReason(Form)
	{
	if (Form.Reason.value == "")
		{
		alert("Please enter a reason for the Lesson Cancellation.")
		Form.Reason.focus();
		return false;
		}		
	}
	
function checkSendMessage(Form)
	{
	if (Form.subject.value == "")
		{
		alert("Please enter a Subject.")
		Form.subject.focus();
		return false;
		}
	if (Form.To.value == "")
		{
		alert("Please select a Recipient.")
		Form.To.focus();
		return false;
		}
	if (Form.To.value == "x")
		{
		alert("There are no users for this Location.")
		Form.To.focus();
		return false;
		}		
	if (Form.message.value == "")
		{
		alert("Please enter a Message.")
		Form.message.focus();
		return false;
		}		
	}	
function checkSendPhoneMessage(Form)
	{
	
	//if (Form.To.value == "")
	//	{
	//	alert("Please select a Recipient.")
	//	Form.To.focus();
	//	return false;
	//	}
	if (Form.To.value == "x")
		{
		alert("There are no users for this Location.")
		Form.To.focus();
		return false;
		}		
	if (Form.message.value == "")
		{
		alert("Please enter a Message.")
		Form.message.focus();
		return false;
		}		
	}	
	

	
function createLesson(Form)
	{
	if (Form.Date.value == "")
		{
		alert("Please select a Date for the lesson.")
		Form.Date.focus();
		return false;
		}
	if (Form.Time.value == "")
		{
		alert("Please select a Time for the lesson.")
		Form.Time.focus();
		return false;
		}
	}
	
function cDown(td)
	{
	if(document.getElementById||(document.all && !(document.getElementById)))
		{
			td.style.backgroundColor="#666666";
			td.style.border = "1px solid #000000";
		}
	}
	
function cUp(td)
	{
	if(document.getElementById||(document.all && !(document.getElementById)))
		{
			td.style.backgroundColor="";
			td.style.border = "";
		}
	}
	
function cClick(td,lessondate,lessontime)
	{
	if(document.getElementById||(document.all && !(document.getElementById)))
		{
			td.style.backgroundColor="#666666";
			td.style.border = "1px solid #000000";
			var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=200,top=150,left=150'"
	   		window.open('/Personnel/schedule_lesson.asp?lessondate=' + lessondate + '&lessontime=' + lessontime ,'',window_style);
		}
	}	
	
function cClickB(td,BoardDate,StallId)
	{
	if(document.getElementById||(document.all && !(document.getElementById)))
		{
			td.style.backgroundColor="#666666";
			td.style.border = "1px solid #000000";
			var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=180,height=180,top=150,left=150'"
	   		window.open('/Personnel/schedule_board.asp?BoardDate=' + BoardDate + '&StallID=' + StallId ,'',window_style);
		}
	}	
	
function cDeleteBoard(BoardDate,StallId)
		{		
			//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=180,height=180,top=150,left=150'"
	   		window.location.href = '/Personnel/delete_board.asp?BoardDate=' + BoardDate + '&StallID=' + StallId 
		}
	
function redirectSchedule(id,lessondate,lessontime)
	{
	if (id == 1)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=352,top=125,left=125'"
	   	//var win = window.open('/Personnel/evaluation.asp?lessondate=' + lessondate + '&lessontime=' + lessontime ,'eval',window_style);
	   	window.location.href = '/Personnel/evaluation.asp?lessondate=' + lessondate + '&lessontime=' + lessontime
	   	//window.close();
	   	}
	if (id == 2)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=300,height=100,top=125,left=125'"
	   	//var win = window.open('/Personnel/select_customer.asp?lessondate=' + lessondate + '&lessontime=' + lessontime,'',window_style);
	   	//window.close();
	   	window.location.href = '/Personnel/select_customer.asp?lessondate=' + lessondate + '&lessontime=' + lessontime
	   	}
	if (id == 3)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=322,top=125,left=125'"
	   	//var win = window.open('/Personnel/personal.asp?lessondate=' + lessondate + '&lessontime=' + lessontime,'',window_style);
	   	//window.close();
	   	window.location.href = '/Personnel/personal.asp?lessondate=' + lessondate + '&lessontime=' + lessontime
	   	}
	if (id == 4)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=400,top=125,left=125'"
	   	//var win = window.open('/Personnel/personal.asp?lessondate=' + lessondate + '&lessontime=' + lessontime,'',window_style);
	   	//window.close();
	   	window.location.href = '/Personnel/select_cancelledcustomer.asp?lessondate=' + lessondate + '&lessontime=' + lessontime
	   	}
   	
	}
	
function redirectBoarding(id,BoardDate,StallId)
	{
	if (id == 1)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=352,top=125,left=125'"
	   	//var win = window.open('/Personnel/evaluation.asp?lessondate=' + lessondate + '&lessontime=' + lessontime ,'eval',window_style);
	   	window.location.href = '/Personnel/BnewCust.asp?BoardDate=' + BoardDate + '&StallId=' + StallId
	   	//window.close();
	   	}
	if (id == 2)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=300,height=100,top=125,left=125'"
	   	//var win = window.open('/Personnel/select_customer.asp?lessondate=' + lessondate + '&lessontime=' + lessontime,'',window_style);
	   	//window.close();
	   	window.location.href = '/Personnel/Bselect_customer.asp?BoardDate=' + BoardDate + '&StallId=' + StallId
	   	}
	if (id == 3)
		{
		//var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=400,height=322,top=125,left=125'"
	   	//var win = window.open('/Personnel/personal.asp?lessondate=' + lessondate + '&lessontime=' + lessontime,'',window_style);
	   	//window.close();
	   	window.location.href = '/Personnel/Bpersonal.asp?BoardDate=' + BoardDate + '&StallId=' + StallId
	   	}
	}
	
	
function soldOrdelete(lessonid)
	{
	var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=130,height=120,top=150,left=150'"
	window.open('/Personnel/soldOrdelete.asp?lessonid=' + lessonid ,'',window_style);
	}
	
	
function redirectSold(lessonid)
	{
	window.location.href = '/Personnel/sold_customer.asp?lessonid=' + lessonid
	}
	
function redirectDelete(customerid)
	{
	window.location.href = '/Personnel/delete_customer.asp?customerid=' + customerid
	}

function redirectTraining(lessonid)
	{
	window.location.href = '/Personnel/schedule_training.asp?lessonid=' + lessonid
	}
	
function printForms(customerid, paymentplanid)
	{
	var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=200,top=150,left=150'"
	window.open('/Personnel/print_forms.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid,'',window_style);
	}
	
function printLetter(customerid,paymentplanid)
	{
	window.location.href = '/Personnel/print_letter.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid
	}
	
function printTrainer(customerid,paymentplanid)
	{
	window.location.href = '/Personnel/print_trainer.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid
	}
	
function printHealth(customerid,paymentplanid)
	{
	window.location.href = '/Personnel/print_health.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid
	}
	
function printMap(customerid,paymentplanid)
	{
	window.location.href = '/Personnel/print_map.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid
	}
	
function printDiploma(customerid,paymentplanid,dogid)
	{
	window.location.href = '/Personnel/print_diploma.asp?customerid=' + customerid + '&paymentplanid=' + paymentplanid + '&dogid=' + dogid
	}
	
function printEvalForms(customerid)
	{
	var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=200,top=150,left=150'"
	window.open('/Personnel/print_eval_forms.asp?customerid=' + customerid,'',window_style);
	}
	
function printEvalQues(customerid)
	{
	window.location.href = '/Personnel/print_eval_questionnaire.asp?customerid=' + customerid
	}
	
function printEvalThanksLetter(customerid)
	{
	window.location.href = '/Personnel/print_eval_thanks_letter.asp?customerid=' + customerid
	}
	
function printEvalMapQuest(customerid)
	{
	window.location.href = '/Personnel/print_map.asp?customerid=' + customerid
	}
	
function printInvoices(week,trainer,mode)
	{
	var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,width=820,height=500,top=50,left=50'"
	window.open('/Personnel/print_invoices.asp?week=' + week + '&trainer=' + trainer + '&mode=' + mode,'',window_style);
	}
	
	
function checkEval(Form)
	{
	if (Form.FirstName.value == "")
		{
		alert("Please enter a First Name.")
		Form.FirstName.focus();
		return false;
		}
	if (Form.LastName.value == "")
		{
		alert("Please enter a Last Name.")
		Form.LastName.focus();
		return false;
		}	
	if (Form.Address.value == "")
		{
		alert("Please enter an Address.")
		Form.Address.focus();
		return false;
		}
	if (Form.City.value == "")
		{
		alert("Please enter a City.")
		Form.City.focus();
		return false;
		}
	if (Form.State.value == "")
		{
		alert("Please enter a State.")
		Form.State.focus();
		return false;
		}
	if (Form.ZipCode.value == "")
		{
		alert("Please enter a Zip Code.")
		Form.ZipCode.focus();
		return false;
		}
	if (Form.Location.value == "")
		{
		alert("Please select a Location.")
		Form.Location.focus();
		return false;
		}
	if (Form.Phone.value == "")
		{
		alert("Please enter a Phone.")
		Form.Phone.focus();
		return false;
		}
	if (Form.Referral.value == "")
		{
		alert("Please select a Referral.")
		Form.Referral.focus();
		return false;
		}		
	if (Form.Dogs.value == "")
		{
		alert("Please enter the number of Dogs.")
		Form.Dogs.focus();
		return false;
		}
	return true;
	}
	
function formatCurrency(num) 
	{
	num = num.toString().replace(/\$|\,/g,'');
	if(isNaN(num))
		num = "0";
		sign = (num == (num = Math.abs(num)));
		num = Math.floor(num*100+0.50000000001);
		cents = num%100;
		num = Math.floor(num/100).toString();
	if(cents<10)
		cents = "0" + cents;
		for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
		num = num.substring(0,num.length-(4*i+3))+','+
		num.substring(num.length-(4*i+3));
	return (((sign)?'':'-') + num + '.' + cents);
	}
	
function checkPayments(Form) 
	{
	var N = parseFloat(Form.ProgramWeeks.value) - 1
	sum = 0;
	for (var i = 0; i <=N; i++)
		{
		if (Form.Payment[i].value != "0.00")
			{
			sum = (parseFloat(sum) + parseFloat(Form.Payment[i].value))
			}
		}
	//alert(Form.Payment[i].value)	
	sum = Math.round(sum*100)/100
	//alert(sum)
	if (parseFloat(Form.OutstandingBal.value) < parseFloat(sum))
		{
		TotalDifference = (formatCurrency(parseFloat(sum) - parseFloat(Form.OutstandingBal.value)));
		alert("The total of the payments is " + TotalDifference + " more than the Outstanding Balance.");
		return false;
		}
	
	if (parseFloat(sum) < parseFloat(Form.OutstandingBal.value))
		{
		TotalDifference = (formatCurrency(parseFloat(Form.OutstandingBal.value) - parseFloat(sum)));
		alert("Please add " + TotalDifference + " to the payments to equal the Oustanding Balance due.");
		return false;
		}
	return true;
	}

function checkEvalDogs(Form)
	{
	if (Form.DogName.value == "")
		{
		alert("Please enter the dog's name.")
		Form.DogName.focus();
		return false;
		}
	if (Form.Breed.value == "")
		{
		alert("Please select the Breed of the dog.")
		Form.Breed.focus();
		return false;
		}
	if (Form.DogSex.value == "")
		{
		alert("Please select the Sex of the dog.")
		Form.DogSex.focus();
		return false;
		}	
	if (Form.DogAge.value == "")
		{
		alert("Please select the Age of the dog.")
		Form.DogAge.focus();
		return false;
		}
	if (Form.DogAgeDesc.value == "")
		{
		alert("Please select the Age Description of the dog.")
		Form.DogAgeDesc.focus();
		return false;
		}			
	}

function checkDogs(Form)
	{
	if (Form.OwnLength.value == "")
		{
		alert("Please enter how long the customer has owned their dog(s).")
		Form.OwnLength.focus();
		return false;
		}
	if (Form.DogOrigin.value == "")
		{
		alert("Please enter where the customer got their dog(s).")
		Form.DogOrigin.focus();
		return false;
		}
	if (Form.Vet.value == "")
		{
		alert("Please enter the customers Veterinarian's Name.")
		Form.Vet.focus();
		return false;
		}
	if (Form.PreviousTraining.value == "1" && Form.PTExplanation.value == "")
		{
		alert("Please explain the professional training in the past.")
		Form.PTExplanation.focus();
		return false;
		}
	if (Form.FamilyMembers.value == "")
		{
		alert("Please enter the number of Family Members that will be involved with the dog(s).")
		Form.FamilyMembers.focus();
		return false;
		}
	if (Form.Adults.value == "")
		{
		alert("Please enter the number of Adults that will be involved with the dog(s).")
		Form.Adults.focus();
		return false;
		}
	if (Form.TrainingTime.value == "")
		{
		alert("Please enter the most convenient time of the day for training.")
		Form.TrainingTime.focus();
		return false;
		}
	if (Form.Other.checked && Form.OtherBehaviors.value == "")
		{
		alert("Please explain Other Behavior problems.")
		Form.OtherBehaviors.focus();
		return false;
		}
	if (Form.AloneLocation.value == "")
		{
		alert("Please enter where the dog stays when left alone in the house.")
		Form.AloneLocation.focus();
		return false;
		}		
	if (Form.Discipline.value == "")
		{
		alert("Please enter how the customer normally disciplines their dog(s).")
		Form.Discipline.focus();
		return false;
		}
	if (Form.FoodType.value == "")
		{
		alert("Please enter what type of food the dog(s) eat.")
		Form.FoodType.focus();
		return false;
		}
	if (Form.MealsPerDay.value == "")
		{
		alert("Please enter how many meals a day the dog(s) eat.")
		Form.MealsPerDay.focus();
		return false;
		}
	if (Form.LoudReactions.value == "")
		{
		alert("Please enter how the dog reacts to loud unknown and sudden sounds.")
		Form.LoudReactions.focus();
		return false;
		}
	if (Form.DailyChangeReaction.value == "")
		{
		alert("Please enter the dog(s) response to changes in daily living patterns.")
		Form.DailyChangeReaction.focus();
		return false;
		}		
	return true;
	}
	
function getTrainerInvoiceTrainer(trainer)
	{
		if (document.all.Trainers.value == "")
		{
		alert("Please select a Trainer.")
		}
		else
		{	
		window.location.href = '/Personnel/approve_invoice.asp?trainer=' + trainer
		}
	}

function getTrainerInvoiceWeek(week,trainer)
	{
	if (document.all.Trainers.value == "")
		{
		alert("Please select a trainer before choosing a week.")
		}
		else
		{
		window.location.href = '/Personnel/approve_invoice.asp?trainer=' + trainer + '&week=' + week
		}
	}
	
function getTrainerInvoice(trainer)
	{
	if (document.all.Trainers.value == "")
		{
		alert("Please select a trainer.")
		}
		else
		{
		window.location.href = '/Personnel/trainer_invoice.asp?submit=1&trainer=' + trainer
		}
	}
	
function getSalesInvoice(trainer)
	{
	if (document.all.Salesmen.value == "")
		{
		alert("Please select a salesman.")
		}
		else
		{
		window.location.href = '/Personnel/sales_invoice.asp?submit=1&trainer=' + trainer
		}
	}	
	
function getTrainerInvoiceWeekSales(week,trainer)
	{
		window.location.href = '/Personnel/sales_invoice.asp?week=' + week + '&trainer=' + trainer
	}
	
function getTrainerInvoiceWeekTrainer(week,trainer)
	{
		window.location.href = '/Personnel/trainer_invoice.asp?week=' + week + '&trainer=' + trainer
	}
	
function salesInvoice(salesman)
	{
		window.location.href = '/Personnel/sales_invoice.asp'
	}
	
function trainerInvoice(trainer)
	{
		window.location.href = '/Personnel/trainer_invoice.asp'
	}
	
function checkApproved(Form)
	{
	var checkSelected = false;
	
	for (var i=0; i < Form.approve.length; i++) 
		{  
		if (Form.approve[i].checked) 
			checkSelected = true;
		}
		if (!checkSelected) 
			{  
			alert("Please select an invoice to approve.");  
			return false;
			}
	}

function checkOtherInvoices(Form)
	{
	if (!Form.Date1.value == "" || !Form.Description1.value == "" || !Form.Customer1.value == "" || !Form.Reason1.value == "")
		{
		if (Form.Date1.value == "")
			{
			alert("Please enter a Date for the First submission of in the [Other Invoices] section.")
			Form.Date1.focus();
			return false;
			}

		if (Form.Description1.value == "")
			{
			alert("Please enter a Description for the First submission of in the [Other Invoices] section.")
			Form.Description1.focus();
			return false;
			}
		
		if (Form.Reason1.value == "")
			{
			alert("Please select a Reason for the First submission of in the [Other Invoices] section.")
			Form.Reason1.focus();
			return false;
			}
			
		if (Form.Reason1.value == "O" && Form.Other1.value == "")
			{
			alert("Please enter an Explanation for the Reason for the First submission of in the [Other Invoices] section.")
			Form.Other1.focus();
			return false;		
			}
		}
		
	if (!Form.Date2.value == "" || !Form.Description2.value == "" || !Form.Customer2.value == "" || !Form.Reason2.value == "")
		{
		if (Form.Date2.value == "")
			{
			alert("Please enter a Date for the Second submission of in the [Other Invoices] section.")
			Form.Date2.focus();
			return false;
			}
			
		if (Form.Description2.value == "")
			{
			alert("Please enter a Description for the Second submission of in the [Other Invoices] section.")
			Form.Description2.focus();
			return false;
			}
		
		if (Form.Reason2.value == "")
			{
			alert("Please select a Reason for the Second submission of in the [Other Invoices] section.")
			Form.Reason2.focus();
			return false;
			}

		if (Form.Reason2.value == "O" && Form.Other2.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Second submission of in the [Other Invoices] section.")
			Form.Other2.focus();
			return false;		
			}
		}
		
	if (!Form.Date3.value == "" || !Form.Description3.value == "" || !Form.Customer3.value == "" || !Form.Reason3.value == "")
		{
		if (Form.Date3.value == "")
			{
			alert("Please enter a Date for the Third submission of in the [Other Invoices] section.")
			Form.Date3.focus();
			return false;
			}

		if (Form.Description3.value == "")
			{
			alert("Please enter a Description for the Third submission of in the [Other Invoices] section.")
			Form.Description3.focus();
			return false;
			}
		
		if (Form.Reason3.value == "")
			{
			alert("Please select a Reason for the Third submission of in the [Other Invoices] section.")
			Form.Reason3.focus();
			return false;
			}

		if (Form.Reason3.value == "O" && Form.Other3.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Third submission of in the [Other Invoices] section.")
			Form.Other3.focus();
			return false;		
			}
		}
		
	if (!Form.Date4.value == "" || !Form.Description4.value == "" || !Form.Customer4.value == "" || !Form.Reason4.value == "")
		{
		if (Form.Date4.value == "")
			{
			alert("Please enter a Date for the Fourth submission of in the [Other Invoices] section.")
			Form.Date4.focus();
			return false;
			}
			
		if (Form.Description4.value == "")
			{
			alert("Please enter a Description for the Fourth submission of in the [Other Invoices] section.")
			Form.Description4.focus();
			return false;
			}
			
		if (Form.Reason4.value == "")
			{
			alert("Please select a Reason for the Fourth submission of in the [Other Invoices] section.")
			Form.Reason4.focus();
			return false;
			}
			
		if (Form.Reason4.value == "O" && Form.Other4.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Fourth submission of in the [Other Invoices] section.")
			Form.Other4.focus();
			return false;		
			}
		}
		
	if (!Form.Date5.value == "" || !Form.Description5.value == "" || !Form.Customer5.value == "" || !Form.Reason5.value == "")
		{
		if (Form.Date5.value == "")
			{
			alert("Please enter a Date for the Fifth submission of in the [Other Invoices] section.")
			Form.Date5.focus();
			return false;
			}

		if (Form.Description5.value == "")
			{
			alert("Please enter a Description for the Fifth submission of in the [Other Invoices] section.")
			Form.Description5.focus();
			return false;
			}
		
		if (Form.Reason5.value == "")
			{
			alert("Please select a Reason for the Fifth submission of in the [Other Invoices] section.")
			Form.Reason5.focus();
			return false;
			}

		if (Form.Reason5.value == "O" && Form.Other5.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Fifth submission of in the [Other Invoices] section.")
			Form.Other5.focus();
			return false;		
			}
		}
		
	if (!Form.Date6.value == "" || !Form.Description6.value == "" || !Form.Customer6.value == "" || !Form.Reason6.value == "")
		{
		if (Form.Date6.value == "")
			{
			alert("Please enter a Date for the Sixth submission of in the [Other Invoices] section.")
			Form.Date6.focus();
			return false;
			}

		if (Form.Description6.value == "")
			{
			alert("Please enter a Description for the Sixth submission of in the [Other Invoices] section.")
			Form.Description6.focus();
			return false;
			}
		
		if (Form.Reason6.value == "")
			{
			alert("Please select a Reason for the Sixth submission of in the [Other Invoices] section.")
			Form.Reason6.focus();
			return false;
			}

		if (Form.Reason6.value == "O" && Form.Other6.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Sixth submission of in the [Other Invoices] section.")
			Form.Other6.focus();
			return false;		
			}
		}
		
	if (!Form.Date7.value == "" || !Form.Description7.value == "" || !Form.Customer7.value == "" || !Form.Reason7.value == "")
		{
		if (Form.Date7.value == "")
			{
			alert("Please enter a Date for the Seventh submission of in the [Other Invoices] section.")
			Form.Date7.focus();
			return false;
			}

		if (Form.Description7.value == "")
			{
			alert("Please enter a Description for the Seventh submission of in the [Other Invoices] section.")
			Form.Description7.focus();
			return false;
			}
		
		if (Form.Reason7.value == "")
			{
			alert("Please select a Reason for the Seventh submission of in the [Other Invoices] section.")
			Form.Reason7.focus();
			return false;
			}

		if (Form.Reason7.value == "O" && Form.Other7.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Seventh submission of in the [Other Invoices] section.")
			Form.Other7.focus();
			return false;		
			}
		}
		
	if (!Form.Date8.value == "" || !Form.Description8.value == "" || !Form.Customer8.value == "" || !Form.Reason8.value == "")
		{
		if (Form.Date8.value == "")
			{
			alert("Please enter a Date for the Eighth submission of in the [Other Invoices] section.")
			Form.Date8.focus();
			return false;
			}

		if (Form.Description8.value == "")
			{
			alert("Please enter a Description for the Eighth submission of in the [Other Invoices] section.")
			Form.Description8.focus();
			return false;
			}
		
		if (Form.Reason8.value == "")
			{
			alert("Please select a Reason for the Eighth submission of in the [Other Invoices] section.")
			Form.Reason8.focus();
			return false;
			}
			
		if (Form.Reason8.value == "O" && Form.Other8.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Eighth submission of in the [Other Invoices] section.")
			Form.Other8.focus();
			return false;		
			}
		}
		
	if (!Form.Date9.value == "" || !Form.Description9.value == "" || !Form.Customer9.value == "" || !Form.Reason9.value == "")
		{
		if (Form.Date9.value == "")
			{
			alert("Please enter a Date for the Ninth submission of in the [Other Invoices] section.")
			Form.Date9.focus();
			return false;
			}

		if (Form.Description9.value == "")
			{
			alert("Please enter a Description for the Ninth submission of in the [Other Invoices] section.")
			Form.Description9.focus();
			return false;
			}
		
		if (Form.Reason9.value == "")
			{
			alert("Please select a Reason for the Ninth submission of in the [Other Invoices] section.")
			Form.Reason9.focus();
			return false;
			}

		if (Form.Reason9.value == "O" && Form.Other9.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Ninth submission of in the [Other Invoices] section.")
			Form.Other9.focus();
			return false;		
			}
		}
		
	if (!Form.Date10.value == "" || !Form.Description10.value == "" || !Form.Customer10.value == "" || !Form.Reason10.value == "")
		{
		if (Form.Date10.value == "")
			{
			alert("Please enter a Date for the Tenth submission of in the [Other Invoices] section.")
			Form.Date10.focus();
			return false;
			}

		if (Form.Description10.value == "")
			{
			alert("Please enter a Description for the Tenth submission of in the [Other Invoices] section.")
			Form.Description10.focus();
			return false;
			}
		
		if (Form.Reason10.value == "")
			{
			alert("Please select a Reason for the Tenth submission of in the [Other Invoices] section.")
			Form.Reason10.focus();
			return false;
			}

		if (Form.Reason10.value == "O" && Form.Other10.value == "")
			{
			alert("Please enter an Explanation for the Reason for the Tenth submission of in the [Other Invoices] section.")
			Form.Other10.focus();
			return false;		
			}
		}	
	}
	
function showSales()
{
if (document.all.Salesman.value == "1") 
	{
	document.all['Sales1'].style.display = "";
	document.all['Sales2'].style.display = "";
	}
else if (document.all.Salesman.value == "0") 
	{
	document.all['Sales1'].style.display = "none";
	document.all['Sales2'].style.display = "none";
	}
}

function showTrainer()
{
if (document.all.Trainer.value == "1") 
	{
	document.all['Trainer1'].style.display = "";
	document.all['Trainer2'].style.display = "";
	}
else if (document.all.Trainer.value == "0") 
	{
	document.all['Trainer1'].style.display = "none";
	document.all['Trainer2'].style.display = "none";
	}
}

function checkNewUser(Form)
	{
	if (Form.UserName.value == "")
		{
		alert("Please enter a UserName for the New User.")
		Form.UserName.focus();
		return false;
		}
	if (Form.FirstName.value == "")
		{
		alert("Please enter the First Name of the New User.")
		Form.FirstName.focus();
		return false;
		}
	if (Form.LastName.value == "")
		{
		alert("Please enter the Last Name of the New User.")
		Form.LastName.focus();
		return false;
		}		
	if (Form.Location.value == "")
		{
		alert("Please select a Location for the New User.")
		Form.Location.focus();
		return false;
		}		
	}
	
function checkNewLocation(Form)
	{
	if (Form.LocName.value == "")
		{
		alert("Please enter a Location Name.")
		Form.LocName.focus();
		return false;
		}
	if (Form.LocState.value == "")
		{
		alert("Please select a State for the New Location.")
		Form.LocState.focus();
		return false;
		}
	if (Form.LocOwner.value == "")
		{
		alert("Please enter the name of the Location Owner.")
		Form.LocOwner.focus();
		return false;
		}				
	}
	
function checkPayPlan(Form)
	{
	if (Form.Program.value == "")
		{
		alert("Please select a Program.")
		Form.Program.focus();
		return false;
		}
	if (Form.TotalAmt.value == "")
		{
		alert("Please enter a Total Amount.")
		Form.TotalAmt.focus();
		return false;
		}
	if (Form.DownPayment.value == "")
		{
		alert("Please enter a Down Payment.")
		Form.DownPayment.focus();
		return false;
		}
	if (Form.TuneUps.value == "")
		{
		alert("Please enter a TuneUps.")
		Form.TuneUps.focus();
		return false;
		}		
	}
	
function checkSoldDate(Form)
	{
	if (Form.SoldDate.value == "")
		{
		alert("Please enter the Sold Date.")
		Form.Program.focus();
		return false;
		}
	}	
	
function checkPayment(Form)
	{
	if (Form.AmountDue.value == "")
		{
		alert("Please enter the Amount Due.")
		Form.AmountDue.focus();
		return false;
		}
	if (Form.AmountPaid.value == "")
		{
		alert("Please enter the Amount Paid.")
		Form.AmountPaid.focus();
		return false;
		}
	if (Form.PaymentPaid.value == "0" && Form.AmountPaid.value != "0.00" && Form.AmountPaid.value != "0")
		{
		alert("Was the Payment Paid, you have entered a total?")
		Form.PaymentPaid.focus();
		return false;
		}
	if (Form.LessonNum.value == "")
		{
		alert("Please enter a Lesson #.")
		Form.LessonNum.focus();
		return false;
		}
	if (parseFloat(Form.AmountPaid.value) < parseFloat(Form.AmountDue.value) && Form.PaymentPaid.value == "1")
		{
		alert("ALERT: The difference due will be reflected on the next payment.")
		}		
	}
	
	
function checkEditFine(Form)
	{
	if (Form.AmountDue.value != Form.AmountPaid.value)
		{
		alert("Amount Paid does not equal the Amount Due.")
		Form.AmountPaid.focus();
		return false;
		}
	if (parseFloat(Form.AmountPaid.value) < parseFloat(Form.AmountDue.value) && Form.PaymentPaid.value == "1")
		{
		alert("The Amount Paid is more than the Amount Due, please adjust.")
		return false;
		}		
	}
	
	
function checkRefund(Form)
	{
	if (Form.Refund.value == "0.00" || Form.Refund.value == "0" || Form.Refund.value == "")
		{
		alert("Please enter the Refund Amount.")
		Form.Refund.focus();
		return false;
		}		
	}
	
function checkFine(Form)
	{
	if (Form.FineReason.value == "")
		{
		alert("Please enter the Fine Reason.")
		Form.FineReason.focus();
		return false;
		}		
	if (Form.Fine.value == "0.00" || Form.Fine.value == "0" || Form.Fine.value == "")
		{
		alert("Please enter the Fine Amount.")
		Form.Fine.focus();
		return false;
		}		
	}	
	
function checkCustNotes(Form)
	{
	if (Form.CustNotes.value == "")
		{
		alert("Please enter Customer Note.")
		Form.Custnote.focus();
		return false;
		}		
	}	
	
function checkDelete(id,mode,location)
	{
		var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=125,top=150,left=200'"
		window.open('/Personnel/check_delete.asp?id=' + id + '&mode=' + mode + '&location=' + location,'',window_style);
	}
	
function checkDeleteLoc(location)
	{
		var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,width=200,height=150,top=150,left=200'"
		window.open('/Personnel/check_Locdelete.asp?location=' + location,'',window_style);
	}	

function changeFilter(filter,page,locationurl)
	{
	if (filter == 1)
		{
		window.location.href = page + '?filter=1' + locationurl
		}
	if (filter == 2)
		{
		window.location.href = page + '?filter=2' + locationurl
		}
	if (filter == 3)
		{
		window.location.href = page + '?filter=3' + locationurl
		}
	if (filter == 4)
		{
		window.location.href = page + '?filter=4' + locationurl
		}		
	if (filter == '')
		{
		window.location.href = page
		}		
	}	
	
function selectRoyaltyWeek(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report.asp?filter=1&week=' + weekrange + locationurl
	}
function selectRoyaltyMonth(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report.asp?filter=2&week=' + weekrange + locationurl
	}
function selectRoyaltyQuarter(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report.asp?filter=3&week=' + weekrange + locationurl
	}
function selectRoyaltyYear(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report.asp?filter=4&week=' + weekrange + locationurl
	}
	
function selectGlobalRoyaltyWeek(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Global_royalty_report.asp?filter=1&week=' + weekrange + locationurl
	}
function selectGlobalRoyaltyMonth(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Global_royalty_report.asp?filter=2&week=' + weekrange + locationurl
	}
function selectGlobalRoyaltyQuarter(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Global_royalty_report.asp?filter=3&week=' + weekrange + locationurl
	}
function selectGlobalRoyaltyYear(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Global_royalty_report.asp?filter=4&week=' + weekrange + locationurl
	}
	
	
function selectEvalWeek(weekrange,idurl)
	{
	window.location.href = '/Personnel/EvalAssigned.asp?filter=1&week=' + weekrange + idurl
	}
function selectEvalMonth(weekrange,idurl)
	{
	window.location.href = '/Personnel/EvalAssigned.asp?filter=2&week=' + weekrange + idurl
	}
function selectEvalQuarter(weekrange,idurl)
	{
	window.location.href = '/Personnel/EvalAssigned.asp?filter=3&week=' + weekrange + idurl
	}
function selectEvalYear(weekrange,idurl)
	{
	window.location.href = '/Personnel/EvalAssigned.asp?filter=4&week=' + weekrange + idurl
	}
	
	
function selectRoyalty2Week(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report2.asp?filter=1&week=' + weekrange + locationurl
	}
function selectRoyalty2Month(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report2.asp?filter=2&week=' + weekrange + locationurl
	}
function selectRoyalty2Quarter(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report2.asp?filter=3&week=' + weekrange + locationurl
	}
function selectRoyalty2Year(weekrange,locationurl)
	{
	window.location.href = '/Personnel/royalty_report2.asp?filter=4&week=' + weekrange + locationurl
	}
	
function selectCancelEvalWeek(weekrange,locationurl)
	{
	window.location.href = '/Personnel/CancelEval_report.asp?filter=1&week=' + weekrange + locationurl
	}
function selectCancelEvalMonth(weekrange,locationurl)
	{
	window.location.href = '/Personnel/CancelEval_report.asp?filter=2&week=' + weekrange + locationurl
	}
function selectCancelEvalQuarter(weekrange,locationurl)
	{
	window.location.href = '/Personnel/CancelEval_report.asp?filter=3&week=' + weekrange + locationurl
	}
function selectCancelEvalYear(weekrange,locationurl)
	{
	window.location.href = '/Personnel/CancelEval_report.asp?filter=4&week=' + weekrange + locationurl
	}
	
	
function selectCancelWeek(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Cancellation_report.asp?filter=1&week=' + weekrange + locationurl
	}
function selectCancelMonth(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Cancellation_report.asp?filter=2&week=' + weekrange + locationurl
	}
function selectCancelQuarter(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Cancellation_report.asp?filter=3&week=' + weekrange + locationurl
	}
function selectCancelYear(weekrange,locationurl)
	{
	window.location.href = '/Personnel/Cancellation_report.asp?filter=4&week=' + weekrange + locationurl
	}
	
function addCustNote(custId)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=500,width=300'"
	   window.open('/Personnel/add_CustNote.asp?id=' + custId ,'',window_style);
	}
function viewCustNote(custId)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,top=100,left=100,height=500,width=600'"
	   window.open('/Personnel/view_CustNotes.asp?id=' + custId ,'',window_style);
	}
	
function editDog(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_dog.asp?id=' + id ,'',window_style);
	}
	
function addDog(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/add_dog.asp?id=' + id ,'',window_style);
	}
	
function deleteDog(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/delete_dog.asp?id=' + id ,'',window_style);
	}	
	
function editLesson(id,lessonid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_lesson.asp?id=' + id + '&lessonid=' + lessonid,'',window_style);
	}
	
function editPayPlan(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_payplan.asp?id=' + id,'',window_style);
	}	
	
function editSoldDate(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_LSsolddate.asp?id=' + id,'',window_style);
	}		
	
function editCustForm(id)
	{
           window.location.href = '/Personnel/full_edit_customer.asp?id=' + id
	}		

function addPayment(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/add_payment.asp?id=' + id,'',window_style);
	}
	
function addUnscheduledPayment(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=170,width=300'"
	   window.open('/Personnel/add_unscheduled_payment.asp?id=' + id,'',window_style);
	}
	
function addRefund(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=170,width=300'"
	   window.open('/Personnel/add_refund.asp?id=' + id,'',window_style);
	}
	
function addFine(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=170,width=300'"
	   window.open('/Personnel/add_fine.asp?id=' + id,'',window_style);
	}
	
function editFine(id,paymentid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_fine.asp?id=' + id + '&paymentid=' + paymentid,'',window_style);
	}
	
function editPayment(id,paymentid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=200,width=300'"
	   window.open('/Personnel/edit_payment.asp?id=' + id + '&paymentid=' + paymentid,'',window_style);
	}
	
function deletePayment(id,paymentid)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=100,width=150'"
	   window.open('/Personnel/delete_payment.asp?id=' + id + '&paymentid=' + paymentid,'',window_style);
	}
	
function editBehaviors(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200'"
	   window.open('/Personnel/edit_behaviors.asp?id=' + id,'',window_style);
	}	
	
function breedEdit(id)
	{
	window.location.href = "/Personnel/edit_breed.asp?mode=edit&breed=" + id
	}
	
function editUnscheduledPayment(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=170,width=300'"
	   window.open('/Personnel/edit_unscheduled_payment.asp?id=' + id,'',window_style);
	}
	
function editRefund(id)
	{
           var window_style = "'toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,top=150,left=200,height=170,width=300'"
	   window.open('/Personnel/edit_refund.asp?id=' + id,'',window_style);
	}	
	
function changeLocation(id)
{
	window.location.href = "/Personnel/Reports/report_outstanding_balance.asp?locChange=yes&location=" + id
}	
