﻿// JavaScript File

// WebEnrollment.js
// ========================================
// This file contains the client-side script
// library used in the Real Estate Institute
// WebEnrollment project.


// infowindow is used to hold a reference to the "More Info" popup window
var infowindow;

function displayMoreInfoWindow(windowId, contentSource)
{
    infowindow = dhtmlmodal.open(windowId, 'div', contentSource, 'Additional Information', 'width=500px,height=300px,center=1,resize=0,scrolling=1'); 
    
    //return false;
}

function displayModalMessageBoxFromDiv(windowId, contentSource, windowCaption)
{
    msgwindow = dhtmlmodal.open(windowId, 'div', contentSource, windowCaption, 'width=450px,height=250px,center=1,resize=0,scrolling=1'); 
}


function displayModalMessageBoxFromDivSizable(windowId, contentSource, windowCaption, width, height)
{
    msgwindow = dhtmlmodal.open(windowId, 'div', contentSource, windowCaption, 'width=' + width + 'px,height=' + height + 'px,center=1,resize=0,scrolling=1'); 
}