function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function ckeckNewsAdd()
{
	if (document.addnews.title.value.length == 0)
	{
		alert("Please enter a title in the space provided.");
		document.addnews.title.focus();
		return false;
	}
	if (document.addnews.descrip.value.length == 0)
	{
		alert("Please enter a short description in the space provided.");
		document.addnews.descrip.focus();
		return false;
	}
	if (document.addnews.mydate.value.length == 0)
	{
		alert("Please enter a date in the space provided.");
		document.addnews.mydate.focus();
		return false;
	}
	return true;
}
function ckeckNewsMod()
{
	if (document.modnews.title.value.length == 0)
	{
		alert("Please enter a title in the space provided.");
		document.modnews.title.focus();
		return false;
	}
	if (document.modnews.descrip.value.length == 0)
	{
		alert("Please enter a short description in the space provided.");
		document.modnews.descrip.focus();
		return false;
	}
	if (document.modnews.mydate.value.length == 0)
	{
		alert("Please enter a date in the space provided.");
		document.modnews.mydate.focus();
		return false;
	}
	return true;
}
function confirmNewsDel()
{
    var conf = confirm("Are you sure want to delete this article?");
    if(true == conf){
        return true;
    }else if(false == conf){
        return false;
    }
}
function confirmNewsMove()
{
    var conf = confirm("Are you sure want to move this article to the archive?");
    if(true == conf){
        return true;
    }else if(false == conf){
        return false;
    }
}