// Text Blink EFX
var flashlinks=new Array()

function changelinkcolor(){
for (i=0; i< flashlinks.length; i++){
var flashtype=document.getElementById? flashlinks[i].getAttribute("flashtype")*1 : flashlinks[i].flashtype*1
var flashcolor=document.getElementById? flashlinks[i].getAttribute("flashcolor") : flashlinks[i].flashcolor
if (flashtype==0){
if (flashlinks[i].style.color!=flashcolor)
flashlinks[i].style.color=flashcolor
else
flashlinks[i].style.color=''
}
else if (flashtype==1){
if (flashlinks[i].style.backgroundColor!=flashcolor)
flashlinks[i].style.backgroundColor=flashcolor
else
flashlinks[i].style.backgroundColor=''
}
}
}

function init(){
var i=0
if (document.all){
while (eval("document.all.flashlink"+i)!=null){
flashlinks[i]= eval("document.all.flashlink"+i)
i++
} 
}
else if (document.getElementById){
while (document.getElementById("flashlink"+i)!=null){
flashlinks[i]= document.getElementById("flashlink"+i)
i++
}
}
setInterval("changelinkcolor()", 400)
}

if (window.addEventListener)
window.addEventListener("load", init, false)
else if (window.attachEvent)
window.attachEvent("onload", init)
else if (document.all)
window.onload=init
// End Text Blink EFX

function ExternalLinks(myLink)
{
	popup1=window.open(myLink,'_blank','');
	window.scroll(0,0);
}

function PrivacyPolicy()
{
	popup1=window.open('../AboutUs/Policy.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function OnlineCreditCard()
{
popup1=window.open('../../JSP/CreditCard/creditCard.htm','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=650,height=600');
}


function PrivacyPolicy_ar()
{
	popup1=window.open('../AboutUs/Policy_ar.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function OnlineTeleSale_En()
{
	popup1=window.open('../../JSP/TeleSale/TeleSaleEnquiry.jsp','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function OnlinePos_En()
{
	popup1=window.open('../../JSP/POS/pos.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function generalTermsCond()
{
	popup1=window.open('../../JSP/FinancialInstitutions/GenTermsConditionsView.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function generalTerms()
{
	popup1=window.open('../../JSP/FinancialInstitutions/GeneralTermsView.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function GeneralEnquiry_En()
{
	popup1=window.open('../../JSP/GeneralEnquiry/GeneralEnquiry_En.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function OnlineEnquiry_En()
{
	popup1=window.open('../../JSP/OnlineEnquiry/OnlineEnquiry_En.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function feedback()
{
	popup1=window.open('../../JSP/Feedback/feedback.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function ContactUs_En()
{
	popup1=window.open('../../JSP/ContactUs/ContactUs_En.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function Branches_En()
{
	popup1=window.open('../../JSP/Branches/Branches_En.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function CustomerCare_En()
{
	popup1=window.open('../../JSP/CustomerCare/CustomerCare_En.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function shareholderInfo()
{
	popup1=window.open('../../JSP/ShareholderInfo/ShareholderInfo.html','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function CareerApply()
{
	popup1=window.open('../../../irecruitment/Recruitment/regMain.jsp','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

function CareerLogin()
{
	popup1=window.open('../../../irecruitment/Recruitment/Login.jsp','_blank','alwaysraised=yes,scrollbars=yes,titlebar=no,top=' + (screen.height - 600)/2 + ',left=' + (screen.width - 700)/2 + ',width=700,height=600');
	window.scroll(0,0);
}

//.GIF images will still continue running on click with other links
function StayAnimated(idtag)
{
if (document.all && idtag != "") {document.images[idtag].src = document.images[idtag].src;}
}

//Web Based RB Outlook Client
function webMail()
  {
	popup1=window.open('https://mail.riyadbank.com','_blank','');
  }
 

//Date Stamp
function englishDate(){
		var dayArrayEn = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
			var monthArrayEn = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
		var englishDate;
		var dateEn = new Date();
		var thisDayEn=dayArrayEn[dateEn.getDay()];
		var thisdateEn=dateEn.getDate();
		var thisMonthEn=monthArrayEn[dateEn.getMonth()];
		var thisMonthNumEn=dateEn.getMonth()+1;
		var thisFullYearEn=String(dateEn.getFullYear());
		englishDate=(thisDayEn +', ' + thisdateEn + ' ' + thisMonthEn +', ' + thisFullYearEn);
		}

function doBkLink(link)
{
	window.location.href=link;
}


//Internal Link Shortcuts

	var link = new Array();

IslamicClassicMasterCard=1;
link[IslamicClassicMasterCard]= "../PersonalBanking/IslamicClassic.html";

IslamicGoldMasterCard=2;
link[IslamicGoldMasterCard]= "../PersonalBanking/IslamicGold.html";

Silver=3;
link[Silver]= "../PersonalBanking/Silver.html";

Gold=4;
link[Gold]= "../PersonalBanking/Gold.html";

Student=5;
link[Student]= "../PersonalBanking/Student.html";

Internet=6;
link[Internet]= "../PersonalBanking/Internet.html";

AlAtaaSilver=7;
link[AlAtaaSilver]= "../PersonalBanking/AlAtaaSilver.html";

AlAtaaGold=8;
link[AlAtaaGold]= "../PersonalBanking/AlAtaaGold.html";

Additional=9;
link[Additional]= "../PersonalBanking/Additional.html";

Purchasing=10;
link[Purchasing]= "../PersonalBanking/Purchasing.html";

Branches=11;
link[Branches]= "../AboutUs/Branches.html";

RiyadOnline=12;
link[RiyadOnline]= "../PersonalBanking/RiyadOnline.html";

RiyadLine=13;
link[RiyadLine]= "../PersonalBanking/RiyadLine.html";

RiyadMobile=14;
link[RiyadMobile]= "../PersonalBanking/RiyadMobile.html";

RiyadATM=15;
link[RiyadATM]= "../PersonalBanking/RiyadATM.html";

RiyadSMS=16;
link[RiyadSMS]= "../PersonalBanking/RiyadSMS.html";

StartAnAccount=17;
link[StartAnAccount]= "../PersonalBanking/StartAnAccount.html";

FinancialInstitutions=18;
link[FinancialInstitutions]= "../InternationalBanking/FinancialInstitutions.html";

OverseasBranches=19;
link[OverseasBranches]= "../InternationalBanking/OverseasBranches.html";

LondonBranch=20;
link[LondonBranch]= "../InternationalBanking/LondonBranch.html";

HoustonAgency=21;
link[HoustonAgency]= "../InternationalBanking/HoustonAgency.html";

SingaporeOffice=22;
link[SingaporeOffice]= "../InternationalBanking/SingaporeOffice.html";

TreasuryInstructions=23;
link[TreasuryInstructions]= "../InternationalBanking/TreasuryInstructions.html";

CommercialInstructions=24;
link[CommercialInstructions]= "../InternationalBanking/CommercialInstructions.html";

CreditReports=25;
link[CreditReports]= "../InternationalBanking/CreditReports.html";

GeneralEnquiry =26;
link[GeneralEnquiry ]= "../InternationalBanking/GeneralEnquiry.html";

EmploymentBenefits=27;
link[EmploymentBenefits ]= "../Careers/EmploymentBenefits.html";

JoinOurTeam=28;
link[JoinOurTeam]= "../Careers/JoinOurTeam.html";

Vacancies=29;
link[Vacancies]= "../Careers/Vacancies.html";

ApplyNow=30;
link[ApplyNow]= "../Careers/ApplyNow.html";

CustomersObservations=31;
link[CustomersObservations]= "../CustomerCare/CustomersObservations.html";

ForeignExchange=32;
link[ForeignExchange]= "../Treasury/ForeignExchange.html";

DepositsHedging=33;
link[DepositsHedging]= "../Treasury/DepositsHedging.html";

DevelopmentBonds=34;
link[DevelopmentBonds]= "../Treasury/SaudiDevelopmentBonds.html";

RemoteBanking=35;
link[RemoteBanking]= "../PersonalBanking/RemoteBanking.html";

Kafala=36;
link[Kafala]= "../BusinessBanking/Kafala.html";

Current_Account=37;
link[Current_Account]= "../PersonalBanking/CurrentAccount.html";

Savings_Account=38;
link[Savings_Account]= "../PersonalBanking/SavingsAccount.html";

Time_Deposit=39;
link[Time_Deposit]= "../PersonalBanking/TimeDeposit.html";

RiyadNet=40;
link[RiyadNet]= "../PersonalBanking/RiyadNet.html";

Credit_Cards=41;
link[Credit_Cards]= "../PersonalBanking/CreditCards.html";

Loans_and_Borrowings=42;
link[Loans_and_Borrowings]= "../PersonalBanking/BorrowingMoney.html";

Golden_Services=43;
link[Golden_Services]= "../PersonalBanking/GoldenServices.html";

Ladies_Banking=44;
link[Ladies_Banking]= "../PersonalBanking/LadiesBanking.html";

Business_Banking=45;
link[Business_Banking]= "../CorporateBanking/CorporateBanking.html";

Telephone=46;
link[Telephone]= "../PersonalBanking/TelephoneBill.html";

Electric=47;
link[Electric]= "../PersonalBanking/ElectricBill.html";

Water=48;
link[Water]= "../PersonalBanking/WaterBill.html";

TrafficFine=49;
link[TrafficFine]= "../PersonalBanking/SettlementForTrafficFines.html";

TravellerCheque=50;
link[TravellerCheque]= "../PersonalBanking/TravellersCheques.html";

ATM_DebitCards=51;
link[ATM_DebitCards]= "../PersonalBanking/ATMDebitCards.html";

Financing=52;
link[Financing]= "../PersonalBanking/Financing.html";

InvestmentSolutions=53;
link[InvestmentSolutions]= "../PersonalBanking/InvestmentSolutions.html";

InternationalContactUs=54;
link[InternationalContactUs]= "../InternationalBanking/ContactUs.html";

Islamic_Banking=55;
link[Islamic_Banking]= "../PersonalBanking/IslamicBanking.html";

	
function link2Page(PageID) {
		window.location.href = link[PageID];
	}	
	
function open_new_winform(url,winName)
{
   var newWindow;
   newWindow = window.open(url,'newWin','toolbars=yes,titlebars=no,scrollbars=yes,resizable=yes,width=800,height=500,top=50,left=50');
}
