/////////////////////////////
function newsDiv(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}
/////////////////////////////
function newsCNN01 (){
	newsDiv('cnn01',1)
	newsDiv('cnn02',0)
	newsDiv('cnn03',0)
}
function newsCNN02 (){
	newsDiv('cnn01',0)
	newsDiv('cnn02',1)
	newsDiv('cnn03',0)
}
function newsCNN03 (){
	newsDiv('cnn01',0)
	newsDiv('cnn02',0)
	newsDiv('cnn03',1)
}
/////////////////////////////
function Roll_gif(id,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[id].src = "images/" + id + "_over.gif";
		else
			window.document.images[id].src =  "images/" + id + ".gif";
	}
}
/////////////////////////////
//Simply add the below to the <BODY> of your page. It contains the validation script, plus a sample form following it:

/***********************************************
* Required field(s) validation v1.10- By NavSurf
* Visit Nav Surf at http://navsurf.com
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function formCheck(formobj){
	// Enter name of mandatory fields
	var fieldRequired = Array("FirstName", "LastName", "Email");
	// Enter field description to appear in the dialog box
	var fieldDescription = Array("FirstName", "LastName", "Email");
	// dialog message
	var alertMsg = "Please complete the following fields:\n";
	
	var l_Msg = alertMsg.length;
	
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		if (obj){
			switch(obj.type){
			case "select-one":
				if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}
	}

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}
// -->
