// JavaScript Document
// Pop-up window
// Author: Kris Hedstrom
// Date: 3/3/2005
		
		// setup a controlled popup window
		function popup(title,url){
			
        	// state the web address, window name, width and height of popup
        	var myURL = 'http://www.learningcurveonline.org/email/index.asp?title='+title+'&url='+url, popupName = 'LearningCurve', popupWidth = 375, popupHeight = 550, mypopup;
        	// calculate the left edge (x position) of the popup window; if we can't get the screen width then make it 20 pixels (after the : )
        	var popupX = (screen.availWidth)? ((screen.availWidth - popupWidth) / 2): 20;
        	// calculate the top edge (y position) of the popup window; if we can't get the screen heigth then make it 20 pixels
        	var popupY = (screen.availHeight)? ((screen.availHeight - popupHeight) / 3):20;
        	// popup window chrome details: 0 is same as no, 1 is same as yes
        	var details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;
        	// now create the popup and assign it to a variable
        	mypopup = window.open(myURL,popupName,details);
			// give focus to our popup window, important if it's in the background
        	mypopup.focus();
			//return false;
		}