// JavaScript Document
function openWindow(anchor, options) {

    var args = '';

    if (typeof(options) == 'undefined') { var options = new Object(); }
    if (typeof(options.name) == 'undefined') { options.name = 'win' + Math.round(Math.random()*100000); }

    if (typeof(options.height) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
        args += "height=" + options.height + ",";
    }

    if (typeof(options.width) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
        args += "width=" + options.width + ",";
    }

    if (typeof(options.fullscreen) != 'undefined') {
        args += "width=" + screen.availWidth + ",";
        args += "height=" + screen.availHeight + ",";
    }

    if (typeof(options.center) == 'undefined') {
        options.x = 0;
        options.y = 0;
        args += "screenx=" + options.x + ",";
        args += "screeny=" + options.y + ",";
        args += "left=" + options.x + ",";
        args += "top=" + options.y + ",";
    }

    if (typeof(options.center) != 'undefined' && typeof(options.fullscreen) == 'undefined') {
        options.y=Math.floor((screen.availHeight-(options.height || screen.height))/2)-(screen.height-screen.availHeight);
        options.x=Math.floor((screen.availWidth-(options.width || screen.width))/2)-(screen.width-screen.availWidth);
        args += "screenx=" + options.x + ",";
        args += "screeny=" + options.y + ",";
        args += "left=" + options.x + ",";
        args += "top=" + options.y + ",";
    }

    if (typeof(options.scrollbars) != 'undefined') { args += "scrollbars=1,"; }
    if (typeof(options.menubar) != 'undefined') { args += "menubar=1,"; }
    if (typeof(options.locationbar) != 'undefined') { args += "location=1,"; }
    if (typeof(options.resizable) != 'undefined') { args += "resizable=1,"; }

    var win = window.open(anchor, options.name, args);
    return false;

}


if( sector == 'Private')
        {

document.write('<div align="left" ><a href="../../Consumer/HTML/consAlKhairHomeFinance_02_01_en.html"><img src="../../../GblImages/hf1_173x72eng.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'Diamond')
        {

document.write('<div align="left" ><a href="../../../GblDocs/ar_RE_Leaflet_Arbic_1206.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/RealEstateFund_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'ReferralDiamond')
        {

document.write('<a href="../../../GblDocs/Referral_Program_Diamond_Eng.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Referral_Banner173_Eng.gif" width="173" height="72" border="0"></a>')
}
if( sector == 'Gold')
        {

document.write('<div align="left" ><a href="../../../GblDocs/ar_RE_Leaflet_Arbic_1206.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/RealEstateFund_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'ReferralGold')
        {

document.write('<a href="../../../GblDocs/Referral_Program_Gold_Eng.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Referral_Banner173_Eng.gif" width="173" height="72" border="0"></a>')
}
if( sector == 'Ladies')
        {

document.write('<div align="left" ><a href="../../../GblDocs/Fursan_Leaflet.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Fursan_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'Accounts')
        {

document.write('<div align="left" ><a href="../../Consumer/HTML/consAlKhairHomeFinance_02_01_en.html"><img src="../../../GblImages/hf2_173x72eng.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'CCard')
        {

document.write('<div align="left" ><a href="../../Common/HTML/vbvpage_01_01_en.html")"><img src="../../../GblImages/vbvin_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'PFinance')
        {

document.write('<div align="left" ><a href="../../../GblDocs/Fursan_Leaflet.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Fursan_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'Islamic')
        {

document.write('<div align="left" ><a href="../../../GblDocs/Fursan_Leaflet.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Fursan_en.gif" width="173" height="72" border="0"></a></div>')
}
if( sector == 'Transfer')
        {

document.write('<div align="left" ><a href="../../../GblDocs/ar_RE_Leaflet_Arbic_1206.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/RealEstateFund_en.gif" width="173" height="72" border="0"></a></div>')
}

if( sector == 'individual')
        {

document.write('<div align="left" ><a href="../../../GblDocs/Fursan_Leaflet.pdf" title="" onclick="return openWindow(this, {width:790,height:450,resizable:true,center:true})"><img src="../../../GblImages/Fursan_en.gif" width="173" height="72" border="0"></a></div>')
}