/* JavaScript Document
Javascripts for DIT Website
Rich Peck 
Multimedia Developer
Institute for Interactive Technologies
Bloomsburg University of PA
Version 1.0*/

//Opens a new window based upon given parameters
//PARAM: url:String,windowName:String,windowFeatures:String
//RETURNS: Nothing
//

function IIT_Open_Window(url,windowName,windowFeatures){
	//declare variable to hold window object reference
	var theWindow = window.open(url,'iitwindow','width=800,height=600,resizable=1,scrollbars=0');
}

//Prints the current page the user is on
//PARAM: nothing
//RETURNS: nothing
function IIT_Print_Page(){
	window.print();
}
//Opens the course decription for the specified course
//PARAM:courseNumber:Number The number of the course
function IIT_CourseDescription(courseNumber){
	var departmentNumber = String(courseNumber).substring(0,2);
	var urlPath = "http://www.bloomu.edu/catalog/courses/" + departmentNumber + "000.shtml#" + courseNumber;
	window.open(urlPath,'courseDescriptions','width=400,height=250,scrollbars=1,resizable=1');
}
//Clears the search field
function IIT_Clear_Field(theField){
	theField.value = "";
}