| Line 269... |
Line 269... |
| 269 |
title = title+'-'+Id;
|
269 |
title = title+'-'+Id;
|
| 270 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
270 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
| 271 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
271 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
| 272 |
}
|
272 |
}
|
| 273 |
}
|
273 |
}
|
| - |
|
274 |
var countryId;
|
| 274 |
function changeCountry(e){
|
275 |
function changeCountry(e){
|
| 275 |
debugger;
|
276 |
debugger;
|
| 276 |
var Id = e.currentTarget.id;
|
277 |
var Id = e.currentTarget.id;
|
| - |
|
278 |
countryId = Id;
|
| 277 |
if(Id == 'india'){
|
279 |
if(Id == 'india'){
|
| 278 |
document.getElementById('india').className = 'selected';
|
280 |
document.getElementById('india').className = 'selected';
|
| 279 |
document.getElementById('outside').className = '';
|
281 |
document.getElementById('outside').className = '';
|
| 280 |
document.getElementsByClassName('in-india')[0].style.display = 'block';
|
282 |
document.getElementsByClassName('in-india')[0].style.display = 'block';
|
| 281 |
document.getElementsByClassName('out-india')[0].style.display = 'none';
|
283 |
document.getElementsByClassName('out-india')[0].style.display = 'none';
|
| Line 290... |
Line 292... |
| 290 |
var previousCard;
|
292 |
var previousCard;
|
| 291 |
function selectCard(e){
|
293 |
function selectCard(e){
|
| 292 |
debugger;
|
294 |
debugger;
|
| 293 |
var Id = e.currentTarget.id;
|
295 |
var Id = e.currentTarget.id;
|
| 294 |
if(previousCard == undefined){
|
296 |
if(previousCard == undefined){
|
| 295 |
document.getElementById(Id).className = 'selected';
|
297 |
e.currentTarget.className = 'selected';
|
| 296 |
}
|
298 |
}
|
| 297 |
else if(previousCard != undefined){
|
299 |
else if(previousCard != undefined){
|
| 298 |
document.getElementById(previousCard).className = '';
|
300 |
previousCard.className = '';
|
| 299 |
document.getElementById(Id).className = 'selected';
|
301 |
e.currentTarget.className = 'selected';
|
| 300 |
}
|
302 |
}
|
| 301 |
document.getElementById('pay-credit').value = Id;
|
303 |
document.getElementById('pay-credit').value = Id;
|
| 302 |
previousCard = Id;
|
304 |
previousCard = e.currentTarget;
|
| 303 |
var title = e.currentTarget.getAttribute('data-parent');
|
305 |
var title = e.currentTarget.getAttribute('data-parent');
|
| 304 |
title = title+'-'+Id;
|
306 |
title = title+'-'+Id;
|
| 305 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
307 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
| 306 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
308 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
| 307 |
}
|
309 |
}
|
| Line 309... |
Line 311... |
| 309 |
var previousDebit;
|
311 |
var previousDebit;
|
| 310 |
function selectDebitCard(e){
|
312 |
function selectDebitCard(e){
|
| 311 |
debugger;
|
313 |
debugger;
|
| 312 |
var Id = e.currentTarget.id;
|
314 |
var Id = e.currentTarget.id;
|
| 313 |
if(previousDebit == undefined){
|
315 |
if(previousDebit == undefined){
|
| 314 |
document.getElementById(Id).className = 'selected';
|
316 |
e.currentTarget.className = 'selected';
|
| 315 |
}
|
317 |
}
|
| 316 |
else if(previousDebit != undefined){
|
318 |
else if(previousDebit != undefined){
|
| 317 |
document.getElementById(previousDebit).className = '';
|
319 |
previousDebit.className = '';
|
| 318 |
document.getElementById(Id).className = 'selected';
|
320 |
e.currentTarget.className = 'selected';
|
| 319 |
}
|
321 |
}
|
| 320 |
document.getElementById('pay-debit').value = Id;
|
322 |
document.getElementById('pay-debit').value = Id;
|
| 321 |
previousDebit = Id;
|
323 |
previousDebit = e.currentTarget;
|
| 322 |
var title = e.currentTarget.getAttribute('data-parent');
|
324 |
var title = e.currentTarget.getAttribute('data-parent');
|
| 323 |
title = title+'-'+Id;
|
325 |
title = title+'-'+Id;
|
| 324 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
326 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
| 325 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
327 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
| 326 |
}
|
328 |
}
|
| Line 328... |
Line 330... |
| 328 |
var previousCC;
|
330 |
var previousCC;
|
| 329 |
function selectCashCard(e){
|
331 |
function selectCashCard(e){
|
| 330 |
debugger;
|
332 |
debugger;
|
| 331 |
var Id = e.currentTarget.id;
|
333 |
var Id = e.currentTarget.id;
|
| 332 |
if(previousCC == undefined){
|
334 |
if(previousCC == undefined){
|
| 333 |
document.getElementById(Id).className = 'selected';
|
335 |
e.currentTarget.className = 'selected';
|
| 334 |
}
|
336 |
}
|
| 335 |
else if(previousCC != undefined){
|
337 |
else if(previousCC != undefined){
|
| 336 |
document.getElementById(previousCC).className = '';
|
338 |
previousCC.className = '';
|
| 337 |
document.getElementById(Id).className = 'selected';
|
339 |
e.currentTarget.className = 'selected';
|
| 338 |
}
|
340 |
}
|
| 339 |
document.getElementById('pay-cc').value = Id;
|
341 |
document.getElementById('pay-cc').value = Id;
|
| 340 |
previousCC = Id;
|
342 |
previousCC = e.currentTarget;
|
| 341 |
var title = e.currentTarget.getAttribute('data-parent');
|
343 |
var title = e.currentTarget.getAttribute('data-parent');
|
| 342 |
title = title+'-'+Id;
|
344 |
title = title+'-'+Id;
|
| 343 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
345 |
if(typeof _gaq != "undefined" && _gaq != null) {
|
| 344 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
346 |
_gaq.push(['_trackEvent', 'Payment Option', 'Payment option tab-payoption selected',title]);
|
| 345 |
}
|
347 |
}
|