// JavaScript Document

function colour_change(fld){
fld.style.background = '#E5F1EE';	
}

function colour_return(fld){
fld.style.background = '#FFFFFF';
}

function Confirm_Delete_Article(){
var answer = confirm ("Are you sure you want to delete this article?")
if (answer)
window.location="./deletearticle.php"
else
MyReload()
}

function Confirm_Delete_News(){
var answer = confirm ("Are you sure you want to delete this news item?")
if (answer)
window.location="./deletenews.php"
else
MyReload()
}

function SetClientInactive(){
var answer = confirm ("This will set the client to an inactive status?")
if (answer)
window.location="./setInactive.php"
else
MyReload()
}


function SetHomePage(){
var answer = confirm ("This will set this item to the home page?")
if (answer)
window.location="./setHomepage.php"
else
MyReload()
}


function Confirm_Delete_Article_Member(){
var answer = confirm ("Are you sure you want to delete this article?")
if (answer)
window.location="./delArticles.php"
else
MyReload()
}

function Confirm_Delete_News_Member(){
var answer = confirm ("Are you sure you want to delete this item?")
if (answer)
window.location="./delNews.php"
else
MyReload()
}

function MyReload()
{
window.location.reload();
} 
