<!--

//Dreamweaver Generated
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

//Dreamweaver Generated
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];}}
}

//Dreamweaver Generated
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;
}

//Dreamweaver Generated
function MM_swapImage() { //v3.0
  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];}
}

//Dreamweaver Generated
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//Dreamweaver Generated
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')?'inline':(v=='hide')?'none':v; }
    obj.display=v; }
   
}

//changes Small Tabs on front page
function changeIFrame(id,id2){
	frameid = document.getElementById(id)
	
	if(frameid.src != "" + id2 + "") {
	  frameid.src = "" + id2 + "";
	}
}

function showCalendar(fld) {
  var url;
  var dt = '';
  
  var theForm = document.forms[0];

  if(theForm[fld]) {
    if(theForm[fld].value) {
      if(theForm[fld].value != '') {
        dt = theForm[fld].value;
      }
    }
    else {
      //not a text field
    }
  }
  else {
    alert("Calendar popup error: Invalid field handle.");
    return (false);
  }

  url = "/includes/CalendarPopup.aspx?date=" + dt + "&fld=" + fld;
  
  //open the window
  window.open(url, "calWin", "width=215,height=200,scrollbars=no,status=yes,top=150,left=450");
}

function download(file) {
  window.open('/images/uploads/Documents/' + file);
}

//Opens a pop-up window with the Step By Step
function launchStepByStep(CardType) {
  //Open Step by Step in a Frameset with the bottom frame showing Report Criteria.
  window.open("/Portfolio/StepByStepFrame.aspx?CardTypeName=" + CardType, "newWin2", "width=780,height=500,status=yes,top=50,left=100,resizable=yes");
  
  //window.open("/Portfolio/StepByStep.aspx?CardTypeName=" + CardType, "newWin2", "width=780,height=500,status=yes,top=50,left=100,resizable=yes");
}

function launchPortfolioAnalysis(CardType) {
  window.open("/Portfolio/PortfolioAnalysis.aspx?CardTypeName=" + CardType, "paWin", "width=850,height=600,status=yes,top=50,left=100");
}

//Opens a pop-up window with the Simulation
function launchSimulation() {
  window.open("/Portfolio/Simulation/welcome.asp", "newWin3", "width=785,height=600,status=yes,top=50,left=100,scrollbars=yes");
}

function WhatsThis(ReferenceTitle) {
  url = "/WhatsThis.aspx?ReferenceTitle=" + ReferenceTitle;
  window.open(url, "newWin", "width=450,height=365, scrollbars=no, status=yes");
}

function VCCDemo() {
  window.open("http://www.cscu.net/Portfolio/VCCDemo/VCCDemo.aspx", "newWin4", "width=785,height=600,status=yes,bottom=100,right=150");
}

function sendToFriend(ContentID) {
  url = "/SendToFriend.aspx?ContentID=" + ContentID;
  window.open(url, "sendWin", "width=400,height=475,scrollbars=yes,status=yes");
}

function editCategories() {
  window.open("/Admin/ContentManager/CategorySelectLeft.aspx", "newWin1", "width=265,height=275,status=yes,scrollbars=yes");
}

function selectCriteria(CardType) {
  window.open("/Portfolio/ReportCriteriaSelection.aspx?CardTypeName=" + CardType, "newWin1", "width=500,height=525,status=yes,top=50,left=100,scrollbars=yes");
}

function membershipData(year) {
  window.open("/Portfolio/MembershipData.aspx?year=" + year, "newWin3", "width=415,height=320,status=yes,top=50,left=100");
}

function sharedraftData(year) {
  window.open("/Portfolio/ShareDraftData.aspx?year=" + year, "newWin3", "width=415,height=320,status=yes,top=50,left=100");
}

function peerGroupSelection(CardType) {
  window.open("/Portfolio/PeerGroupSelection.aspx?CardTypeName=" + CardType, "pgsWin", "width=500,height=550,status=yes,top=10,left=400,scrollbars=yes");
}


//-->