//this pops a term in the glossary
function PopupGlossary(entry_id) {
	//open the window
	var window_handle = window.open("/resources/glossary_popup.asp?entry_id=" + entry_id, "popup_glossary", "top=0,left=0,width=400,height=250,scrollbars=yes,resizable=yes");
	
	//focus the window in case it was already open
	window_handle.focus();
}

//this pops the email form to email a user from the discussion board
function PopupDiscussionEmail(to_user_id) {
	//open the window
	var window_handle = window.open("/discussion/email_user_popup.asp?to_user_id=" + to_user_id, "popup_discussion_email", "top=5,left=5,width=650,height=450,scrollbars=yes,resizable=yes");
	
	//focus the window in case it was already open
	window_handle.focus();
}

//this pops the email form to email for various purposes from the contact us page
function PopupContactEmail(email_type) {
	//open the window
	var window_handle = window.open("/contact/contact_form_popup.asp?email_type=" + email_type, "popup_contact_email", "top=10,left=10,width=650,height=560,scrollbars=yes,resizable=yes");
	
	//focus the window in case it was already open
	window_handle.focus();
}

//this pops up the glass consultation form page
function PopupConsultationForm() {
	//open the window
	var window_handle = window.open("/contact/consultation_form_popup.asp", "popup_consultation_form", "top=10,left=10,width=650,height=560,scrollbars=yes,resizable=yes");
	
	//focus the window in case it was already open
	window_handle.focus();
}

//this pops up the view larger window
function PopupViewLarger(image_name, image_width, image_height) {
	//set the height for the new window
	var window_width	= image_width + 0;
	var window_height	= image_height + 42;
	
	//open the window
	var window_handle = window.open("/view_larger.asp?image_name=" + image_name + "&image_width=" + image_width + "&image_height=" + image_height, "", "top=15,left=15,width=" + window_width + ",height=" + window_height);
}