 //$(document).ready(function() {
	//MORE INFO POPUPS
	function popUp(url) {
		newwindow=window.open(url,'info','height=350,width=450', 'menubar=no,resizable=yes,toolbar=no');
		if (window.focus) {newwindow.focus()}
		return false;
	}
	
	// HIDE AND SHOW FORM ELEMENTS
	function display(obj,id1) {
	    txt = obj.options[obj.selectedIndex].value;
	    document.getElementById(id1).style.display = 'none';
	    if ( txt.match(id1) ) {
	    document.getElementById(id1).style.display = 'block';
	    }
	}
	$("#rWorkPhone").css("display", "none");
	
	$("#service_home").click(function()
		{
		$("#rHomePhone").css("display", "inline");
		$("#rWorkPhone").css("display", "none");
		});
	
	$("#service_business").click(function()
		{
		$("#rHomePhone").css("display", "none");
		$("#rWorkPhone").css("display", "inline");
		});
	
	
	// SIGNUP FORM: HIDE AND SHOW CELLULAR OPTIONS
	$(".cellular_wrap").hide();
	$(".internet_provider_wrap").hide();
	$("#err_add_landline_backup").hide();
	$("#err_add_landline_backup_number").hide();
	$("#err_add_cell_backup").show();
	$('.internet_monitoring_wrap').hide();
	
	
	$("#phone_type_cell").click(function() {	
		$('#phone_type_make').val('0');
		$("input:radio[name=add_cell_backup]")[0].checked = true;
		$("input:radio[name=add_landline_backup]")[0].checked = true;
	  	$(".internet_provider_wrap").hide();
	  	$("input:text[name='phone_type_sim_dmp_xtl']").val('');
		$(".dmp_xtl_wrap").hide();
		$("#err_add_cell_backup").hide();
	  	$("#err_add_landline_backup").show();
	  	$(".cellular_wrap").show();
	  	$('.internet_monitoring_wrap').hide();
	});
	
	$("#add_landline_backup_no").click(function() {	
		$('#err_add_landline_backup_number').val('');
	  	$("#err_add_landline_backup_number").hide();
	});
	
	$("#add_landline_backup_yes").click(function() {	
	  	$("#err_add_landline_backup_number").show();
	});
	
	$("#phone_type_land").click(function() {
		$('#phone_type_make').val('0');
		$("input:radio[name=add_cell_backup]")[0].checked = true;
		$("input:radio[name=add_landline_backup]")[0].checked = true;
		$(".dmp_xtl_wrap").hide();
	  	$("#err_add_cell_backup").show();
	  	$("#err_add_landline_backup").hide();
	  	$("input:text[name=phone_type_sim_dmp_xtl]").val('');
		$(".internet_provider_wrap").hide();
	  	$(".cellular_wrap").hide();
		$('#add_landline_backup_number').val('');
	  	$("#err_add_landline_backup_number").hide();
	  	$('.internet_monitoring_wrap').hide();
	});
	
	$("#phone_type_voip").click(function() {
		$('#phone_type_make').val('0');
		$("input:radio[name=add_cell_backup]")[0].checked = true;
		$("input:radio[name=add_landline_backup]")[0].checked = true;
		$("#err_add_cell_backup").show();
		$(".dmp_xtl_wrap").hide();
	  	$("input:text[name=phone_type_sim_dmp_xtl]").val('');
	  	$("#err_add_landline_backup").hide();
	  	$(".internet_provider_wrap").show();
	  	$(".cellular_wrap").hide();
		$('#add_landline_backup_number').val('');
	  	$("#err_add_landline_backup_number").hide();
	  	$('.internet_monitoring_wrap').show();
	});
	
	$("#phone_type_internet").click(function() {
		$('#phone_type_make').val('0');
		$("input:radio[name=add_cell_backup]")[0].checked = true;
		$("input:radio[name=add_landline_backup]")[0].checked = true;
		$(".dmp_xtl_wrap").hide();
	  	$("input:text[name=phone_type_sim_dmp_xtl]").val('');
	  	$("#err_add_cell_backup").show();
	  	$("#err_add_landline_backup").hide();
	  	$(".internet_provider_wrap").show();
	  	$(".cellular_wrap").hide();
		$('#add_landline_backup_number').val('');
	  	$("#err_add_landline_backup_number").hide();
	  	$('.internet_monitoring_wrap').show();
	});
	
	$("#phone_type_dmp_xtl").click(function() {
		$('#phone_type_make').val('0');
		$("input:radio[name=add_cell_backup]")[0].checked = true;
		$("input:radio[name=add_landline_backup]")[0].checked = true;
		$(".dmp_xtl_wrap").show();
	  	$("#err_add_cell_backup").hide();
	  	$("#err_add_landline_backup").show();
	  	$(".internet_provider_wrap").hide();
	  	$(".cellular_wrap").hide();
	  	$("#err_add_landline_backup").hide();
		$('#add_landline_backup_number').val('');
	  	$("#err_add_landline_backup_number").hide();
	  	$('.internet_monitoring_wrap').hide();
	});
	
	if ($('input:radio[name=phone_type]:checked').val() == "DMP XTL") {
	  	$("#err_add_landline_backup").hide();
	  	$("#err_add_cell_backup").hide();
	}
	
	$("#add_cell_backup_yes").click(function() {
	  		$(".cellular_wrap").show();
	});
	
	$("#add_cell_backup_no").click(function() {
	  		$(".cellular_wrap").hide();
	});
	
	$("#optional_add_on_email_yes").click(function() {
	  		$("#optional_add_on_email_wrap").show();
	});
	
	$("#optional_add_on_email_no").click(function() {
	  		$("#optional_add_on_email_wrap").hide();
	});
	
	
	// SIGNUP FORM: HIDE AND SHOW MAILING ADDRESS
	$("#mailing_address_wrap").hide();
	$("#mailing_different").click(function() {
	  	$("#mailing_address_wrap").show();
	});
	$("#mailing_same").click(function() {
	  	$("#mailing_address_wrap").hide();
	});
	
	// SIGNUP FORM: HIDE AND SHOW RESIDENTIAL
	//$(".residential_signup_wrap").hide();
	$("#service_home").click(function() {
	  	$(".residential_signup_wrap").show();
	});
	$("#service_home").click(function() {
	  	$(".business_signup_wrap").hide();
	});
	
	// SIGNUP FORM: HIDE AND SHOW BUSINESS
	$(".business_signup_wrap").hide();
	$("#service_business").click(function() {
	  	$(".business_signup_wrap").show();
	});
	$("#service_business").click(function() {
	  	$(".residential_signup_wrap").hide();
	});
	
	// SIGNUP FORM: HIDE AND SHOW CHECK
	$("#payment_check_wrap").hide();
	$("#payment_check").click(function() {
	  	$("#payment_check_wrap").show();
	});
	$("#payment_check").click(function() {
	  	$("#payment_credit_wrap").hide();
	});
	
	// SIGNUP FORM: HIDE AND SHOW CREDIT
	$("#payment_credit_wrap").hide();
	$("#payment_credit").click(function() {
	  	$("#payment_credit_wrap").show();
	});
	$("#payment_credit").click(function() {
	  $("#payment_check_wrap").hide();
	});
	
	// SIGNUP FORM: HIDE AND SHOW CURRENT SERVICE PROVIDER
	$("#current_provider_wrap").hide();
	$("#current_service_yes").click(function() {
	  	$("#current_provider_wrap").show();
	});
	$("#current_service_no").click(function() {
	  	$("#current_provider_wrap").hide();
	});
	
	// ADD ZONES
	function addZone(zone) {
		var zoneGroupShow = parseInt(zone) + 1;
		var zoneBtnHide = parseInt(zone);
		
		document.getElementById('zone_group_' + zoneGroupShow).style.display='';
		document.getElementById('zone_btn_' + zoneBtnHide).style.visibility='hidden';
	}
	
	function deleteZone(zone) {
		var zoneBtnShow = parseInt(zone) - 1;
		
		document.getElementById('zone_group_' + zone).style.display='none';
		document.getElementById('zone_btn_' + zoneBtnShow).style.visibility='visible';
	}
	
	// SIGNUP FORM: HIDE AND SHOW OPTIONAL ADD ON EMAIL
	function EnableDisableDIV() {
		if ($("#optional_add_on_email").attr("checked")) {
			$("#optional_add_on_email_wrap").show();
		} else {
			$("#optional_add_on_email_wrap").hide();
		}
	}        
	
	// PASS FORM DATA WITHIN HTML DOC
	function updateAddress(which) {
	    var theOutput = document.getElementById(which + '_input').value;
	    if (which == 'address_monitored_2') {
	    	if (theOutput != '') {
	    		theOutput = ', ' + theOutput;
	    	}
	    }
	    document.getElementById(which + '_copy').innerHTML = theOutput;
	}
	
	//COST CALCULATOR
	function displayVals() {
		var phoneType = 0; 
	    var phoneTypeMake = 0;
	    var opOpenClose = 0;
	    var opEmail = 0;
	    var opElink = 0;
	    var opYardSign = 0;
	    var opCellBackup = 0;
	    var opLandlineBackup = 0;
	
		var phoneType = $("input:radio[name=phone_type]:checked").val(); 
	    var phoneTypeMake = $("#phone_type_make").val();
	    var dmpxtlPackage = $("input:radio[name=dmp_xtl_option]:checked").val();
	    
	    var opEmail = $("input:radio[name=optional_add_on_email]:checked").val();
	    var opElink = $("input:radio[name=optional_add_on_elink]:checked").val();
	    var opOpenClose = $("input:radio[name=optional_add_on_oc]:checked").val();
	    var opYardSign = $("input:radio[name=optional_add_on_sign]:checked").val();
	    var addCellBackup = $("input:radio[name=add_cell_backup]:checked").val();
	    var addLandlineBackup = $("input:radio[name=add_landline_backup]:checked").val();
	    
	    //LINE ITEM COST CONVERSIONS
	    if (opEmail == 6) {var opEmailDisplay = '&raquo; Email Notification - <strong>$6</strong><br />';} else {var opEmailDisplay = '';}
	    
	    if (opElink == 25) {var opElinkDisplay = '&raquo; eLink - <strong>$25</strong><br />';} else {var opElinkDisplay = '';}
	    
	    if (opOpenClose == 0)
	    	{
	     	var opOpenCloseDisplay = '';
	     	}
	    else if (opOpenClose == 180)
	    	{
	    	var opOpenCloseDisplay = '&raquo; Monitored Openings/Closings: Log Only - <strong>$180</strong><br />';
	    	}
	    else if (opOpenClose == 'Supervised Openings/Closings')
	    	{
	    	var opOpenCloseDisplay = '&raquo; Supervised Openings/Closings - <strong>$240</strong><br />';
	    	}
	    else if (opOpenClose == 240)
	    	{
	    	var opOpenCloseDisplay = '&raquo; Openings/Closings: Log Only with Reports - <strong>$240</strong><br />';
	    	}
	    else if (opOpenClose == 300)
	    	{
	    	var opOpenCloseDisplay = '&raquo; Supervised Openings/Closings with Reports - <strong>$300</strong><br />';
	    	}
	    else
	    	{
	    	var opOpenCloseDisplay = '';
	    	}
	    	
	    if (opYardSign == 0)
	    	{
	    	var opYardSignDisplay = '';
	    	}
	    else if (opYardSign == 12)
	    	{
	    	var opYardSignDisplay = '&raquo; One Yard Sign - <strong>$12</strong><br />';
		    }
	    else if (opYardSign == 24)
	    	{
	    	var opYardSignDisplay = '&raquo; Two Yard Signs - <strong>$24</strong><br />';
	    	}
	    else if (opYardSign == 35)
	    	{
	    	var opYardSignDisplay = '&raquo; Three Yard Signs - <strong>$35</strong><br />';
	    	}
	    else
	    	{
	    	var opYardSignDisplay = '';
	    	}
	    	
	    if (addCellBackup == 15)
	    	{
	    	var addCellBackupDisplay = '&raquo; Cellular Backup - <strong>$15 (setup cost)</strong>';
	    	}
	    else
	    	{
	    	var addCellBackupDisplay = '';
	    	}
	    	
	    	var addCellBackupDisplay ='';
	
	    if (addLandlineBackup == 15)
	    	{
	    	var addLandlineBackupDisplay = '&raquo; Landline Backup - <strong>$15 (setup cost)</strong>';
	    	}
	    else
	    	{
	    	var addLandlineBackupDisplay = '';
	    	}
	    
	    if (opEmail == null && opElink == null && opOpenClose == 0 && opYardSign == 0 && addCellBackup == 0 && addLandlineBackup == 0)
	    	{
	    	var opNone = 'NONE';
	    	}
	    else
	    	{
	    	var opNone = '';
	    	}
	    	    
	    //SETUP COST ******OK TO EDIT THESE*****
	    var setupStandard = 35;
	    var setupAlarmNet = 35;
	    var setupDSC = 45;
	    var setupHaiC3 = 35;
	    var setupRokonet = 35;
	    var setupStarlink = 45;
	    var setupTelGuardTG1 = 45;
	    var setupTelGuardTG4 = 60;
	    var setupTelGuardTG11 = 45;
	    var setupUplink = 35;
	    var setupVisonic = 35;
	    var setupDMPXTLBasic = 35;
	    var setupDMPXTLBasicPlus = 35;
	
	    //MONTHLY COST *********OK TO EDIT THESE******
	    var monthlyStandard = 8.95;
	    var monthlyAlarmNet = 23.95;
	    var monthlyDSC = 20.95;
	    var monthlyHaiC3 = 8.95;
	    var monthlyRokonet = 8.95;
	    var monthlyStarlink = 20.95;
	    var monthlyTelGuardTG1 = 20.95;
	    var monthlyTelGuardTG4 = 20.95;
	    var monthlyTelGuardTG11 = 20.95;
	    var monthlyUplink = 20.95;
	    var monthlyVisonic = 8.95;
	    var monthlyDMPXTLBasic = 14.95;
	    var monthlyDMPXTLBasicPlus = 24.95;
	
	    if (opEmail == null) {var opEmail = 0;}
	    if (opElink == null) {var opElink = 0;}
	    
	    //ANNUAL COST = service cost + optional services
	    var totalStandard = (monthlyStandard * 12) + Number(opEmail) + Number(opElink) + Number(opOpenClose) + Number(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalAlarmNet = (monthlyAlarmNet * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalDSC = (monthlyDSC * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalHaiC3 = (monthlyHaiC3 * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalRokonet = (monthlyRokonet * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalStarlink = (monthlyStarlink * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalTelGuardTG1 = (monthlyTelGuardTG1 * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalTelGuardTG4 = (monthlyTelGuardTG4 * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalTelGuardTG11 = (monthlyTelGuardTG11 * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalUplink = (monthlyUplink * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalVisonic = (monthlyVisonic * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalDMPXTLBasic = (monthlyDMPXTLBasic * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	    var totalDMPXTLBasicPlus = (monthlyDMPXTLBasicPlus * 12) + parseInt(opEmail) + parseInt(opElink) + parseInt(opOpenClose) + parseInt(opYardSign) + Number(addCellBackup) + Number(addLandlineBackup);
	
		$("#err_cell_mod_note_a").hide();
		$("#err_cell_mod_note_b").hide();
		$("#err_phone_type_mac").hide();
		$("#err_phone_type_sim").hide();
		$("#err_phone_type_crc").hide();
		
		if ((phoneType=='VoIP') || (phoneType=='Internet')) {
			var setupStandard = 144;
		}
		
			    
		if ((phoneType=="Cellular" && phoneTypeMake=="AlarmNet") || (addCellBackup=15 && phoneTypeMake=="AlarmNet"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();		
			$("#err_phone_type_mac").show();
			$("#err_phone_type_sim").show();
			$("#err_phone_type_crc").show();        
			$("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupAlarmNet +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalAlarmNet.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupAlarmNet + "</strong>, and <strong>$" + totalAlarmNet.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyAlarmNet + " per month X 12 months = $" + (monthlyAlarmNet * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupAlarmNet + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupAlarmNet + totalAlarmNet).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="DSC") || (addCellBackup=15 && phoneTypeMake=="DSC"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_crc").hide();
			$("#err_phone_type_sim").show();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupDSC +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalDSC.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupDSC + "</strong>, and <strong>$" + totalDSC.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyDSC + " per month X 12 months = $" + (monthlyDSC * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupDSC + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupDSC + totalDSC).toFixed(2));
	      }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Starlink") || (addCellBackup=15 && phoneTypeMake=="Starlink"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupStarlink +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalStarlink.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupStarlink + "</strong>, and <strong>$" + totalStarlink.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyStarlink + " per month X 12 months = $" + (monthlyStarlink * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupStarlink + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupStarlink + totalStarlink).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Tel-GuardTG-1") || (addCellBackup=15 && phoneTypeMake=="Tel-GuardTG-1"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupTelGuardTG1 +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalTelGuardTG1.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupTelGuardTG1 + "</strong>, and <strong>$" + totalTelGuardTG1.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyTelGuardTG1 + " per month X 12 months = $" + (monthlyTelGuardTG1 * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupTelGuardTG1 + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupTelGuardTG1 + totalTelGuardTG1).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Tel-GuardTG-4") || (addCellBackup=15 && phoneTypeMake=="Tel-GuardTG-4"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupTelGuardTG4 +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalTelGuardTG4.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupTelGuardTG4 + "</strong>, and <strong>$" + totalTelGuardTG4.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyTelGuardTG4 + " per month X 12 months = $" + (monthlyTelGuardTG4 * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupTelGuardTG4 + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupTelGuardTG4 + totalTelGuardTG4).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Tel-GuardTG-11") || (addCellBackup=15 && phoneTypeMake=="Tel-GuardTG-11"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").show();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupTelGuardTG11 +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalTelGuardTG11.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupTelGuardTG11 + "</strong>, and <strong>$" + totalTelGuardTG11.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyTelGuardTG11 + " per month X 12 months = $" + (monthlyTelGuardTG11 * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupTelGuardTG11 + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupTelGuardTG11 + totalTelGuardTG11).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Uplink") || (addCellBackup=15 && phoneTypeMake=="Uplink"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupUplink +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalUplink.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupUplink + "</strong>, and <strong>$" + totalUplink.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyUplink + " per month X 12 months = $" + (monthlyUplink * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupUplink + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupUplink + totalUplink).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Visonic") || (addCellBackup=15 && phoneTypeMake=="Visonic"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").show();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupVisonic +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalVisonic.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupVisonic + "</strong>, and <strong>$" + totalVisonic.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyVisonic + " per month X 12 months = $" + (monthlyVisonic * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupVisonic + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupVisonic + totalVisonic).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="Rokonet") || (addCellBackup=15 && phoneTypeMake=="Rokonet"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").show();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupRokonet +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalRokonet.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupRokonet + "</strong>, and <strong>$" + totalRokonet.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyRokonet + " per month X 12 months = $" + (monthlyRokonet * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupRokonet + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupRokonet + totalRokonet).toFixed(2));
	        }
	    else if ((phoneType=="Cellular" && phoneTypeMake=="HAI-C3") || (addCellBackup=15 && phoneTypeMake=="HAI-C3"))
	        {
	        var addCellBackup=15;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").show();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupHaiC3 +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalHaiC3.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupHaiC3 + "</strong>, and <strong>$" + totalHaiC3.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyHaiC3 + " per month X 12 months = $" + (monthlyHaiC3 * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupHaiC3 + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupHaiC3 + totalHaiC3).toFixed(2));
	        }
	    else if (phoneType=="DMP XTL" && dmpxtlPackage=="DMP XTL Basic")
	        {
	        var addCellBackup=0;
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupDMPXTLBasic +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalDMPXTLBasic.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupHaiC3 + "</strong>, and <strong>$" + totalDMPXTLBasic.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyDMPXTLBasic + " per month X 12 months = $" + (monthlyDMPXTLBasic * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupDMPXTLBasic + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupDMPXTLBasic + totalDMPXTLBasic).toFixed(2));
	        }
	    else if (phoneType=="DMP XTL" && dmpxtlPackage=="DMP XTL Plus")
	        {
	        var addCellBackup=0;
	        $("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupDMPXTLBasicPlus +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalDMPXTLBasicPlus.toFixed(2) + "</strong>).");
	        $("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupHaiC3 + "</strong>, and <strong>$" + totalDMPXTLBasicPlus.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	        $("#monitoring_total").html("<strong>Monitoring at $" + monthlyDMPXTLBasicPlus + " per month X 12 months = $" + (monthlyDMPXTLBasicPlus * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	        $("#setup_total").html("<strong>One-time set up fee $" + setupDMPXTLBasicPlus + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupDMPXTLBasicPlus + totalDMPXTLBasicPlus).toFixed(2));
	        }
		else
			{
			var addCellBackup=0;
			$("#err_cell_mod_note_a").hide();
			$("#err_cell_mod_note_b").hide();
			$("#err_phone_type_mac").hide();
			$("#err_phone_type_sim").hide();
			$("#err_phone_type_crc").hide();
	      	$("#check_content").html("Please send two checks, one for set-up (<strong>$" + setupStandard +"</strong>), and one for monitoring and any additional add-ons or activation fees chosen above (<strong>$" + totalStandard.toFixed(2) + "</strong>).");
	      	$("#credit_content").html("By submitting this application you authorize AlarmRelay, Inc., a Watchlight Corporation, to charge your credit card a one time set-up fee of <strong>$" + setupStandard + "</strong>, and <strong>$" + totalStandard.toFixed(2) + "</strong> for monitoring and any additional add-ons chosen above.");      	
	      	$("#monitoring_total").html("<strong>Monitoring at $" + monthlyStandard + " per month X 12 months = $" + (monthlyStandard * 12).toFixed(2) + "</strong><br />Monitoring fees will be charged once programming of the account is completed and verified by our central station technician.");
	      	$("#setup_total").html("<strong>One-time set up fee $" + setupStandard + "</strong><br />The set-up fee is non-refundable and will be charged once we have attempted to program your system. We will only charge this fee once regardless of how many attempts it takes to program the system.");
	        $("#final_total").html("<span>Total:</span> $" + (setupStandard + totalStandard).toFixed(2));
			}
	
		$("#chosen_services").html("<strong>Optional Add-On Services Requested</strong><br />" + opEmailDisplay +  opElinkDisplay + opOpenCloseDisplay + opYardSignDisplay + addCellBackupDisplay + addLandlineBackupDisplay + opNone);
	}	
	
	$(".costTotal").click(displayVals);
	displayVals();
	
	// VALIDATE FORM AND CONVERT RADIO BUTTON VALUE TO USABLE DATA
	function validateForm()
		{
		// SET FORM VARIABLES
		var formStatus = 'pass';
		var serviceType= $("input:radio[name=service_type]:checked").val();
		var howHear = $("input[name=how_hear]").val();
		var howHearRelation = $("#how_hear_relation").val();
		var firstName = $("input[name=first_name_input]").val();
		var lastName = $("input[name=last_name_input]").val();
		var phoneHome = $("input[name=phone_home]").val();
		var phoneWork = $("input[name=phone_work]").val();
		var businessName = $("input[name=business_name_input]").val();
		var businessOwner = $("input[name=owner]").val();
		var checkEmail = $("input[name=email]").val();
		var monitoredAddress = $("input[name=address_monitored_1]").val();
		var monitoredCity = $("input[name=city_monitored_input_1]").val();
		var monitoredCounty = $("input[name=county_monitored]").val();
		var crossStreet = $("input[name=cross_street_monitored]").val();
		var zip = $("input[name=zip_monitored]").val();
		var phoneTypeMake = $("#phone_type_make").val();
		var phoneType = $("input:radio[name=phone_type]:checked").val();
	    var addCellBackup = $("input:radio[name=add_cell_backup]:checked").val();
		var cellularSIM = $("input[name=phone_type_sim]").val();
		var cellularCRC = $("input[name=phone_type_crc]").val();
		var cellularMAC = $("input[name=phone_type_mac]").val();
		var cellularSerial = $("input[name=phone_type_serial]").val();
		var dmpxtlSIM = $("input[name=phone_type_sim_dmp_xtl]").val();
		var contactOne = $("input[name=contact_1]").val();
		var contactOnePass = $("input[name=contact_password_1]").val();
		var contactOnePhone = $("input[name=contact_phone_1]").val();
		var contactTwo = $("input[name=contact_2]").val();
		var contactTwoPass = $("input[name=contact_password_2]").val();
		var contactTwoPhone = $("input[name=contact_phone_2]").val();
		var paymentType = $("input:radio[name=payment_type]:checked").val();
		var termsAgree = $("input:checkbox[name=agree]:checked").val();
		var termsAgreeNFPA = $("input:checkbox[name=agree_nfpa]:checked").val();
		var errorMessage = "";
		
		//CONVERT FORM DATA TO DISPLAYABLE TEXT
		if (document.signup_form.optional_add_on_oc[1].checked)
			{
			document.signup_form.optional_add_on_oc[1].value == 'Supervised Openings/Closings';
			}
		
		//RESET ALL CORRECTED ERROR FIELDS	
		$('#err_how_hear').css('background', 'transparent');
		$('#err_how_hear_relation').css('background', 'transparent');
		$('#err_first_name_input').css('background', 'transparent');
		$('#err_last_name_input').css('background', 'transparent');
		$('#err_phone_home').css('background', 'transparent');
		$('#err_phone_work').css('background', 'transparent');
		$('#err_email').css('background', 'transparent');
		$('#err_business_name_input').css('background', 'transparent');
		$('#err_owner').css('background', 'transparent');
		$('#err_address_monitored_1_input').css('background', 'transparent');
		$('#err_city_monitored_input_1').css('background', 'transparent');
		$('#err_county_monitored').css('background', 'transparent');
		$('#err_cross_street_monitored').css('background', 'transparent');
		$('#err_zip_monitored').css('background', 'transparent');
		$('#err_phone_type_make').css('background', 'transparent');
		$('#err_phone_type_mac').css('background', 'transparent');
		$('#err_phone_type_crc').css('background', 'transparent');
		$('#err_phone_type_sim').css('background', 'transparent');
		$('#err_phone_type_sim_dmp_xtl').css('background', 'transparent');
		$('#err_phone_type_serial').css('background', 'transparent');
		$('#err_contact_1').css('background', 'transparent');
		$('#err_contact_password_1').css('background', 'transparent');
		$('#err_contact_phone_1').css('background', 'transparent');
		$('#err_contact_2').css('background', 'transparent');
		$('#err_contact_password_2').css('background', 'transparent');
		$('#err_contact-phone_2').css('background', 'transparent');
		$('#err_payment_type').css('background', 'transparent');
		$('#err_agree').css('background', 'transparent');
		$('#err_agree_nfpa').css('background', 'transparent');
		
		//CHECK THAT EMAIL IS VALID
		if ((checkEmail.indexOf('@') < 0) || ((checkEmail.charAt(checkEmail.length-4) != '.') && (checkEmail.charAt(checkEmail.length-3) != '.')))
			{
			$("#err_email").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- The primary email address is not valid\n";
			}
			
		//CHECK FOR GENERAL BLANK FIELDS
		if (howHear=="")
			{
			$("#err_how_hear").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In How You Heard About Us\n";
			}
	
		if (howHearRelation=="none")
			{
			$("#err_how_hear_relation").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In What Relation the Referrer Is To You\n";
			}
	
		if (serviceType=="Residential" && firstName=="")
			{
			$("#err_first_name_input").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In Your First Name\n";
			}
	
		if (serviceType=="Residential" && lastName=="")
			{
			$("#err_last_name_input").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In Your Last Name\n";
			}
	
		if (serviceType=="Residential" && phoneHome=="")
			{
			$("#err_phone_home").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In Your Home Phone\n";
			}
	
		if (serviceType=="Commercial" && businessName=="")
			{
			$("#err_business_name_input").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In Your Business Name\n";
			}
	
		if (serviceType=="Commercial" && businessOwner=="")
			{
			$("#err_owner").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the Owner Name\n";
			}
	
		if (serviceType=="Commercial" && phoneWork=="")
			{
			$("#err_phone_work").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In Your Work Phone\n";
			}
	
		if (monitoredAddress=="")
			{
			$("#err_address_monitored_1").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the Address To Be Monitored\n";
			}
	
		if (monitoredCity=="")
			{
			$("#err_city_monitored_input_1").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the City\n";
			}
	
		if (monitoredCounty=="")
			{
			$("#err_county_monitored").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the County\n";
			}
	
		if (crossStreet=="")
			{
			$("#err_cross_street_monitored").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the Cross Street\n";
			}
	
		if (zip=="")
			{
			$("#err_zip_monitored").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Fill In the Zip Code\n";
			}
	
		if (contactOne=="")
			{
			$("#err_contact_1").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 1\n";
			}
			
		if (contactOnePass=="")
			{
			$("#err_contact_password_1").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 1 Password\n";
			}
			
		if (contactOnePhone=="")
			{
			$("#err_contact_phone_1").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 1 Phone #\n";
			}
			
		if (contactTwo=="")
			{
			$("#err_contact_2").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 2\n";
			}
			
		if (contactTwoPass=="")
			{
			$("#err_contact_password_2").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 2 Password\n";
			}
			
		if (contactTwoPhone=="")
			{
			$("#err_contact_phone_2").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Supply Contact 2 Phone #\n";
			}
	
		if (paymentType==undefined)
			{
			$("#err_payment_type").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- Choose A Payment Type\n";
			}
	
		if (serviceType=="Commercial" && termsAgreeNFPA==undefined)
			{
			$("#err_agree_nfpa").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Check the NFPA box\n";
			}
	
		if (termsAgree==undefined)
			{
			$("#err_agree").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Agree to the Terms of Service\n";
			}
		
		//CHECK FOR CELLULAR OPTION BLANK FIELDS
		if ((phoneType=="Cellular" && phoneTypeMake == 0) || (addCellBackup==15 && phoneTypeMake== 0))
			{
			$("#err_phone_type_make").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Choose A Make/Module\n";
			}
	
		if ((phoneType=="Cellular" && cellularSerial == "") || (addCellBackup==15 && cellularSerial== ""))
			{
			$("#err_phone_type_serial").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Enter a Serial #\n";
			}
		
		if (phoneTypeMake == "AlarmNet" && cellularMAC=="")
			{
			$("#err_phone_type_mac").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Enter a MAC #\n";
			}
	
		if (phoneTypeMake == "AlarmNet" && cellularCRC=="")
			{
			$("#err_phone_type_crc").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Enter a CRC #\n";
			}
	
		if ((phoneTypeMake == "AlarmNet" && cellularSIM=="") || (phoneTypeMake == "DSC" && cellularSIM==""))
			{
			$("#err_phone_type_sim").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Enter a SIM #\n";
			}
			
		if (phoneType == "DMP XTL" && dmpxtlSIM=="")
			{
			$("#err_phone_type_sim_dmp_xtl").css('background', 'pink');
			formStatus = 'fail';
			errorMessage = errorMessage + "-- You Must Enter a SIM #\n";
			}
	
		if (formStatus == 'fail')
			{
			alert(errorMessage);
			return false;
			}
		else
			{
	    	return true;
	    	}		
		}
//});