function validateNews()
{
	var title=document.addnews.title;
	if (title.value.length==0)
	{
		alert('News title must not be empty');
		title.focus();
		return false;
	}
	var url=document.addnews.url;
	if ((url.value.length==0)||(url.value=="http://"))
	{
		alert('News URL must not be empty');
		url.focus();
		return false;
	}else{
		Url2=url.value
		p=Url2.substring(0,7)
		u=Url2.substring(4,2)
		if(p!="http://")
		{
			alert("URL should start with http://")
			url.focus();
			return false;
		}
	}

	var descr=document.addnews.descr;
	if (descr.value.length==0)
	{
		alert('News Description must not be empty');
		descr.focus();
		return false;
	}
	var category=document.addnews.category;
	if((category.value=='choose') && (document.addnews.addcategory.value==0))
	{
		alert('Choose a Sport or Enter New Sport');
		document.addnews.addcategory.focus();
		return false;
	}
}
