function showevent (ID)
{
	window.open("ShowEventDetails.asp?ID=" + ID, "nw",'titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=200,width=500,height=500')

}

function showeventLIST (M,D,Y)
{
	var url= "ECalc/EventsList.asp?Day=" + D +"&Month="+ M + "&Year="+ Y
	//alert(url)
	window.open(url, "nw",'titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=200,width=500,height=500')

}

function showevent4Big (ID)
{
	window.open("ECalc/ShowEventDetails.asp?ID=" + ID, "nw",'titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=200,width=500,height=500')

}

function showeventLISTAdmin (M,D,Y)
{
	var url= "EventsList.asp?Day=" + D +"&Month="+ M + "&Year="+ Y
	//alert(url)
	window.open(url, "nw",'titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=0,left=200,width=500,height=500')

}

function Editevent (ID)
{
	window.open("Editevent.asp?ID=" + ID, "nw",'titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=200,width=500,height=500')

}

function winOpen(iId)
{
		var qstr = "selImage.asp?id="+ iId
		//alert(qstr);
		myWindow = window.open(qstr,'MyWindow','width=300,height=300')
		
}
function goToDate()
{
	var m = document.getElementById("month");
	var y =document.getElementById("year")
	var r = m.options[m.selectedIndex]
	alert(r)
	location.href ='default.asp?action=category&id=15&month=3&year=2009';
}

function validateEventForm(ths)
{
	//alert(ths.Title.value);
	var args,title,desc,msg;
	args = true;
	msg = "Pls fill following missed information\n";	
	title =  ths.Title.value;
	desc =  ths.Description.value;
	
	if(title =="" || title == null)
		{
			args = false;
			msg += "Title\n";
		}
	if(desc == "" || desc == null)
		{
			args = false;
			msg += "Description\n";
		}
	if(!args)
		{
			alert(msg);
			return args;
		}
	
}

function RemoveImage(imageID)
{
	//alert(imageID);
	var d = document.getElementById(imageID);
	d.value = "";
	
}
