/**
 * Opens a Popup Window
 *
 * @param	url				The url to navigate to
 * @param	width			The width of the window in pixels
 * @param	height		The height of the window in pixels
 * @param	resize		Resizable?
 * @param scroll		Scrollbars?
 */
function popupWindow(url, width, height, resize, scroll)
{
	window.open(url, '_blank', 'width='+width+',height='+height+',resizable='+resize+',scrollbars='+scroll);
}

/**
* Hides email addresses from spambots
*
* @param	user	The username of the email address
*/
function createEmail(user)
{
	// Default email info
	var domain = 'appliedlearning';
	var dotcom = '.com';
	// Load in the email address
	window.location = 'mailto:'+user+'@'+domain+dotcom;
}