function newWindow(nom)
	{       
	window.open(""+nom+".htm", "WindowName","scrollbars=no,width=250,height=334");
	}
	
	function ImageViewer(nom)
	{       
	window.open(""+nom+"", "WindowName","scrollbars=no,width=800,height=600");
	}

if (document.images) {

 img1on = new Image();           
	img1on.src = "/graphics/on/home.gif";
	img2on = new Image();           
	img2on.src = "/graphics/on/about.gif";
	img3on = new Image();           
	img3on.src = "/graphics/on/locations.gif";
	img4on = new Image();           
	img4on.src = "/graphics/on/calendar.gif";
	img5on = new Image();           
	img5on.src = "/graphics/on/contact.gif";
	img6on = new Image();           
	img6on.src = "/graphics/on/enrollment.gif";

                                                                           
 img1off = new Image();
 img1off.src = "/graphics/off/home.gif";
	img2off = new Image();
 img2off.src = "/graphics/off/about.gif";
	img3off = new Image();
 img3off.src = "/graphics/off/locations.gif";
	img4off = new Image();
 img4off.src = "/graphics/off/calendar.gif";
	img5off = new Image();
 img5off.src = "/graphics/off/contact.gif";
	img6off = new Image();
 img6off.src = "/graphics/off/enrollment.gif";
}

function imgOn(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
  }
}
                                 
function imgOff(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
  }
}






//Verification for Admin Login Page. 
//Will not query Database unless both Username and Password fields are filled
function verifyAdminLogin(){
	if(document.frmAdminLogin.txtUserName.value==""){
		alert("Please enter a Username.");
		return false;
	}
	if(document.frmAdminLogin.txtPassword.value==""){
		alert("Please enter a Password.");
		return false;
	}
}
//----------------------------------------------------------------------------------------


//Verfication for Creation of New Stories
//Makes sure that all items are input before making an insert into the database
function verifyStoryCreate(){
	if(document.frmCreateStory.txtStoryTitle.value==""){
		alert("This field is required:\n\nTitle");
		return false;
	}
	if(document.frmCreateStory.selStoryCategory.selected==""){
		alert("This field is required:\n\nCategory");
		return false;
	}
	if(document.frmCreateStory.txtStoryBody.value==""){
		alert("This field is required:\n\nBody");
		return false;
	}
}
//---------------------------------------------------------------------------------------



//New Window for the Terms and Conditions
function winTerms()
	{       
	window.open("/terms.htm", "WindowName","scrollbars=yes,width=400,height=600");
	}
	//----------------------------------------------------------------------------------------