<!--

// Check Login
    function get_cookie(Name) {
        var search = Name + "="
        var returnvalue = "";
        if (document.cookie.length > 0) {
            offset = document.cookie.indexOf(search)
            // if cookie exists
            if (offset != -1) {
                offset += search.length
                // set index of beginning of value
                end = document.cookie.indexOf(";", offset);
                // set index of end of cookie value
                if (end == -1) end = document.cookie.length;
                returnvalue = unescape(document.cookie.substring(offset, end))
            }
        }
        return returnvalue;
    }

  //   if (get_cookie("isvalidAccess") != "true") window.location = "/default.asp";

function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
 } 
function enlargeImage(theImage,theWidth,theHeight){
//var newname
//newname = theImage.replace("/","%2F");
thewindow = window.open('/templates/enlargeImage.asp?enImg='+theImage+'&width='+theWidth+'&height='+theHeight+'', 'Coronation', config='width='+theWidth+', height='+theHeight+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
 }
function enlargeChart(theImage,theWidth,theHeight){
//var newname
//newname = theImage.replace("/","%2F");
thewindow = window.open('/templates/enlargeChart.asp?enImg='+theImage+'&width='+theWidth+'&height='+theHeight+'', 'Coronation', config='width='+theWidth+', height='+theHeight+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
 }
function launchHighlight(xfilename,theWidth,theHeight){thewindow = window.open('/showHighlight.asp?enImg='+xfilename+'&width='+theWidth+'&height='+theHeight+'', 'Highlight', config='width='+theWidth+', height='+theHeight+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchPerformance (xfundname,xfundcode){thewindow = window.open('/pi/includes/pop_performance.asp?fundname='+xfundname+'&fundcode='+xfundcode+'', 'Performance', config='width=770, height=600,toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchWhois(xpath){thewindow = window.open(xpath, 'Coronation', config='height=350,width=420,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchwinSize(xfilename,theWidth,theHeight){thewindow = window.open(xfilename, 'Coronation', config='width='+theWidth+', height='+theHeight+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchWinSpec(xfilename,theWidth,theHeight){thewindow = window.open('/showPage.asp?enImg='+xfilename+'&width='+theWidth+'&height='+theHeight+'', 'Highlight', config='width='+theWidth+', height='+theHeight+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchFooter(xpath){thewindow = window.open(xpath, 'Coronation', config='height=460,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchBO(xpath){thewindow = window.open(xpath, 'Coronation', config='height=440,width=550,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no,screeny=100,screenx=100,left=200,top=200');
 }
function launchRegulation(xpath){thewindow = window.open(xpath, 'CoronationR', config='height=480,width=840,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no,screeny=0,screenx=0,left=0,top=0');
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
// default text value function

function OnFocus(elementId, defaultText) {
    if (document.getElementById(elementId).value == defaultText) {
        document.getElementById(elementId).value = "";
    }
}

function OnBlur(elementId, defaultText) {
    var textValue = document.getElementById(elementId).value;

    if (textValue == defaultText || textValue.length == 0) {
        document.getElementById(elementId).value = defaultText;
    }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


//-->