/**********************************************************
Author:
Adam Barry
Klestrup | partners
www.klestrup-partners.dk

Date: March 7 2008

© 2008 Adam Barry, all rights reserved

-----------------------------------------------------------

Name:
makeUrl script

-----------------------------------------------------------
Description:
Function that escapes city names when interlinking the new
and the old website for Cirkus Benneweis

-----------------------------------------------------------
Usage:
Simply place a link to the this script in the head-section
of the XHTML page and call the script when calling the
ticket reservation system on the old website.

<script type="text/javascript" src="makeUrl.js"></script>

<a href="javascript:makeURL('Hillerød',645)">City</a>

-----------------------------------------------------------
Dependencies:
None

**********************************************************/

function makeURL(city,id) {
	var city = escape(city);
	var url = "http://billet.benneweis.dk/page_billetter.asp?bynavn="+city+"&dato="+id;
	window.open(url,'tickets');
}

