// JavaScript Document

/* Expand Menu */
var subs_array = new Array("sub1","sub2","sub3","sub5","sub6","sub7","sub8","sub9","sub10","sub11","sub12","sub13","sub14","sub15","sub16","sub17","sub18","sub19","sub3_1","sub3_2","sub3_3","sub3_4");


// Put the id's of your hidden divs in this array
function displaySubs(the_sub){
	if (document.getElementById(the_sub).style.display==""){
	document.getElementById(the_sub).style.display = "none";return}
for (i=0;i<subs_array.length;i++){
	var my_sub = document.getElementById(subs_array[i]);
	my_sub.style.display = "none";
	}document.getElementById(the_sub).style.display = "";
}


dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
monName = new Array ("Jan.", "Feb.", "Mar.", "Apr.", "May", "June", "July", "Aug.", "Sept.", "Oct.", "Nov.", "Dec.");
now = new Date;
thisYr = now.getYear();
if (thisYr < 1900) {
thisYr = thisYr + 1900;
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin');
}



function messageWindow(title, msg)
{
 var width="450", height="450";
 var left = (screen.width/2) - width/2;
 var top = (screen.height/2) - height/2;
 var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
 var msgWindow = window.open("","msgWindow", styleStr);
 var head = '<head><title>'+title+'</title></head>';
 var body = '<center>'+msg+'</p><br><form><input type="button" value=" Close " onClick="self.close()"></form></center>';
 msgWindow.document.write(head + body);
}

function MyWin() {
 messageWindow('Help','<p><strong>PROMOTION CODE</strong></p><p>From time to time, special promotion discounts on seminars are offered by the National Real Estate Institute Inc. to subscibers of the homebuyers.ca free email newsletter.</p><p>If you have received notification of a special discount offer, please insert the promotion code name in the box.</p><p>Please note that you cannot combine promotion code offers, if you receive more than one. You have to select which one you want to use and insert that one in the box!</p><p>However, you can combine a promotion code offer, along with the $50 discount offers available for reserving for a 2nd seminar at the same time, or reserving for a 2nd person at the same time. More details on the $50 discount offers are outlined on the reservation form page.</p><p>Thank you.</p>')
}