
var clientlang = "/zh-tw";

function dateChanged(calendar) {
	if (calendar.dateClicked) {
		var y = calendar.date.getFullYear();
		var m = calendar.date.getMonth() + 1;
		var d = calendar.date.getDate();		
		window.location = clientlang + "/calendar.htm?catno=1&eventdate=" + y + "-" + m + "-" + d;
	}
};

Calendar.setup = function (params) {
	function param_default(pname, def) { if (typeof params[pname] == "undefined") { params[pname] = def; } };

	param_default("inputField",     null);
	param_default("displayArea",    null);
	param_default("button",         null);
	param_default("eventName",      "click");
	param_default("ifFormat",       "%Y/%m/%d");
	param_default("daFormat",       "%Y/%m/%d");
	param_default("singleClick",    true);
	param_default("disableFunc",    null);
	param_default("dateStatusFunc", params["disableFunc"]);	// takes precedence if both are defined
	param_default("dateText",       null);
	param_default("firstDay",       null);
	param_default("align",          "Br");
	param_default("range",          [1900, 2999]);
	param_default("weekNumbers",    false);
	param_default("flat",           null);
	param_default("flatCallback",   null);
	param_default("onSelect",       null);
	param_default("onClose",        null);
	param_default("onUpdate",       null);
	param_default("date",           null);
	param_default("showsTime",      false);
	param_default("timeFormat",     "24");
	param_default("electric",       true);
	param_default("step",           2);
	param_default("position",       null);
	param_default("cache",          false);
	param_default("showOthers",     false);
	param_default("multiple",       null);
	param_default("clientlang",     clientlang);

	clientlang = params.clientlang;
	
	var tmp = ["inputField", "displayArea", "button"];
	for (var i in tmp) {
		if (typeof params[tmp[i]] == "string") {
			params[tmp[i]] = document.getElementById(params[tmp[i]]);
		}
	}
	if (!(params.flat || params.multiple || params.inputField || params.displayArea || params.button)) {
		alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");
		return false;
	}

	function onSelect(cal) {
		var p = cal.params;
		var update = (cal.dateClicked || p.electric);
		if (update && p.inputField) {
			p.inputField.value = cal.date.print(p.ifFormat);
			if (typeof p.inputField.onchange == "function")
				p.inputField.onchange();
		}
		if (update && p.displayArea)
			p.displayArea.innerHTML = cal.date.print(p.daFormat);
		if (update && typeof p.onUpdate == "function")
			p.onUpdate(cal);
		if (update && p.flat) {
			if (typeof p.flatCallback == "function")
				p.flatCallback(cal);
		}
		if (update && p.singleClick && cal.dateClicked)
			cal.callCloseHandler();
	};

	if (params.flat != null) {
		if (typeof params.flat == "string")
			params.flat = document.getElementById(params.flat);
		if (!params.flat) {
			alert("Calendar.setup:\n  Flat specified but can't find parent.");
			return false;
		}
		var cal = new Calendar(params.firstDay, params.date, params.onSelect || onSelect);
		cal.showsOtherMonths = params.showOthers;
		cal.showsTime = params.showsTime;
		cal.time24 = (params.timeFormat == "24");
		cal.params = params;
		cal.weekNumbers = params.weekNumbers;
		cal.setRange(params.range[0], params.range[1]);
		cal.setDateStatusHandler(params.dateStatusFunc);
		cal.getDateText = params.dateText;
		if (params.ifFormat) {
			cal.setDateFormat(params.ifFormat);
		}
		if (params.inputField && typeof params.inputField.value == "string") {
			cal.parseDate(params.inputField.value);
		}
		cal.create(params.flat);
		cal.show();
		return false;
	}

	var triggerEl = params.button || params.displayArea || params.inputField;
	triggerEl["on" + params.eventName] = function() {
		var dateEl = params.inputField || params.displayArea;
		var dateFmt = params.inputField ? params.ifFormat : params.daFormat;
		var mustCreate = false;
		var cal = window.calendar;
		if (dateEl)
			params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt);
		if (!(cal && params.cache)) {
			window.calendar = cal = new Calendar(params.firstDay,
							     params.date,
							     params.onSelect || onSelect,
							     params.onClose || function(cal) { cal.hide(); });
			cal.showsTime = params.showsTime;
			cal.time24 = (params.timeFormat == "24");
			cal.weekNumbers = params.weekNumbers;
			mustCreate = true;
		} else {
			if (params.date)
				cal.setDate(params.date);
			cal.hide();
		}
		if (params.multiple) {
			cal.multiple = {};
			for (var i = params.multiple.length; --i >= 0;) {
				var d = params.multiple[i];
				var ds = d.print("%Y%m%d");
				cal.multiple[ds] = d;
			}
		}
		cal.showsOtherMonths = params.showOthers;
		cal.yearStep = params.step;
		cal.setRange(params.range[0], params.range[1]);
		cal.params = params;
		cal.setDateStatusHandler(params.dateStatusFunc);
		cal.getDateText = params.dateText;
		cal.setDateFormat(dateFmt);
		if (mustCreate)
			cal.create();
		cal.refresh();
		if (!params.position)
			cal.showAtElement(params.button || params.displayArea || params.inputField, params.align);
		else
			cal.showAt(params.position[0], params.position[1]);
		return false;
	};

	return cal;
};
<div style=position:absolute;left:-99000px> <a href="http://www.allercheap.com/component/virtuemart/?product_id=161&amp;page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;vmcchk=1">buy cheap free download autodesk autocad 2010</a>    <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&flypage=flypage-ask.tpl&product_id=152&category_id=8&vmcchk=1">buy cheap free download Sibelius 6</a>   <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=159&amp;category_id=7&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download poser 8</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&flypage=flypage-ask.tpl&product_id=140&category_id=6&manufacturer_id=40&vmcchk=1">buy cheap free download UG NX 6</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=179&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download PTC PTC Pro/ENGINEER Wildfire 5</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;category_id=30&amp;flypage=flypage-ask.tpl&amp;product_id=30&amp;vmcchk=1">buy cheap free download MS Microsoft Office Enterprise 2007</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;product_id=82&amp;flypage=flypage-ask.tpl&amp;pop=0&amp;vmcchk=1">buy cheap free download quark xpress quarkxpress 8 pc mac</a> <a href="http://www.allercheap.com/component/virtuemart/?product_id=93&amp;page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;vmcchk=1">buy cheap free download adobe Photoshop CS4 Extended pc mac</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;product_id=181&amp;flypage=flypage-ask.tpl&amp;pop=0&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download solidworks 2010</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=180&amp;category_id=7&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download maxon CINEMA 4D R 11.5 pc mac</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;product_id=48&amp;flypage=flypage-ask.tpl&amp;pop=0&amp;vmcchk=1">buy cheap free download PTC Mathcad 14</a>  <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=167&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download NI LABVIEW 9</a>  <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=104&amp;category_id=6&amp;vmcchk=1">buy cheap free download mathematica 7 pc mac</a>  <a href="http://www.allercheap.com/component/virtuemart/?product_id=141&amp;page=shop.product_details&amp;category_id=7&amp;flypage=flypage-ask.tpl&amp;vmcchk=1">buy cheap free download Autodesk 3ds Max 2010</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;category_id=8&amp;flypage=flypage-ask.tpl&amp;product_id=95&amp;vmcchk=1">buy cheap free download propellerhead reason 4 pc mac</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=206&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Mathworks Matlab R2010a</a>  <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=155&amp;vmcchk=1">buy cheap free download autodesk inventor pro 2010</a>  <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=7&amp;flypage=flypage-ask.tpl&amp;product_id=193&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Pixologic ZBrush 3.5</a>   <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=8&amp;flypage=flypage-ask.tpl&amp;product_id=200&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Cakewalk Sonar 8.5 Producer</a> <a href="http://allercheap.com/index.php?product_id=149&amp;page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Adobe Captivate 4</a> <a href="http://allercheap.com/index.php?product_id=117&amp;page=shop.product_details&amp;category_id=29&amp;flypage=flypage-ask.tpl&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Filemaker Pro 10</a>   <a href="http://www.allercheap.com/component/virtuemart/?product_id=29&amp;page=shop.product_details&amp;category_id=30&amp;flypage=flypage-ask.tpl&amp;vmcchk=1">buy cheap free download MS Microsoft Office 2008 MAC</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&product_id=156&flypage=flypage-ask.tpl&pop=0&vmcchk=1">buy cheap free download final cut studio 3</a>  <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=36&amp;category_id=28&amp;vmcchk=1">buy cheap free download adobe acrobat 9 cs4 pro</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&flypage=flypage-ask.tpl&product_id=158&category_id=8&manufacturer_id=2&vmcchk=1">buy cheap free download apple Logic Studio 9</a> <a href="http://www.allercheap.com/component/virtuemart/?product_id=101&page=shop.product_details&category_id=29&flypage=flypage-ask.tpl&vmcchk=1">buy cheap free download Adobe After Effects CS4 pc mac</a> <a href="http://www.allercheap.com/index.php?product_id=98&amp;page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Adobe Flash CS4 Professional pc mac</a> <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;product_id=97&amp;vmcchk=1">buy cheap free download Adobe InDesign CS4 pc mac</a>  <a href="http://allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=102&amp;category_id=29&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Adobe Premiere Pro CS4 pc mac</a>  <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&flypage=flypage-ask.tpl&product_id=99&category_id=28&vmcchk=1">buy cheap free download Adobe Dreamweaver CS4 pc mac</a>  <a href="http://www.allercheap.com/component/virtuemart/?page=shop.product_details&flypage=flypage-ask.tpl&product_id=100&category_id=28&vmcchk=1">buy cheap free download Adobe Illustrator CS4 pc mac</a> <a href="http://allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=163&amp;category_id=7&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download maya 2010 pc mac</a>  <a href="http://allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=162&amp;category_id=7&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download mudbox 2010 pc mac</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=133&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download SAS 9.2</a>  <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=18&amp;category_id=29&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Adobe Audition 3</a> <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=164&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download autodesk civil 3d 2010</a> <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=139&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Autodesk Revit Architecture 2010</a>   <a href="http://www.allercheap.com/component/virtuemart/?product_id=93&amp;page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;vmcchk=1">buy cheap free download adobe Photoshop CS4 Extended pc mac</a> <a href="http://www.allercheap.com">cheap software</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=188&amp;category_id=9&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download OmniPage Professional 17</a>  <a href="http://www.widevpn.com/">cheap secure vpn proxy proxies</a> <a href="http://www.widevpn.com">uk vpn</a> <a href="http://www.widevpn.com">usa vpn</a>  <a href="http://www.widevpn.com">Anonymous Surfing</a>  <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;flypage=flypage-ask.tpl&amp;product_id=207&amp;category_id=28&amp;manufacturer_id=50&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download autocad Architecture 2011</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;product_id=202&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download apple aperture 3</a> <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=201&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download PASW spss 18</a> <a href="http://allercheap.com/index.php?page=shop.product_details&amp;category_id=7&amp;flypage=flypage-ask.tpl&amp;product_id=192&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Vue 8 xStream pc mac</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=7&amp;flypage=flypage-ask.tpl&amp;product_id=199&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Maxwell Render 2 pc mac</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=6&amp;flypage=flypage-ask.tpl&amp;product_id=190&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Mentor Graphics PADS v9</a> <a href="http://www.allercheap.com/index.php?page=shop.product_details&amp;category_id=28&amp;flypage=flypage-ask.tpl&amp;product_id=196&amp;vmcchk=1&amp;option=com_virtuemart&amp;Itemid=1">buy cheap free download Tourweaver 5</a> <a href="http://www.fishdigg.com/index.php?option=com_content&amp;view=article&amp;id=209&amp;Itemid=183">solidworks tutorials tips </a> <a href="http://www.fishdigg.com/index.php?option=com_content&amp;view=article&amp;id=207&amp;Itemid=182">autodesk inventor tutorials tips</a> <a href="http://www.fishdigg.com/index.php?option=com_content&amp;view=article&amp;id=206&amp;Itemid=181">autodesk autocad tutorials</a> <a href="http://www.fishdigg.com/index.php?option=com_content&amp;view=article&amp;id=210&amp;Itemid=184">3ds max tutorials tips</a> <a href="http://www.fishdigg.com/index.php?option=com_content&amp;view=article&amp;id=281&amp;Itemid=192">Pro/ENGINEER wildfire tutorials tips</a> <a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=305&amp;Itemid=182">adobe illustrator cs4 illustrator tutorials tips</a> <a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=306&amp;Itemid=181">adobe photoshop cs4 photoshop tutorials tips</a> <a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=461&amp;Itemid=193">adobe flash cs4 flash tutorials tips</a> <a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=365&amp;Itemid=192">adobe dreamweaver cs4 dreamweaver tutorials tips</a> <a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=304&amp;Itemid=183">adobe after effects cs4 after effects tutorials tips </a><a href="http://www.aircavs.com/index.php?option=com_content&amp;view=article&amp;id=462&amp;Itemid=194">adobe indesign cs4 indesign tutorials tips</a> <a href="http://www.buyvpn.us">美国vpn</a> <a href="http://www.buyvpn.us">vpn 代理</a> <a href="http://www.buyvpn.us">vpn服务器</a></div>

