function checkLinkId(){
if(!confirm('[!] Third party web sites may have privacy and security policies different from Harris. Links to other web sites do not imply the endorsement or approval of such web sites. Please review the privacy and security policies of web sites reached through links from Harris web sites.')){
return false;
}
else{
return true;
}
}


//************************** EVENT CAPTURE AND BUBBLING CODE BEGINS *************************************//
function shouldCancelEvent(cancelElementId) {
	try {
	if(cancelElementId == window.event.srcElement.id) {
		window.event.cancelBubble = true;
		return true;
	}
	} catch (e) {}
	return false;
}
//*******************************************************************************************************//
//************************************* PRINT METHOD  BEGINS***************************************************//
function callPrint()
{	
	var winPrint = window.open('','','left=130,top=50,width=600,height=600,toolbar=0,scrollbars=1,status=0');
	var bradCrumb = document.getElementById('breadcrumb');
	var mainContent = document.getElementById('mainBodyContent'); 
	
	winPrint.document.write('<html><head><link href="/vgn/hpbm/css/default.css" rel="stylesheet" type="text/css" media="all" /><style type="text/css"><!--#divMapHPB {display: none;}--></style></head><body style="font-size:14px"><table style="width: 980px" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><table width="980" border="0" cellspacing="0" cellpadding="0"><tr><td><table border="0" cellspacing="0" cellpadding="0"><tr><td style="width: 25px">&nbsp;</td><td align="left" style="width: 496px"><img src="/vgn/hpbm/assets/images/prefix_harrisprivatebanklogo.gif" alt="Harris Private Banking Logo" width="218" height="84"border="0" /></td><td align="left" valign="bottom" style="width: 459px">&nbsp;</td></tr></table></td></tr><tr><td>&nbsp;</td></tr></table></td></tr><tr><td style="height: 22px"><table width="980" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" style="width: 760px"><table width="760" border="0" cellspacing="0" cellpadding="0"><tr><td style="width: 24px">&nbsp;</td><td style="width: 736px">&nbsp;</td></tr><tr><td style="width: 24px">&nbsp;</td><td style="width: 736px"><table width="736" border="0" cellspacing="0" cellpadding="0"><tr><td style="width: 520px" class="sidefont" id="breadcrumb">'+bradCrumb.innerHTML+'</td><td align="right" style="width: 216px">&nbsp;</td></tr></table></td></tr><tr><td style="width: 24px">&nbsp;</td><td style="width: 736px;"><table width="736" border="0" cellspacing="0" cellpadding="0"><tr><td style="width:541px" ><table style="width:541px" border="0" cellspacing="0" cellpadding="0"><tr><td style="background: url(/vgn/hpbm/assets/images/prefix_horzimgae.gif) repeat-x bottom">&nbsp;</td></tr></table></td><td style="width:195px" >&nbsp;</td></tr></table></td></tr><tr><td style="width: 24px">&nbsp;</td><td style="width: 736px">&nbsp;</td></tr><tr><td style="width: 24px">&nbsp;</td><td style="width: 736px"><table width="736" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" style="width: 541px"><div id="mainBodyContent">'+mainContent.innerHTML+'</div></td><td style="width: 18px">&nbsp;</td><td valign="top" style="width: 177px">&nbsp;</td></tr></table></td></tr></table></td></tr></table></td></tr><tr><td valign="top"></td></tr><tr><td>&nbsp;</td></tr></table></body></html>');
	
	winPrint.document.close();
	winPrint.focus();
	winPrint.print();
	//window.setTimeout(child.window.close(),400);
	winPrint.close();
}
//************************************* PRINT METHOD  ENDSS***************************************************//

//************************** FONT INCREASE DECREASE CODE BEGINS *************************************//
var min=11;
var max=16;

document.getElementsByClassName = function(clsName){
    var retVal = new Array();
    var elements = document.getElementsByTagName("*");
    for(var i = 0;i < elements.length;i++){
        if(elements[i].className.indexOf(" ") >= 0){
            var classes = elements[i].className.split(" ");
            for(var j = 0;j < classes.length;j++){
                if(classes[j] == clsName)
                    retVal.push(elements[i]);
            }
        }
        else if(elements[i].className == clsName)
            retVal.push(elements[i]);
    }
    return retVal;
}


function increaseFontSize() {
   var p = document.getElementsByClassName('fontmax-min');
   var szName = getCookie("fontSize");
  
   for(i=0;i<p.length;i++) {
     if(szName){
       var s = parseInt(szName);
      
     }
      else if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
      if(navigator.appName!='Netscape'){
           setCookie("fontSize", s,'/');
      }
      else
           setCookieFF("fontSize", s);

   }
}

function decreaseFontSize() {
   var p = document.getElementsByClassName('fontmax-min');
   var szName = getCookie("fontSize");
   for(i=0;i<p.length;i++) {
      if(szName){
          var s = parseInt(szName);
       }
       else if(p[i].style.fontSize) {
               var s = parseInt(p[i].style.fontSize.replace("px",""));
             } else {
                  var s = 12;
             }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px";
      if(navigator.appName!='Netscape'){
      setCookie("fontSize", s,'/');
       }
       else
       setCookieFF("fontSize", s);
       }
}


function setCookie(szName, szValue,path)
{
 
 
  
var expiration_date = new Date ();
	expiration_date . setYear (expiration_date . getYear () + 1);
	expiration_date = expiration_date . toGMTString ();
	

 	var szCookieText = 	   escape(szName) + '=' + escape(szValue)+
		"; expires=" + expiration_date;
		
	if (path != null)
		szCookieText += "; path=" + path;
	
	document.cookie = szCookieText;
	
}





function setCookieFF(szName, szValue)
{
      deleteCookie(szName);
      var path = '/';
 	var szCookieText = 	   escape(szName) + '=' + escape(szValue);
	szCookieText += "; path=" + path;
	document.cookie = szCookieText;
}




function getCookie(szName)
{
 	var szValue =	  null;
	if(document.cookie)	   //only if exists
	{
       	var arr = 		  document.cookie.split((escape(szName) + '=')); 
       	if(2 <= arr.length)
       	{
           	var arr2 = 	   arr[1].split(';');
       		szValue  = 	   unescape(arr2[0]);
       	}
	}
	return szValue;
}


function deleteCookie(szName)
{
 	var tmp = 	  			 	 getCookie(szName);
	if(tmp) 
	{ setCookie(szName,tmp,(new Date(1))); }
}

function setFontSize(){
 var szName = getCookie("fontSize");
 var p = document.getElementsByClassName('fontmax-min');
 for(i=0;i<p.length;i++) {

if(szName !=null){

	p[i].style.fontSize = szName+"px"
	
}
else{
   p[i].style.fontSize = "12px"

  
}
}  

}

//************************** FONT INCREASE DECREASE CODE ENDS *************************************//




//************************** SWAPPING TABS BEGINS *****************************//
//*************************** DIV SWAPPING BEGINS *****************************//
var homeDivs = ["wealthadvisory","investmentadvisory","privatebanking","trustandestates","familyoffice","specialized"];
var aboutusDivs = ["ourObective","ourIntegration","ourTechnology"];
var solutionDivs = ["typeFamily","integrated"];
var calDivs = ["thismo","nextmo","twomo"];
function showDiv(page,divId){
      var divArray = findDivArray(page);
      for(var i=0;i<divArray.length;i++){

        if(divId == divArray[i]){
        	document.getElementById(divArray[i]).style.display = 'block';
        }
        else{
            document.getElementById(divArray[i]).style.display = 'none';
        }
      }
}


function showDefaultDiv(page){
	var divArray = findDivArray(page);
      for(var i=0;i<divArray.length;i++){

        if(i == 0){
        	document.getElementById(divArray[i]).style.display = 'block';
        }
        else{
            document.getElementById(divArray[i]).style.display = 'none';
        }
      }

}

function findDivArray(page){
	var divArray = new Array();
	if(page == "home"){
           divArray = homeDivs ;  
      }
      else if(page == "aboutus"){

        divArray = aboutusDivs ;
      }
      else if(page == "solution")
      {
        divArray = solutionDivs;
      }
	  else if(page == "cal")
      {
        divArray = calDivs;
      }
return divArray;

}



function displayChosenDiv(arrDivIds, chosenDivId) {
	var chosenDiv = document.getElementById(chosenDivId);
	if(chosenDiv == null) {
		return;
	}
	chosenDiv.style.display = 'block';
	for(var i=0;i < arrDivIds.length;i++){
		if(arrDivIds[i] != chosenDivId) {
			var arrDivElement = document.getElementById(arrDivIds[i]);
			if(arrDivElement != null) {
				arrDivElement.style.display = 'none';
			}
		} 
	}	
}

//************************** DIV SWAPPING CODE ENDS *************************//
//************************** IMAGE SWAPPING BEGINS **************************//
var homeImages = ["prefix_dn_investmentadvertisory","prefix_dn_wealthadvisoy","prefix_dn_privatebanking","prefix_dn_trustestates","prefix_dn_familyoffice","prefix_dn_specializedservices"];
var homeImageIds = ["investmentadvertisory","Image30","Image31","Image32","Image33","Image34"];

var calImages = ["thismo","nextmo","twomo"];
var calImageIds = ["ImageTM","ImageNM","Image2M"];


function changeImage(img,tab){

  var menuImageIds = new Array();
  var menuImages = new Array();
	
	if(tab == "home"){
		menuImageIds = homeImageIds ;
	    menuImages = homeImages ;
	}
	else if(tab == "cal"){
		menuImageIds = calImageIds ;
	    menuImages = calImages ;
	}
		


  
  for(var i=0;i<menuImageIds.length;i++){
    var menuImage = document.getElementById(menuImageIds[i]);
    
    if(img == menuImage.name){
      
      if(tab == "home"){

        menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";
        menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";
	}
	else if(tab == "cal"){

        menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";
        menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";
	}
	else{
  		menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";
            menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+"_active.gif";

	}
         
   }
   else{
 	if(tab== "home"){
    		menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";
   		 menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";
	}
	else if(tab == "cal"){
    		menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";
   		 menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";
	}
	else{
		menuImage.oSrc="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";
    		menuImage.src="/vgn/hpbm/assets/images/"+menuImages[i]+".gif";

	}
   }
 }
}

function swapImage(id,src,tab){
        var imgId = document.getElementById(id);
        
        if(checkActive(id)==true){
         }
        else{
       
         if(tab == "home"){
		imgId.oSrc ="/vgn/hpbm/assets/images/"+src+"_over.gif";
         	imgId.src ="/vgn/hpbm/assets/images/"+src+"_over.gif";

          }
		  else if(tab == "cal"){
		imgId.oSrc ="/vgn/hpbm/assets/images/"+src+"_over.gif";
         	imgId.src ="/vgn/hpbm/assets/images/"+src+"_over.gif";

          }
		else{
        	 imgId.oSrc ="/vgn/hpbm/assets/images/"+src+"_over.gif";
         	imgId.src ="/vgn/hpbm/assets/images/"+src+"_over.gif";
		}
       }
     //alert(imgId.getAttribute('src'));

 }



function swapImageRestore(id,src,tab){
     	var imgId = document.getElementById(id);
     if(checkActive(id)==true){

     }
     else{
         if(tab == "home"){
         imgId.oSrc ="/vgn/hpbm/assets/images/"+src+".gif";
         imgId.src ="/vgn/hpbm/assets/images/"+src+".gif";
}
else{


         imgId.oSrc ="/vgn/hpbm/assets/images/"+src+".gif";
         imgId.src ="/vgn/hpbm/assets/images/"+src+".gif";

}
     }
//alert(imgId.src);
 }


function checkActive(id){
      var isActive;
	var imgId = document.getElementById(id);
     //alert( imgId.getAttribute('src'));
     var parray = imgId.getAttribute('src').split("/");

     var imgName = parray[parray.length-1];

     var la = imgName.split("_");
     var last = la[la.length-1];

     //alert(last);
 if(last == "active.gif"){
      isActive = true;

     }
     else{
       isActive = false;

         
     }
   return isActive;

}

//************************************ IMAGE SWAPPING ENDS *******************************************//
//************************************* SWAPPING TABS ENDS *******************************************//



function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}





////CHU

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}///CHU

//************************************image swap end ****************************************************//



//***********************************Popup Div Swaping for home ******************************************************//
function showPopup123(id){
	document.getElementById(id).style.display='block';
}

function hidePopup123(id){
	document.getElementById(id).style.display='none';
}
//***********************************Popup Div End******************************************************//


//***********************************DHTMLWINDOW Popups******************************************************//
// use these for displaying location maps
function openCenteredDivPopup(divId){
	document.getElementById(divId).style.display='block';
	divwin=dhtmlwindow.open("divbox", "div", divId, "", "width=767px,height=467px,resize=0,scrolling=0,center=1");
}

function closeCenteredDivPopup(){
	document.getElementById("divbox").style.display='none';
}
//***********************************DHTMLWINDOW Popups End******************************************************//


//***********************************Popup Div for Location Home page ******************************************************//
var locationPopupId=['Layer15','Layer16','Layer17','Layer18','Layer21','Layer19','Layer20']
function showLoctionPopup(id){
var chosenDiv1=document.getElementById(id);
for(var i=0;i<locationPopupId.length;i++){
	if(document.getElementById(locationPopupId[i])==chosenDiv1){
	document.getElementById(locationPopupId[i]).style.display='block';
	}else{
	document.getElementById(locationPopupId[i]).style.display='none';
	}
}
}

function hideLoctionPopup(id){
document.getElementById(id).style.display='none';
}
//***********************************Popup Div for Location Home page End ******************************************************//

//***********************************Popup Div for Tell us what Home page n capabilities**********************************************//
var popupId=['my_popup1','my_popup2','my_popup3']
function showTellUsPopup(id){
var chosenDiv1=document.getElementById(id);
for(var i=0;i<popupId.length;i++){
	if(document.getElementById(popupId[i])==chosenDiv1){
	document.getElementById(popupId[i]).style.display='block';
	}else{
	document.getElementById(popupId[i]).style.display='none';
	}
}
}

function hideTellUsPopup(id){
document.getElementById(id).style.display='none';
}
//***********************************Popup Div for Tell us what  End ******************************************************//

//***********************************Popup Div in Whoe We Are**********************************************//
var popupIds=['LayerS','LayerAB']
function showWhoWeArePopup(id){
var chosenDiv1=document.getElementById(id);
for(var i=0;i<popupIds.length;i++){
	if(document.getElementById(popupIds[i])==chosenDiv1){
	document.getElementById(popupIds[i]).style.display='block';
	}else{
	document.getElementById(popupIds[i]).style.display='none';
	}
}
}

function hideWhoWeArePopup(id){
document.getElementById(id).style.display='none';
}
//***********************************Popup Div  End ******************************************************//

//***********************************Popup Div HIS Disclosure**********************************************//
var popupIdx=['LayerDisc']
function showDisclosurePopup(id){
var chosenDiv1=document.getElementById(id);
for(var i=0;i<popupIdx.length;i++){
	if(document.getElementById(popupIdx[i])==chosenDiv1){
	document.getElementById(popupIdx[i]).style.display='block';
	}else{
	document.getElementById(popupIdx[i]).style.display='none';
	}
}
}

function hideDisclosurePopup(id){
document.getElementById(id).style.display='none';
}
//***********************************Popup Div HIS Disclosure**********************************************//
var popupIdxx=['LayerDisc1','LayerDisc2']
function showDisclosurePopup(id){
var chosenDiv1=document.getElementById(id);
for(var i=0;i<popupIdxx.length;i++){
	if(document.getElementById(popupIdxx[i])==chosenDiv1){
	document.getElementById(popupIdxx[i]).style.display='block';
	}else{
	document.getElementById(popupIdxx[i]).style.display='none';
	}
}
}

function hideDisclosurePopup(id){
document.getElementById(id).style.display='none';
}
//***********************************Popup Div  End ******************************************************//
function doNothing(){
}

function showLogin(id){
document.getElementById('serviceId').selectedIndex=0;
 document.getElementById('apl').style.display='block';
	  document.getElementById('lgn').style.display='block';
	  document.getElementById('lrn').style.display='block';
	document.getElementById('messages').innerHTML="";

document.getElementById(id).style.display='block';
}
function hideLogin(id){
document.getElementById('logindiv').style.display='none';
document.getElementById('messages').innerHTML='';
}
function changeRedTDLink(id){
document.getElementById(id).style.color='#cc0000';
}
function changeBlueTDLink(id){
document.getElementById(id).style.color='#4e8abe';
}

function showEmailAddress(){
var url=window.location.href;
var loc=url.split("=");
var emailAddress=loc[loc.length-1];
if(emailAddress!=" "){
	document.getElementById("emailAddress").innerHTML=emailAddress;
	}
}
function setEmailAddress(){
	document.getElementById("UserEmailAddress.EmailAddress").value=document.getElementById("emailAddress").innerHTML;
	
}
//***********************************Alert Check Box******************************************************//
function checkedAlert(){
	var url=window.location.href;
	var loc=url.split("=");
	var alertHint=loc[loc.length-1];
	if(alertHint=="whitPaper"){
	document.getElementById('createAlertSpan').innerHTML='White Paper';
	}
	if(alertHint=="companyNews"){
	document.getElementById('createAlertSpan').innerHTML='Company News';
	}
}
//***********************************Alert Check Box End******************************************************//
function unSubscribePage(){
var	Form=document.getElementById('unsubscribeForm');
if(document.getElementById('radio1').checked){
Form.action="unsubscribe_responce.html";
}
if(document.getElementById('radio2').checked){
	Form.action='unsubscribe_responce1.html';
}
}

function changeHeading(){
	var url=window.location.href;
	var loc=url.split("=");
	var alertHint=loc[loc.length-1];
	if(alertHint=="newsletter"){
	document.getElementById('subscribeHeadText').innerHTML='Harris enCircle';
	document.getElementById('subscribeHead').innerHTML='Harris enCircle';
	}
	if(alertHint=="outlook"){
	document.getElementById('subscribeHeadText').innerHTML='Finanical Markets';
	document.getElementById('subscribeHead').innerHTML='Finanical Outlook Markets';
	}
	
}
//***********************************Client Login Select Function Start******************************************************//
var applyArray=['Advisory_Brokerage','Direct_Line','Harris_Details_Online','Harris_myCFO','SBSB_Inc','Investment_Online'];
var showAllArray=['Select_a_Service','Harris_Total_Look','Online_Banking','Personal_Bill_Pay','Bussiness_Bill_Pay','Moneris_SurePayroll','American_Express'];
function checkSelectedOptions(id){
	
	var optvl=document.getElementById(id).options[document.getElementById(id).selectedIndex].value;
	
	for(var i=0;i<applyArray.length;i++){
	  if(optvl==applyArray[i]){
		document.getElementById('messages').innerHTML="";  
	  document.getElementById('apl').style.display='none';
	  document.getElementById('lgn').style.display='block';
	  document.getElementById('lrn').style.display='block';
	  break;
	  }
    }
	for(var i=0;i<showAllArray.length;i++){
	  if(optvl==showAllArray[i]){
		  document.getElementById('messages').innerHTML="";
	  document.getElementById('apl').style.display='block';
	  document.getElementById('lgn').style.display='block';
	  document.getElementById('lrn').style.display='block';
	  break;
	  }
    }
	if(optvl=="Harris_Private_Banking"){
		document.getElementById('messages').innerHTML="";
		  document.getElementById('lrn').style.display='block';
		  document.getElementById('lgn').style.display='none';
		  document.getElementById('apl').style.display='none';
	  }else if(optvl=="blnk"){
		  document.getElementById('messages').innerHTML="";
		  document.getElementById('lgn').style.display='none';
		  document.getElementById('lrn').style.display='none';
		  document.getElementById('apl').style.display='none';
	  }
	
}
//***********************************Client Login Select Function End******************************************************//
//***********************************Submit Client Login Function Start******************************************************//

var Harris_Total_Look_Links = ["http://www4.harrisbank.com/spopup/0,4468,129778_18515031,00.html","http://www4.harrisbank.com/personal/0,4458,359877_395918,00.html","http://www4.harrisbank.com/spopup/0,4468,129778_18515031,00.html"];

var Online_Banking_Links = ["https://www4.harrisbank.com/secure","http://www4.harrisbank.com/personal/0,4458,359877_395912,00.html","https://mbanxonlinebanking.harrisbank.com/enroll_frame.asp"];
var Personal_Bill_Pay_Links = ["https://cw411.checkfreeweb.com/cw411/wps?sp=MBANX&rq=home","http://www4.harrisbank.com/personal/0,4458,359877_395915,00.html","https://cw411.checkfreeweb.com/cw411/wps?rq=eqenf&sp=MBANX"];
var Advisory_Brokerage_Links = ["http://harris.netxselect.com","http://www.harrisbank.com/investments/"];
var Bussiness_Bill_Pay_Links = ["https://www.thevalidnetwork.com/wp323/wps?rq=home&sp=3066","http://www4.harrisbank.com/smallbiz/0,4458,360183_403699,00.html","https://www.thevalidnetwork.com/wp323/wps?rq=benbf&sp=3066"];
var Moneris_SurePayroll_Links = ["https://moneris.surepayroll.com/login/auth.asp","https://www4.harrisbank.com/smallbiz/0,4458,360183_398649,00.html","http://moneris.surepayroll.com/Enroll/"];
var Direct_Line_Links = ["https://www.directline4biz.com/","http://www.richmedia.com//bmodltour/short/intro.html"];
var Harris_Details_Online_Links = ["https://www.harrisdetailsonline.com","http://www4.harrisbank.com/spopup/0,2291,129778_27314694,00.html"];
var American_Express_Links = ["https://www99.americanexpress.com/myca/logon/us/en/en_US/logon/LogLogon.jsp?DestPage=https://www99.americanexpress.com/myca/acctsumm/us/action?request_type=authreg_acctAccountSummary&us_nu=subtab","http://www4.harrisbank.com/smallbiz/0,2289,360183_397930,00.html","https://www99.americanexpress.com/myca/logon/us/en/en_US/logon/LogLogon.jsp?DestPage=https://www99.americanexpress.com/myca/acctsumm/us/action?request_type=authreg_acctAccountSummary&us_nu=subtab"];
var Harris_Private_Banking_Links = ["","index.html"];
var Harris_myCFO_Links = ["https://client.mycfo.com/common/Login.jhtml","http://www.harrismycfo.com"];
var SBSB_Inc_Links = ["https://www.sbsb-web.com/clientsonly/home.asp","http://www.sbsbinc.com/default.asp"];
var Investment_Online_Links = ["https://www.harrisbank.com/privatebank/login.html","https://www.harrisbank.com/privatebank/login.html"];











var optionsArray=['Harris_Total_Look','Online_Banking','Personal_Bill_Pay','Advisory_Brokerage','Bussiness_Bill_Pay','Moneris_SurePayroll','Direct_Line','Harris_Details_Online','American_Express','Harris_Private_Banking','Harris_myCFO','SBSB_Inc','Investment_Online'];


function submitClientLogin(frmVal){
	var optn=document.getElementById('serviceId').options[document.getElementById('serviceId').selectedIndex].value;
	var clieckedButton=document.getElementById('clientHidden').value;
	
	try{
	 if(optn=="Select_a_Service"){
		document.getElementById('messages').innerHTML='Please select a service before clicking a button.';
		return false;
	 }
	}catch(e){}
	var Link_Array = new Array();
	if(optn == 'Harris_Total_Look' ){
		Link_Array = Harris_Total_Look_Links ; 
	}
	else if(optn == 'Online_Banking'){
		Link_Array = Online_Banking_Links ; 
	}
	else if(optn == 'Personal_Bill_Pay'){
		Link_Array = Personal_Bill_Pay_Links ; 
		document.getElementById('clientLoginForm').method="post";
	}
	else if(optn == 'Advisory_Brokerage'){
		Link_Array = Advisory_Brokerage_Links ; 
	}
	else if(optn == 'Bussiness_Bill_Pay'){
		Link_Array = Bussiness_Bill_Pay_Links ;
		document.getElementById('clientLoginForm').method="post";
	}
	else if(optn == 'Moneris_SurePayroll'){
		Link_Array = Moneris_SurePayroll_Links ; 
	}
	else if(optn == 'Direct_Line'){
		Link_Array = Direct_Line_Links ; 
	}
	else if(optn == 'Harris_Details_Online'){
		Link_Array = Harris_Details_Online_Links ; 
	}
	else if(optn == 'American_Express'){
		Link_Array = American_Express_Links ; 
	}
	else if(optn == 'Harris_Private_Banking'){
		Link_Array = Harris_Private_Banking_Links ; 
	}else if(optn == 'Harris_myCFO'){
		Link_Array = Harris_myCFO_Links ; 
	}
	else if(optn == 'SBSB_Inc'){
		Link_Array = SBSB_Inc_Links ; 
	}
	else if (optn == 'Investment_Online'){
		Link_Array = Investment_Online_Links ; 
	}
	
	
	
		if(clieckedButton=='login'){
		document.getElementById('clientLoginForm').action=Link_Array[0];
		return true;
	}
	if(clieckedButton=='learn'){
		document.getElementById('clientLoginForm').action=Link_Array[1];
		return true;
	}
	if(clieckedButton=='apply'){
		document.getElementById('clientLoginForm').action=Link_Array[2];
		return true;
	}
	

}

//***********************************Submit Client Login Function End******************************************************//
function changeHiddenValue(val){
	document.getElementById('clientHidden').value=val;
}

