// JavaScript Document

/* 
*******************  Page Info  *******************

Page: 			resizeIframe.js
Organization:	Rice University School Science and Technology
Application:	Assessment Application
Purpose:		Present user with options for selecting participants
Created By:		Eddie Heard
Created On: 	6-15-04
Calling Pages:	CourseBuildingNewSessionWizardStep1b.cfm
User Access:	Test/Course builder or higher
Expected Vars:	URL.InstanceID
				
History:		Date		Programmer		Notes
				6-15-04		Eddie Heard		Page Created

*******************  Page Info  *******************
*/


	function resizeIframe() {
		if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >=4)){ 
		windowwidth = window.innerWidth;
		windowheight = window.innerHeight;
		}
		else if((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=4)){ 
		windowwidth = document.body.clientWidth;
		windowheight = document.body.clientHeight;
		}else{ 
		windowwidth = 800;
		windowheight = 600;
		}				
		document.getElementById('the_iframe').style.height=(windowheight-150);
		document.getElementById('the_iframe').style.width=(windowwidth-300);
		// document.ContentWindow.style.height=(windowheight-200);
	}
