//this script to provide auto numbering on credit payee corporation thru maybank2u.com.
//by Saiful Azham Abdul Aziz
//updated by Yap Chin Chen, 12 September 2002
//copyright Maybank2u.com

//list of payee corporations that accept credit cards
var ccpayee = new Array(
						
"AirZed Networks Sdn Bhd#1#1",
"Al-Ameen Serve Holdings Sdn Bhd#1#1",
"AtlasONE Malaysia Sdn Bhd#1#1",
"AAM (Persatuan Automobil Malaysia) #1#1",
"Axa Affin Assurance Berhad#1#1",
"Bonuskad Loyalty Sdn Bhd#1#1",
"BP Clinical Lab#1#1",
"Brunsfield Riverview Serviced Apartment#1#1",
"Brunsfield Cityview Shops & Apartments#1#1",
//"Brunsfield Properties Management Sdn Bhd#1#1",
"Capital Dynamics Sdn Bhd#1#1",
"Cari Internet Sdn Bhd#1#1",
"Commerce Dot Com Sdn Bhd#1#1",
//"Celcom Prepaid<font size=3 class=blue><B>*</B></font>#1#0",
"Dewan Bandaraya Kuala Lumpur#1#1",
//"DIGI (Team Solutions S/B)#1#1",
//"DiGi Prepaid Plus<font size=3 class=blue><B>*</B></font>#1#0",
"eServices - JPJ#1#1",
"eServices - PDRM#1#1",
"Extiva Communications Sdn Bhd#1#0",
"Gas Malaysia#1#1",
"Glenmarie Golf & Country Club#1#1",
//"Gold Information Systems Sdn Bhd#1#1",
"Heritage Grand Vacation Club Bhd#1#1",
"Hiley Online#1#1",
"Institut Jantung Negara#1#1",
"Ionnex Sdn Bhd#1#1",
"Jabatan Air Sabah#1#1",
"Jabatan Bekalan Air Kedah#1#1",
"Jaring Communications Sdn Bhd#1#1",
"Kelab Golf Diraja Selangor#1#1",
"Kelab Golf Sarawak#1#1",
//"Kondoservis Sdn Bhd #1#1",
"KL Infrastructure Univ. College#1#1",
"Kuala Lumpur Golf & Country Club#1#1",
"Lelong.com.my#1#1",
"Lembaga Jurutera Malaysia#1#1",
"MAA Medicare Kidney (Charity Fund)#1#1",
"Macro Lynx Sdn Bhd#1#1",
"Majlis Bandaraya Shah Alam#1#1",
"Majlis Daerah Keningau#1#1",
"Majlis Daerah Kinta Selatan#1#1",
"Majlis Daerah Kulai Johor#1#0",
"Majlis Daerah Segamat#1#0",
"Majlis Perbandaran Alor Gajah#1#1",
"Majlis Perbandaran Batu Pahat#1#0",
"Majlis Perbandaran Kajang#1#1",
"Majlis Perbandaran Kangar#1#1",
"Majlis Perbandaran Klang#1#1",
"Majlis Perbandaran Kota Bharu#1#1",
"Majlis Perbandaran Kuantan#1#1",
"Majlis Perbandaran Manjung#1#1",
"Majlis Perbandaran Muar#1#1",
"Majlis Perbandaran Selayang#1#0",
"Majlis Perbandaran Sepang#1#0",
"Majlis Perbandaran Subang Jaya#1#1",
"Majlis Perbandaran Teluk Intan#1#1",
"Majlis Perbandaran Temerloh#1#1",
"MAICSA#1#1",
"MAKNA#1#1",
//"Malaysian Charity Draw#1#1",
//"Malaysia Charity Draw II#1#1",
"Malaysian Institute of Accountants (MIA)#1#1",
"MCIS Zurich Insurance Berhad#1#1",
//"Mobalex Malaysia Sdn Bhd#1#1",
"NS Cashpoint#1#0",
//"Mobile88.com#1#1",
"Pantai Hillpark Phase 1#1#1",
"Pantai Hillpark Phase 2#1#1",
"Pantai Hillpark Phase 3#1#1",
"Pantai Hillpark Phase 4#1#1",
"Pantai Hillpark Phase 5#1#1",
"Parkson Corporation Sdn Bhd#1#1",
"PayBills Malaysia#1#1",
"PBT Hi-Tech Kulim#1#1",
"Perfisio Solutions Sdn Bhd#1#1",
"P1.Com Sdn Bhd#1#1",
"Sentul Raya - Sang Suria Condo#1#1",
"Seri Maya#1#1",
"Sony Style#1#1",
"Sri Damansara Club Bhd#1#1",
"Sunway Cita Damansara#1#1",
"Sunway City - Lagoonview Condo#1#1",
"Sunway City - Muhibbah Permai (Subang Square)#1#1",
"Sunway City - Palmville Condo#1#1",
"Sunway Damansara Sdn Bhd - Sunway Sutera Condo#1#1",
"Sunway Kiara Hills#1#1",
"Sunway Lagoon#1#1",
"Sunway Laman Impian#1#1",
"Sunway Monash Condo#1#1",
"Sunway Opal Damansara#1#1",
"Sunway Pyramid Sdn Bhd#1#1",
"Sunway Resort Suite#1#1",
"Syarikat SESCO Berhad (SNT)#1#1",
"Takaful Ikhlas - General#1#1",
"Takaful Ikhlas - Family#1#1",
"Telekom Malaysia Berhad#1#0",
"TM iTalk#1#0",
"TM Net Hotspot (KAT) - 1 month Unlimited Access Card#1#0",
"TM Net Prepaid One Card, Starter (KAT)#1#0",
"TM Net Prepaid One Card, Reload (KAT)#1#0",
"TM Net Sdn Bhd #1#1",
"TM Net Reload (KAT)#1#0",
//"TM Ring Ring#1#0",
"Traveleasi .Com#1#1",
"True Wealth Sdn Bhd#1#1",
"Wirazone Sdn Bhd#1#1",
"www.rilek.com.my - JPJ#1#1",
"www.rilek.com.my - PDRM#1#1"
)

//list of ib payee corporation
var ccpayee_own = new Array(
"21st Century Products Sdn Bhd#www.21stcentury.com.my",
"aastha internetworks corp sdn bhd#www.aastha.com.my",
"Airzed Networks Sdn Bhd#www.airzed.com",
"Allied Ticketing Sdn Bhd#www.axcesstickets.com",
"Amanah Raya Berhad - Educare#www.arb.com.my",
"Amanah Raya Berhad - Wasiat#www.arb.com.my",
"Asia Bureau.com#www.fantasyfootball.com.my<br>&nbsp;www.umrah.com",
"AsiaTravelmart.com#www.asiatravelmart.com",
"(Aixin) Sail Crest Marketing#www.aixin.com.my",
"Be-P Pharmacy Sdn Bhd#www.bppharmacy.com",
"Brunsfield Properties Management Sdn Bhd#www.brunsfield.com.my",
//del_020606 "Castle Technology And System Sdn Bhd#www.castle-etv.com",
"Cekap Ekspres#www.theticketing.com",
"Cepat Ekspres#www.theticketing.com",
"CIMB Securities Sdn Bhd#www.itradecimb.com",
"Dawama.com#www.dawama.com",
//del_020606 "Dialog Mall Sdn Bhd#www.dialogmall.com.my",
"DotCC Sdn Bhd#www.web.cc",
//del_020606 "Ehsan Ria (Komputer Pintar)#www.pintar.com.my",
//del_020606 "GAMEMASTER TC#www.gamemaster.tc",
"Getronics Solutions#www.getronics.com",
"Global Movie & Music Catalogue Sdn Bhd#www.mypressto.com",
"HLG Securities Sdn Bhd#www.hlgebiz.com",
"Informatics Resource Corp. Sdn Bhd#www.informatics.edu.my",
"IOI Building Services Sdn Bhd#www.ioigroup.com",
"Kakaktua.com#www.kakaktua.com",
"KAT Technologies Sdn Bhd<BR>"+
  "<table border=0 cellpadding=0 cellspacing=0><tr><td><span class='selectText'>"+
  "<select name='kat' class=passage>"+
  "<option selected>View Payee Corporations</option>"+
  "<option>- Celcom Prepaid</option>"+
  "<option>- TM Net Hotspot - 1 month unlimited Access Cards</option>"+
  "<option>- TM Net Hotspot - 3 months unlimited Access Cards</option>"+
  "<option>- TM Net Hypptalk, Reload</option>"+
  "<option>- TM Net Hypptalk, Starter</option>"+
  "<option>- TM Net Prepaid One Card, Reload</option>"+
  "<option>- TM Net Prepaid One Card, Starter</option>"+
  "<option>- TM Net, Reload</option>"+
  "<option>- TM Net, Starter</option>"+
  "</select>"+
  "</span></td></tr></table>"+
  "#www.katprepaid.com",
"KL City Securities SB#www.klcs.com.my",
"KWIKPAY (Malaysia) Sdn Bhd#www.kwikpay.com.my",
"Lelong.com.my#www.lelong.com.my",
"malaysiakini.com#www.malaysiakini.com",
"Megabuy.com.my#www.megabuy.com.my",
"Mobile88.com Sdn Bhd#www.mobile88.com",
"Multimedia University (MMU) Fees#www.mmu.edu.com.my",
"NS Cashpoint Sdn Bhd#www.minicar.com.my<br>&nbsp;www.fragranceonline.com.my",
"Pan Malaysian Pools Sdn Bhd#www.pmp.com.my",
"Parkson Corporation#www.parkson.com.my",
"Propertyzoom.com Sdn Bhd#www.propertyzoom.com",
"QuickNetCom (M) Sdn Bhd#www.bluezone.com.my",
"Resorts World Berhad Reservation#www.genting.com.my",
"SchoolTo You.com#www.schooltoyou.com",
"Signal Point Sdn Bhd#www.invest.com.my",
"Silicon Navigator#www.silicon.net.my",
"SiliconNet Technologies Sdn Bhd<BR>"+
  "<table border=0 cellpadding=0 cellspacing=0><tr><td><span class='selectText'>"+
  "<select name='siliconnet' class=passage>"+
  "<option selected>View Payee Corporations</option>"+
  "<option>- Allianz General Insurance</option>"+
  "<option>- Allianz Life Assurance</option>"+
  "<option>- AXA Affin Assurance</option>"+
  "<option>- Bintulu Development Authority</option>"+
  "<option>- Dewan Bandaraya Kuching Utara</option>"+
  "<option>- Hong Leong Assurance</option>"+
  "<option>- Kuching Water Board</option>"+
  "<option>- Lembaga Air Kawasan Utara</option>"+
  "<option>- Malaysian Assurance Alliance Berhad</option>"+
  "<option>- Majlis Bandaraya Kawasan Selatan</option>"+
  "<option>- Majlis Daerah Betong</option>"+
  "<option>- Majlis Daerah Kapit</option>"+
  "<option>- Majlis Daerah Lawas</option>"+
  "<option>- Majlis Daerah Marudi</option>"+
  "<option>- Majlis Daerah Matu-Daro</option>"+
  "<option>- Majlis Daerah Sri Aman</option>"+
  "<option>- Miri Municipal Council</option>"+
  "<option>- Mui Continental Insurance</option>"+
  "<option>- Sarawak Club</option>"+
  "<option>- Sarawak Electricity</option>"+
  "<option>- Sibu Municipal Council</option>"+
  "<option>- Sibu Water Board</option>"+
  "<option>- Silicon Jaring Top Up</option>"+
  "<option>- Telekom Malaysia</option>"+
  "<option>- Telekom TMnet</option>"+
  "</select>"+
  "</span></td></tr></table>"+
  "#www.paybillsmalaysia.com",
"Sunway Lagoon Theme Park#www.sunway.com.my",
"Sunway Pyramid Sdn Bhd#www.sunway.com.my",
"Sutera Liner (Ekspres Sutera)#www.theticketing.com",
"Syarikat Takaful Malaysia - Vehicle Registration#www.takaful-malaysia.com.my",
"Tenaga Layar (Ekspres Tenaga)#www.theticketing.com",
"Tenaga Nasional Berhad (e-services)#www.tnb.com.my",
"Uni. Asia General Insurance Berhad#www.sea.com.my",
"Utama Ekspres Sdn Bhd#www.theticketing.com",
"Webserver.com.my#www.webserver.com.my",
"www.whatdevice.com (Multimedia Prospect Sdn Bhd)#www.mpsb.net"
)

//list of non-ib payee corporation
//combine ib & non-ib together, ref no. 579/2002/8
var ccpayee2 = ccpayee;

//list of eStanding Instructions
var ccpayee_esi = new Array(
"Allianz Life",
"American International Assurance Company Ltd (AIA)",
"Courts Mammoth Berhad",
"Great Eastern Life Assurance (M) Berhad",
"Hong Leong Assurance Berhad",
"ING Insurance Berhad",
"Kelab Golf Diraja Selangor",
"Kelab Golf Sarawak",
"Kuala Lumpur Golf & Country Club Bhd",
"MAA- Medicare Kidney (Charity Fund)",
"MCIS Zurich Insurance Berhad",
"Majlis Perbandaran Ampang Jaya",
"Majlis Perbandaran Kota Bharu",
"Malaysian Assurance Alliance Berhad",
"Malaysian National Insurance  Berhad",
"Manulife Insurance (Malaysia) Berhad",
"Maybank ASN/ASB Loan",
"Maybank Interest Free Loan",
"Maybank Maxi Home Loan",
"Maybank Term Loan",
"PerdanaFinancial.com",
"Sarawak Club, Kuching",
"Sime AXA Assurance Berhad",
"Sunway Lagoon Club Berhad",
"Syarikat Takaful Malaysia"
//"John Hancock Life Insurance (M) Berhad",
//"Mayban Life Assurance Berhad</B><BR><span class=black>(Temporarily unavailable for eSI creation)</span><B>",
//"MCIS Zurich Insurance Berhad",
//"TMnet (Telekom Malaysia Berhad)"
)

wheretop=50;
whereleft=100;
windowheight=80+(16*ccpayee.length)+45; //80=header, 45=footer
windowheight_own=65+(16*ccpayee_own.length)+15; //65=header, 15=footer
windowheight_esi=55+(16*ccpayee_esi.length)+15; //55=header, 15=footer
windowwidth=600;
windowwidth_esi=400;
maxheight=400;

function bills()
{
	if(windowheight < maxheight) {
	 windowone=window.open('/consumer/online_bill_payment/bills_loc.html','bills','scrollbars=no,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth+',height='+ windowheight +',top='+wheretop+',left='+whereleft);
	} else {
	 windowone=window.open('/consumer/online_bill_payment/bills_loc.html','bills','scrollbars=yes,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth+',height='+ maxheight +',top='+wheretop+',left='+whereleft);
	}
}

function bills_own()
{
	if(windowheight_own < maxheight) {
	 windowone=window.open('/consumer/online_bill_payment/bills_loc_own.html','bills_own','scrollbars=no,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth+',height='+ windowheight_own +',top='+wheretop+',left='+whereleft);
	} else {
	 windowone=window.open('/consumer/online_bill_payment/bills_loc_own.html','bills_own','scrollbars=yes,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth+',height='+ maxheight +',top='+wheretop+',left='+whereleft);
	}
}

function bills_esi()
{
	if(windowheight_esi < maxheight) {
	 windowone=window.open('/consumer/online_banking/esi_payee.html','esi_payee','scrollbars=no,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth_esi+',height='+ windowheight_esi +',top='+wheretop+',left='+whereleft);
	} else {
	 windowone=window.open('/consumer/online_banking/esi_payee.html','esi_payee','scrollbars=yes,status=1,toolbar=no,personalbar=no,menubar=no,locationbar=no,resizable=no,width='+windowwidth_esi+',height='+ maxheight +',top='+wheretop+',left='+whereleft);
	}
}

function bills2()
{
	bills();
}

function ccnumber()
{
	document.writeln(ccpayee.length) ;
}

function ccnumber2()
{
	document.writeln(ccpayee2.length) ;
}

function ccnumber_own()
{
	document.writeln("123") ;
}

function titleccnumber()
{
	document.writeln('<title>'+ccpayee.length+' Types of Bills</title>') ;
}

function titleccnumber2()
{
	document.writeln('<title>'+ccpayee2.length+' Types of Bills</title>') ;
}

function titleccnumber_own()
{
	document.writeln('<title>'+ccpayee_own.length+' Types of Bills</title>') ;
}

function titleccnumber_esi()
{
	document.writeln('<title>'+ccpayee_esi.length+' Payee Corporations That Accept Payment Through eStanding Instruction</title>') ;
}

//function to set the color...
function setcolor(colour)
{
	if (colour %2 == 0)
	return 'bgcolor=#cef0ff';
	else if (colour %2 == 1)
	return 'bgcolor=#ffffff';
}

//table to display list of ib payee corporation
function cclist()
{
	document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100%>');
	document.writeln('<tr><td class=title align=center><span class=blue><B>Payee Corporations That Accept Credit Cards (VISA and MasterCard)</B></span></td></tr>');
	document.writeln('<tr><td class=passage align=left><BR>&nbsp;<B>Pay your bills to the following payee corporations by credit cards which are ticked (<font face=wingdings size=2>&#252;</font>).</B></td></tr>');
	document.writeln('</table>');
	document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100% bgcolor=#000000><tr><td>')
	document.writeln('<table border=0 cellpadding=0 cellspacing=1 width=100%>')
	document.writeln('<tr bgcolor=#006393 align=center><td class=passage><font color=#FFFFFF><B>No</B></font></td><td class=passage><font color=#FFFFFF><B>Payee Corporation</B></font></td><td class=passage><font color=#FFFFFF><B>Maybank Credit Cards</B></font></td><td class=passage><font color=#FFFFFF><B>Other Credit Cards</B></font></td></tr>')
	for (i=0; i<ccpayee.length; i++) {
	 document.writeln('<tr valign=top '+setcolor(i)+'>')
	 document.writeln('<td class=passage><span class=blue>&nbsp;<B>'+(i+1)+'</B></span></td>');
	 ccpayee[i] = ccpayee[i].split("#");
 	 document.writeln('<td class=passage><span class=blue><B>&nbsp;'+ccpayee[i][0]+'</B></span></td>');
	 if (ccpayee[i][1]=='1') document.writeln('<td align=center class=blue><font face=wingdings size=2><B>&#252;</B></font></td>');
	 else document.writeln('<td align=center class=blue><font face=wingdings size=2><B>&#251;</B></font></td>');
	 if (ccpayee[i][2]=='1') document.writeln('<td align=center class=blue><font face=wingdings size=2><B>&#252;</B></font></td>');
	 else document.writeln('<td align=center class=blue><font face=wingdings size=2><B>&#251;</B></font></td>');
	 document.writeln('</tr>')
	}
	document.writeln('</table>')
	document.writeln('</td></tr></table>')
	//document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100%>');
	//document.writeln('<tr><td class=passage align=left><BR>&nbsp;<font size=3 class=blue><B>*</B></font> Celcom Prepaid & DiGi Prepaid Plus are only available for Internet Banking users at "Mobile Prepaid" under <BR>&nbsp;&nbsp;&nbsp;&nbsp;"Online Bill Payment".<BR>&nbsp;</td></tr>');
	//document.writeln('</table>');
}

//table to display list of payee corporations that only accept payment at their web sites.
function cclist_own()
{
	document.writeln('<form><table border=0 cellpadding=0 cellspacing=0 width=100%>');
	document.writeln('<tr><td class=title align=center><span class=blue><B>Payee Corporations That Accept Payment Only At Their Web Sites</B></span></td></tr>');
	document.writeln('<tr><td class=passage align=left><BR>&nbsp;<B>Payment to the following payee corporations can only be done at their web sites.</B></td></tr>');
	document.writeln('</table>');
	document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100% bgcolor=#000000><tr><td>')
	document.writeln('<table border=0 cellpadding=0 cellspacing=1 width=100%>')
	document.writeln('<tr bgcolor=#006393 align=center><td class=passage><font color=#FFFFFF><B>No</B></font></td><td class=passage><font color=#FFFFFF><B>Payee Corporation</B></font></td><td class=passage><font color=#FFFFFF><B>Web Site</B></font></td></tr>')
	for (i=0; i<ccpayee_own.length; i++) {
	 document.writeln('<tr valign=top '+setcolor(i)+'>')
	 document.writeln('<td class=passage><span class=blue>&nbsp;<B>'+(i+1)+'</B></span></td>');
	 ccpayee_own[i] = ccpayee_own[i].split("#");
 	 document.writeln('<td class=passage><span class=blue><B>&nbsp;'+ccpayee_own[i][0]+'</B></span></td>');
 	 document.writeln('<td class=passage><span class=blue><B>&nbsp;'+ccpayee_own[i][1]+'</B></span></td>');
	 document.writeln('</tr>')
	}
	document.writeln('</table>')
	document.writeln('</td></tr></table></form>')
}

//table to display list of payee corporations that accept payment through estanding instruction.
function cclist_esi()
{
	document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100%>');
	document.writeln('<tr><td class=title align=center><span class=blue><B>Payee Corporations That Accept Payment<BR>Through eStanding Instruction</B></span></td></tr>');
	document.writeln('<tr><td class=passage align=left>&nbsp;</td></tr>');
	document.writeln('</table>');
	document.writeln('<table border=0 cellpadding=0 cellspacing=0 width=100% bgcolor=#000000><tr><td>')
	document.writeln('<table border=0 cellpadding=0 cellspacing=1 width=100%>')
	document.writeln('<tr bgcolor=#006393 align=center><td class=passage><font color=#FFFFFF><B>No</B></font></td><td class=passage><font color=#FFFFFF><B>Payee Corporation</B></font></td></tr>')
	for (i=0; i<ccpayee_esi.length; i++) {
	 document.writeln('<tr valign=top '+setcolor(i)+'>')
	 document.writeln('<td class=passage><span class=blue>&nbsp;<B>'+(i+1)+'</B></span></td>');
 	 document.writeln('<td class=passage><span class=blue><B>&nbsp;'+ccpayee_esi[i]+'</B></span></td>');
	 document.writeln('</tr>')
	}
	document.writeln('</table>')
	document.writeln('</td></tr></table>')
}

//table to display list of non-ib payee corporation
function cclist2()
{
	cclist();
}

var payeecorp = 613;

function totalpayee()
{
	document.writeln(payeecorp);
}
