var SMScz_platmobilem =
{
id_operator : '',
id_account : '',
id_price : '',
price_min : 10,
price_max : 1500,
inputOperator : function (name, value)
{
this.id_operator = name;
document.write('');
this.napoveda(document.getElementById('SMScz_platmobilem_operator').value, true);
},
inputAccount : function (name, value)
{
this.id_account = name;
if (!value) value = '+420';
document.write('');
},
inputPrice : function (name, value, min, max)
{
this.id_price = name;
if (parseInt(min) > 0) this.price_min = parseInt(min);
if (parseInt(max) > 0) this.price_max = parseInt(max);
document.write(' Kč');
},
logo : function ()
{
document.write('');
},
info : function ()
{
document.write('
Poskytuje goNET s.r.o. Pro případné reklamace použijte reklamační formulář nebo volejte pondělí až pátek od 9 do 16 hodin na technickou podporu +420 725 735 209. Další informace o platbách na www.platmobilem.cz
');
},
checkSubmit : function ()
{
if (this.id_account != "")
{
if (!document.getElementById(this.id_account).value.match(/^[+]420[67][0-9]{8}$/))
{
alert('Telefonní číslo musí být zadáno ve tvaru +420xxxyyyzzz.');
return false;
}
}
if (this.id_price != "")
{
if ((parseInt(document.getElementById(this.id_price).value) < this.price_min) || (parseInt(document.getElementById(this.id_price).value) > this.price_max))
{
alert('Částka musí být v rozsahu ' + this.price_min + '-' + this.price_max + ' Kč.');
return false;
}
}
return true;
},
napoveda : function (operator, volba)
{
if (volba == true)
{
if (document.getElementById('SMScz_platmobilem_napoveda')) document.getElementById('SMScz_platmobilem_napoveda').innerHTML = this.napoveda_(operator);
}
else
{
document.write('
' + this.napoveda_(operator) + '
');
if (document.getElementById('SMScz_platmobilem_operator')) this.napoveda(document.getElementById('SMScz_platmobilem_operator').value, true);
}
},
napoveda_ : function (operator)
{
var ol = false;
if (operator == 'o2')
{
return '
Nápověda pro O2:
' + //
(ol ? '
' : '1. ') + 'Vyplňte Vaše telefonní číslo a pokračujte v úhradě.' + (ol ? '
' : '4. ') + 'Zadejte telefonní číslo nebo se přihlašte.' + (ol ? '
' : ' ') + //
(ol ? '
' : '5. ') + 'Na Váš mobilní telefon obdržíte SMS zprávu s kódem.' + (ol ? '
' : ' ') + //
(ol ? '
' : '6. ') + 'Vložte kód do formuláře a potvďte platbu.' + (ol ? '
' : ' ') + //
'V případě potíží ověřte u operátora, zda máte aktivní službu "O2 m-platba", "Vodafone M-platba" nebo "T-Mobile M-peněženka".';
}
return '';
}
}