function dateChangeForNews()
{
 	 var urlofthispage = this.document.URL;
	 
 	 var datatested = false;
	 var datadate = /(date=\d*)/i;
	 var questio = /(\?)/;
	 var datatested = datadate.test(urlofthispage);
	 var strValue1 = document.dateSelect.selected.options[document.dateSelect.selected.options.selectedIndex].value;	

	 if (questio.test(urlofthispage))
	 {
	 	 	var burl = urlofthispage+"&date="+strValue1;
	 }
	 else
	 {
	 	  var burl = urlofthispage+"?date="+strValue1;
	 }
	 var win = window.location.hostname;
	 var pathN = window.location.pathname;
	 var query = window.location.search;
	 
	 window.location.href=burl;
	 	 
	 aString = new String("date="+strValue1);
	 
	 if (datadate.test(query))
	 {
	 		 var blah = urlofthispage.replace(/(date=\d*)/i, aString);
	 	 	 window.location.href = blah;
	 }
	 else
	 {
	 		 window.location.href = burl;
	 }
 
}//end function
