function DoDelete(IdValue) 
{		
	if (window.confirm("Are you sure you wan't to delete?")) 
		{			
		window.location.href=IdValue;
		}
	else
		{
		return false;
		}		
}

function OpenPopUp(id,type) {
	if(type!=0){		
		window.open("Articles/article"+id+".htm", "PopupWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=650,height=500,position=0');
	}
	else
	{		
		window.open("../Articles/article"+id+".htm", "PopupWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=650,height=500,position=0');	
	}
}

function PopUpWin(url) {
		window.open(url, "PopupWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=800,height=600,position=0');	
	}
//Banner Rotator
function loadpage() {
	Ban1();
	Ban2();
	Ban3();
}

//Banner1 Rotator
function Ban1() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
thetimer = setTimeout("changeimage1()", 3000);
banneradcode1 = 0;
listofimages = new Array(2);
listofimages[0] = new Image()
listofimages[0].src = "Banners/banner1.gif"
listofimages[1] = new Image()
listofimages[1].src = "Banners/banner2.gif"
listofimages[2] = new Image()
listofimages[2].src = "Banners/banner3.gif"
}
}

function changeimage1(){
if (browsertype == "new") {
banneradcode1 = banneradcode1 + 1
if (banneradcode1 == "4") {
banneradcode1 = 1
}
imagesource = "Banners/banner" + banneradcode1 + ".gif"
window.document.bannerad1.src = imagesource
thetimer = setTimeout("changeimage1()", 3000);
}
else if (browsertype == "old") {
}
}

function changepage1() {
if (browsertype == "new") {
if (banneradcode1 == 1) {
newlocation = "#"
}
else if (banneradcode1 == 2) {
newlocation = "#"
}
else if (banneradcode1 == 3) {
newlocation = "#"
}
location = newlocation
}
else if (browsertype == "old") {
location = "#"
}
}

//Banner2 Rotator
function Ban2() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
thetimer = setTimeout("changeimage2()", 3000);
banneradcode2 = 1;
listofimages = new Array(2);
listofimages[0] = new Image()
listofimages[0].src = "Banners/banner1.gif"
listofimages[1] = new Image()
listofimages[1].src = "Banners/banner2.gif"
listofimages[2] = new Image()
listofimages[2].src = "Banners/banner3.gif"
}
}

function changeimage2(){
if (browsertype == "new") {
banneradcode2 = banneradcode2 + 1
if (banneradcode2 == "4") {
banneradcode2 = 1
}
imagesource = "Banners/banner" + banneradcode2 + ".gif"
window.document.bannerad2.src = imagesource
thetimer = setTimeout("changeimage2()", 3000);
}
else if (browsertype == "old") {
}
}

function changepage2() {
if (browsertype == "new") {
if (banneradcode2 == 1) {
newlocation = "#"
}
else if (banneradcode2 == 2) {
newlocation = "#"
}
else if (banneradcode2 == 3) {
newlocation = "#"
}
location = newlocation
}
else if (browsertype == "old") {
location = "#"
}
}

//Banner3 Rotator
function Ban3() {
browver= parseInt(navigator.appVersion);
browtype = navigator.appName;
browsertype = "old";
if (browtype == "Netscape" && !(browver < 3)) {
browsertype = "new"; 
}
if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
browsertype = "new";
}
if (browsertype == "new") {
thetimer = setTimeout("changeimage3()", 3000);
banneradcode3 = 2;
listofimages = new Array(2);
listofimages[0] = new Image()
listofimages[0].src = "Banners/banner1.gif"
listofimages[1] = new Image()
listofimages[1].src = "Banners/banner2.gif"
listofimages[2] = new Image()
listofimages[2].src = "Banners/banner3.gif"
}
}

function changeimage3(){
if (browsertype == "new") {
banneradcode3 = banneradcode3 + 1
if (banneradcode3 == "4") {
banneradcode3 = 1
}
imagesource = "Banners/banner" + banneradcode3 + ".gif"
window.document.bannerad3.src = imagesource
thetimer = setTimeout("changeimage3()", 3000);
}
else if (browsertype == "old") {
}
}

function changepage3() {
if (browsertype == "new") {
if (banneradcode3 == 1) {
newlocation = "#"
}
else if (banneradcode3 == 2) {
newlocation = "#"
}
else if (banneradcode3 == 3) {
newlocation = "#"
}
location = newlocation
}
else if (browsertype == "old") {
location = "#"
}
}