﻿ 
function printEvent(id,type)
{
	window.open("http://programmes.biblioottawalibrary.ca/events/lib/print.asp?id=" + id + "&LangType=" + type, "print", "width=300,  height=350, toolbar=0, scrollbars=1, left=1, top=5, screenX=1, screenY=200 charset=utf-8");	 
}

function emailEvent(id,type)
{
		window.open("http://programmes.biblioottawalibrary.ca/events/lib/emailevent.asp?action=Email&id=" + id + "&LangType=" + type, "email", "width=500,  height=450, toolbar=0, scrollbars=1, left=1, top=5, screenX=1, screenY=200  charset=utf-8");	
}

function notify(id,type)
{
		window.open("http://programmes.biblioottawalibrary.ca/events/lib/emailevent.asp?action=Notify&id="+id + "&LangType="+type, "notify", "width=400,  height=400, toolbar=0, scrollbars=1, left=1, top=5, screenX=1, screenY=200 charset=utf-8");	
}

function remind(id,type)
{
		window.open("http://programmes.biblioottawalibrary.ca/events/lib/emailevent.asp?action=Remind&id=" + id + "&LangType=" + type, "notify", "width=400,  height=400, toolbar=0, scrollbars=1, left=1, top=5, screenX=1, screenY=200 charset=utf-8");	
}


function libinfo(id,lang)
{
		window.open("branchinfo.cfm?libid=" + id + "&lang=" + lang, "Linraryinfo", "width=260,  height=400, toolbar=0, scrollbars=1, left=1, top=5, screenX=1, screenY=200");	
}

// function to load the calendar window to event search by date
function dateinsert_en(FormName, FieldName,lang) {
  window.open("helper/winpop_e.cfm?FormName=" + FormName + "&FieldName=" + FieldName + "&language=" + lang, "CalendarWindow", "width=250,height=210,left=970,top=200,screenX=0,screenY=0'");
}

// function to load the calendar window to event search by date
function dateinsert_fr(FormName, FieldName,lang) {
  window.open("helper/winpop_f.cfm?FormName=" + FormName + "&FieldName=" + FieldName + "&language=" + lang, "CalendarWindow", "width=250,height=210,left=970,top=200,screenX=0,screenY=0");
}
