
// Identical copy of pjk.js in  /form  and  /home  and all DC mirrors.

document.writeln("<!-- saved from url=(0014)about:internet -->");

document.writeln("<meta http-equiv='imagetoolbar' content='no' />");

//window.onload = maxWindow;

// Global Variables
var NN = NS4 = (document.layers != null);
var IE = IE4 = (document.all != null);
var Browser = navigator.appName;
   if (Browser == "Microsoft Internet Explorer")   Browser = "MSIE";
   if (navigator.userAgent.indexOf("Opera") != -1) Browser = "Opera"
var p = "&#112;&#107;&#105;&#100;&#100;"
var at = "&#64;"
var dc = "&#68;&#97;&#119;&#115;&#111;&#110;&#67;&#111;&#108;&#108;&#101;&#103;&#101;&#46;&#113;&#99;&#46;&#99;&#97;"
var pk = '&#112;&#107;&#105;&#100;&#100;&#46;&#99;&#111;&#109;'
// Note that these variables must be written to the HTML using document.write()

//
//
function mail(formname,display,parameters) {
   // You must include all parameters (or none) - e.g. mail("","jkl","");
   if (parameters == "" || parameters == null) parameters = ""
      else parameters = "?" + parameters;      // parameters must be in varName=varValue pairs
   var address = p + at + dc;
   if (display == "" || display == null) display = address;
   if (formname == "" || formname == null) formname = "fpp-email/index.html";
   document.write("<a href=" + formname + parameters +">"+ display +"</a>");
}





// if file != "" then the value of file is added as the filename for the link
// if anchor==1 or anchor=="anything", the URL will be anchored as a hyperlink
function homepage(file,anchor) {
if (file) {
   var s= new String(window.location);
   var i= s.lastIndexOf("/")+1;
   s=s.substr(0,i)+file;
   if (anchor) { document.write("<a href=" + s + ">") };
   document.write(s);
   if (anchor) { document.write("</a>") };
   }
else {
   document.write("<center><i><a href='index.htm'>");
   document.write(window.location);
   document.write("</a></i></center>");
   }
}
function courseshtm() {
   document.writeln("<a href='courses.htm'><b>Course Topics...</b></a>");
   document.writeln(" - (<a href=");
   homepage('courses.htm');
   document.writeln(">");
   homepage('courses.htm');
   document.writeln("</a>)");
}


function breaks(br) {
   for (var x=1; x<=br; x++) {
      document.write("<br />");
   }
}


//
function gotop(name,br) {
   breaks(br);
   document.writeln("<a name=" +name+ "></a>");
   document.writeln("<a href='#top' onMouseOver=\"window.status='Go to the Top of this page' ;return true;\" onMouseOut=\"window.status='Patrick J. Kidd - Dawson College' ;return true;\">");
//	var gotop_bar = 'images/gotop.gif';
	var gotop_bar = 'images/divider.gif';
   document.writeln("<img SRC='" +gotop_bar+ "' ALT='Go to the Top of this page' BORDER='0' height='12' width='100%'></a>");
   // You cannot set browser window status bar using javascript (by setting window.status) in Firefox. There are two simple ways you can enable it.
   // Open about:config in browser and search for dom. disable_window_status_change. Change it to false.
   // Additionally in Firefox v1.0, this can be changed via "Tools ? Options ? Web Features ? Enable JavaScript / Advanced ? Allow scripts to change status bar text"
   // In Firefox v1.5, this can be changed via "Tools ? Options ? Content ? Enable JavaScript / Advanced ? Allow scripts to change status bar text"
}


//
function maxWindow() {
   if (top != self) {
      top.location = location;
      // Prevent my page from being framed by another site.
   }
   window.moveTo(0,0);
   if (document.all) {
      //self.resizeTo(screen.availWidth,screen.availHeight);
      top.window.resizeTo(screen.availWidth,screen.availHeight);
   }
   else if (document.layers||document.getElementById) {
      if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
        top.window.outerHeight = screen.availHeight;
        top.window.outerWidth = screen.availWidth;
      }
   }
}

//
function lastMod() {
     var mdate = new Date (document.lastModified);
    // year = mdate.getYear();
	//    The getyear() function is meant to return the current year - 1900. So Y2k = 100 and 2001 = 101 etc. -- 98, 99, 100, 101, 102, 103, ... 
	//    The 'correct' call is now getFullYear() which returns the full 4-digit year. 
     var year = mdate.getUTCFullYear(); 
     month = mdate.getMonth() + 1;
     var date = mdate.getDate();
     document.write("<i><font size=-2>" + "This page last updated: &nbsp;" + year + "-" + month + "-" + date + "</font></i>");
}

// 
function footer(n) {
   document.writeln("<br clear='all'><br /><p align='center'>");
   gotop('footer');
   document.writeln("&copy; <a href='http://www.pkidd.com'><b>Patrick J. Kidd</b></a> - <script>mail();</script> &copy;");
   // document.writeln("<br />&copy; <a href='index.htm'><b>Patrick J. Kidd</b></a> - <script>mail();</script> &copy;");
   document.writeln("<br /><a href='http://www.dawsoncollege.qc.ca/programs/tech/busi_admin/' target='_top'>Business Administration</a>");
   //document.writeln("<br /><a href='http://www.dawsoncollege.qc.ca/departments/tech/busiadmin/' target='_top'>Business Administration</a>");
   // document.writeln("- <a href='http://www.dawsoncollege.qc.ca/departments/tech/comp_sci/' target='_top'>Computer Science</a>");
   document.writeln("- <a href='http://www.dawsoncollege.qc.ca/' target='_top'>Dawson College</a>");
   document.writeln("- <a href='https://dawsoncollege.intraflex.ca/' target='_top'>MyDawson</a>");
   document.writeln("<br />");

   //document.writeln("- <a href='mylab.htm' target='_top'>MyLab</a>");

   //var WebCT="Warning!!&#013;You must disable your anti-popup software.&#013;e.g. Norton Internet Security Pop-up Blocking.";
   //WebCT+="&#013;WebCT uses lots of pop-up windows.";
   //document.write("- <a href='webct.htm' target='_top'>");
   //document.writeln("<img src=images/webct.gif border=none align=middle  alt='" +WebCT+ "' /></a><br />");
   //gotop('end');
   lastMod();
   document.writeln("</center></p>");
   if (!n) n=15;
   breaks(n);
}


function yesno(message,message2,optiondefault) {
   if (!message) message="";
   if (message2 == "") message2=" ";
   if (!message2) message2=" &nbsp;&nbsp;Yes / No ";
   if (!optiondefault) optiondefault="";
   document.write(message + message2 + "&nbsp;&nbsp;");
   document.writeln("<select>");
   document.writeln("<option>" + optiondefault + "</option>");
   document.writeln("<option>No</option>");
   document.writeln("<option>Yes</option>");
   document.writeln("</select>");
}

function when() {
        var x=Date();
        document.write(x)
        document.write("<input type=hidden name='When' value='" +x+ "'>")
}

function courses(change) {
	document.writeln("<select name='course' id='course' onChange='studentUpdate()'><br />");
   	//if (change)    document.writeln("<select name='course' id='course' onChange='studentUpdate()'><br />");
   	//if (!change)   document.writeln("<select name='course' id='course' ><br />");
   document.writeln("   <option value='' selected>Select your course</option>");
   document.writeln("   <option>401-101-DW Introduction to Business <br /></option>");
   document.writeln("   <option>401-205-DW International Business<br /></option>");
   document.writeln("   <option>410-608-DW International Marketing <br /></option>");
   document.writeln("   <option>401-315-DW Global Marketing <br /></option>");
   document.writeln("   <option>401-305-DW Global Management <br /></option>");
   document.writeln("   <option>410-556-DW e-Marketing - (term 5)<br /></option>");
   document.writeln("   <option>410-352-DW Business Computer Applications - (term 3)<br /></option>");
   document.writeln("   <option>401-201-DW Basics of Marketing<br /></option>");
   document.writeln("   <option>401-919-DW Career Management - (term 3)<br /></option>");
   document.writeln("   <option>420-121-DW Internet Applications I - (term 1)<br /></option>");
   document.writeln("   <option>420-422-DW Internet Applications II - (term 4)</option>");
   document.writeln("   <option>420-230-DW Database Applications I - (term 2)<br /></option>");
   document.writeln("   <option>420-803-DW Introduction to the Internet - (AEC)<br /></option>");
   document.writeln("   <option>420-BXC-03 &nbsp;Introduction to the Internet - (Complementary)<br /></option>");
   document.writeln("   <option>420-300-90 Introduction to the Internet - (Complementary)<br /></option>");
   document.writeln("   <option>....ALT - Other course or Unknown course name <br /></option>");
   document.writeln("   <option>....NAS - Not a student<br /></option>");
   document.writeln("</select>");
}

function sections(change) {
   document.writeln("<select name='section' id='section' onChange='studentUpdate()'><br />");
   	//if (change)    document.writeln("<select name='section' id='section' onChange='studentUpdate()'><br />");
   	//if (!change)   document.writeln("<select name='section' id='section'><br />");
   document.writeln("      <option value='' selected>Select your section</option>");
   document.writeln("      <option>Section 1<br /></option>");
   document.writeln("      <option>Section 2<br /></option>");
   document.writeln("      <option>Section 3<br /></option>");
   document.writeln("      <option>Section 4<br /></option>");
   document.writeln("      <option>Section 5<br /></option>");
   document.writeln("      <option>Section 6<br /></option>");
   document.writeln("      <option>Section 7<br /></option>");
   document.writeln("      <option>Section 8<br /></option>");
   document.writeln("      <option>Section 9<br /></option>");
   document.writeln("      <option>Section 10<br /></option>");
   document.writeln("      <option>Section 11<br /></option>");
   document.writeln("      <option>Section 12<br /></option>");
   document.writeln("      <option>Section 13<br /></option>");
   document.writeln("      <option>Section 14<br /></option>");
   document.writeln("      <option>Section 15<br /></option>");
   document.writeln("      <option>Other<br /></option>");
   document.writeln("      <option>Not a student<br /></option>");
   document.writeln("   </select>");
}

function Calendar() {
      var windowString = "scrollbars=1,resizable=1,";
      if (document.layers) {
         x = innerWidth*.95;
         y = innerHeight*.95;
      }
      if (document.all) {
         x = document.body.clientWidth*.95;
         y = document.body.clientHeight*.95;
      }
      windowString += "width=" +x+ ",height=" +y+ ",top=20,left=20";
      //myWindow = window.open("http://my.calendars.net/pjkidd","Calendar", windowString);
      myWindow = window.open("http://www.schoolcal.net/pkidd","Calendar", windowString);
      myWindow.focus();
}


function thispage(uppercase)
   {
   var thispage="this page";
   if (uppercase) thispage="This page";
   title="&quot;This page&quot; is a term I use often on this site. &nbsp;  &#10;"
   title+="I mean &quot;this Web page&quot; or &quot;this HTML document&quot; or "
   title+="&quot;the document you are looking at on your screen right now&quot;. &nbsp;&#10;&#10;"
   title+="When you print out a &quot;Web page&quot; or &quot;HTML document&quot; "
   title+="it will often result in two or more pieces of paper coming out of the printer. &nbsp;&#10;"
   title+="A &quot;Web page&quot; is not the same as a printed page."
   document.write("<a href=\"computers.htm#thispage\"   onclick=\"newWin(this.href);return false;\" title=\"" +title+ "\">" + thispage + "</a>");
}

function mail_ppt(lab,students) {
   // lab = the Subject line for the e-mail
   // students = the number of student name&numbers that are requested
   var adresse = "mailto:" + p + at + dc + "?Subject= " + lab ;
   adresse+="&Body= The file is attached. %0D%0A%0D%0A";
   adresse+=" Topic =  %0D%0A%0D%0A";
   for (var x=1; x<=students; x++)
      adresse+=" Student " +x+ " Name: %0D%0A Student " +x+ " Number: %0D%0A%0D%0A";
   document.write("&nbsp;&nbsp;<a href=\"" + adresse + "\">Click here to e-mail your file to me.</a>");
}


/*
function evalselect(named) {
   // Based on ISEP - http://dc11.dawsoncollege.qc.ca/dsweb/Get/Document-6041/isep.pdf
   document.writeln("<select  onChange='calculateMark()' name=" +named+ "><br>");
   document.writeln("<option value='0'>Evaluation");
   document.writeln("<option value='98'>A+ = 98%");
   document.writeln("<option value='95'>A. = 95%");
   document.writeln("<option value='90'>A- = 90% = Excellent");
   document.writeln("<option value='88'>B+ = 88%");
   document.writeln("<option value='85'>B. = 85%");
   document.writeln("<option value='80'>B- = 80% = Very Good");
   document.writeln("<option value='78'>C+ = 78%");
   document.writeln("<option value='75'>C. = 75%");
   document.writeln("<option value='70'>C- = 70% = Good");
   document.writeln("<option value='68'>D+ = 68%");
   document.writeln("<option value='65'>D. = 65%");
   document.writeln("<option value='60'>D- = 60% = Pass");
   document.writeln("<option value='50'>E. = 50% = Fail");
   document.writeln("<option value='33'>F. = Below 50%");
   document.writeln("</select>");
   }
// */

function GoToChapter(start,end) {
	document.writeln("Go to Chapter:&nbsp;&nbsp;&nbsp;");
	for (x=start;x<(end+1);x++)
		document.writeln("<a href=#" +x+ ">" +x+ "</a>&nbsp;&nbsp;&nbsp;");
	document.writeln("<br />");
	gotop("GoToChapter");
	}
	
//Example:  <a href="315prep.htm" class="medium"  onclick="newWin(this.href);return false;">
function newWin( url ){
	newTabWidth=screen.availWidth/2;
	var features = "status=yes,resizable,scrollbars=1,menubar=yes,addressbar=1,width="+newTabWidth+",left="+newTabWidth;
	newTab = window.open(url, 'newTab', features);
	newTab.focus();
	}
	
	
	