function changeCardType() {
	if (!$('cardtype'))
		return;
		
	if ($('cardtype').value == "SWITCH" || $('cardtype').value == "SOLO")
	{
		Element.show('issue-row');
		Element.show('startdate-row');
		Element.show('sda');
		Element.show('sdb');
	} else {
		Element.hide('issue-row');
		Element.hide('startdate-row');
		Element.hide('sda');
		Element.hide('sdb');
	}
}

Event.observe( window, "load", changeCardType );

function gotoEvent( eventName, openInNewWindow, params ) {
	if( params != undefined ) params = "&" + params;
	else params = "";
	if( openInNewWindow == undefined ) openInNewWindow = false;
	if( openInNewWindow ) self.open( self.location.protocol + "//" + self.location.host + self.location.pathname + "?event=" + eventName + params );
	else self.location.href = self.location.protocol + "//" + self.location.host + self.location.pathname + "?event=" + eventName + params;
}