// JavaScript Document


/*	function showList()
	{
		month = (document.getElementById("ddlMonth"))?document.getElementById("ddlMonth").value:0;
		year  = (document.getElementById("ddlYear"))?document.getElementById("ddlYear").value:0;
		rezUrl = preUrl;
		if(month>0)
		{
			rezUrl += '&month='+month;
		}
		if(year>0)
		{
			rezUrl += '&year='+year;
		}
		if(month<0 || year<0)
		{
			document.location.href = preUrl;
		}
		else if(month>0 || year>0)
		{
			document.location.href = rezUrl;
		}
	}
*/
	function showList()
	{
		month = (document.getElementById("ddlMonth"))?document.getElementById("ddlMonth").value:0;
		year  = (document.getElementById("ddlYear"))?document.getElementById("ddlYear").value:0;
		today = new Date();
		rezUrl = preUrl;
		if(year>0)
		{
			rezUrl += '/'+year;
		}
		if(month>0)
		{
			if(year==0) rezUrl += '/'+today.getFullYear();
			rezUrl += '/'+month;
		}
		else
		{
			rezUrl += '/00';
		}
		if(month<0 || year<0)
		{
			document.location.href = preUrl;
		}
		else if(month>0 || year>0)
		{
			document.location.href = rezUrl;
		}
	}

	function clearTextField(id)
	{
		if(document.getElementById(id).value == "login" || document.getElementById(id).value == "e-mail")
		{
			document.getElementById(id).value = '';
		}
	}
