// JScript source code
function setFlash()
{
var myFlashVars=document.location.search;
//alert(myFlashVars);
	if (myFlashVars[0]='?')
    {
    myFlashVars=myFlashVars.substr(1, myFlashVars.length-1);
    }
		
	
	var	docValue=  ( '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+
   ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"\n'+
   ' WIDTH="350" HEIGHT="400" id="referFriend">\n'+
   ' <PARAM NAME=movie VALUE="referFriend.swf">\n'+
   ' <PARAM NAME=FlashVars VALUE="'+myFlashVars+'">\n'+
   ' <PARAM NAME=quality VALUE=high>\n'+
   ' <PARAM NAME=bgcolor VALUE=#FFFFFF>\n'+
   ' <EMBED src="referFriend.swf"\n'+
   '  FlashVars="'+myFlashVars+'"\n'+ 
   '  quality=high bgcolor=#FFFFFF  WIDTH="350" HEIGHT="400" NAME="screenShot"\n'+
   '  TYPE="application/x-shockwave-flash"\n'+
   '  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'+
   '</OBJECT>');
	 
	 myFlash=document.getElementById("flashDiv");
	 
	 myFlash.innerHTML=docValue;
	
	 
	 }
	 
	 
function openReferralForm(path) { 
	 //var winName='referPage';
	 //var features='width=600,height=580';
	
     var strHref = window.location.href;
   	theURL="http://www.ocbc.com/personal-banking/mightysavers/babybonus/ocbc-cda/contact-details.html";
    //myWin=window.open(theURL,winName,features);
    //myWin.focus();
	//alert(theURL);
	window.location.replace(theURL);
}

 function openReferralForm1( ) { 
	 //var winName='referPage';
	 //var features='width=600,height=580';
	
     var strHref = window.location.href;
    theURL="http://www.ocbc.com/personal-banking/mightysavers/babybonus/ocbc-cda/contact-details.html";
    //myWin=window.open(theURL,winName,features);
    //myWin.focus();
	//alert(theURL);
	window.location.replace(theURL);
}

function openReferralForm2( ) { 
	 //var winName='referPage';
	 //var features='width=600,height=580';
	
     var strHref = window.location.href;
    theURL="http://www.ocbc.com/personal-banking/mightysavers/babybonus/ocbc-cda/contact-details.html";
    //myWin=window.open(theURL,winName,features);
    //myWin.focus();
	//alert(theURL);
	window.location.replace(theURL);
}

function openReferralForm3( ) { 
	 //var winName='referPage';
	 //var features='width=600,height=580';
	
     var strHref = window.location.href;
    theURL="http://www.ocbc.com/personal-banking/mightysavers/babybonus/ocbc-cda/contact-details.html";
    //myWin=window.open(theURL,winName,features);
    //myWin.focus();
	//alert(theURL);
	window.location.replace(theURL);
}


function openReferralForm4(relURL) { 
	 //var winName='referPage';
	 //var features='width=600,height=580';
	
     var strHref = window.location.href;
    theURL="http://www.ocbc.com/personal-banking/mightysavers/babybonus/ocbc-cda/contact-details.html";
    //myWin=window.open(theURL,winName,features);
    //myWin.focus();
	//alert(theURL);
	window.location.replace(theURL);
	//window.location="http://www.google.com";
}