<!-- This page contains all javascript code use in the application.  It is "Included" in "top.html"

//For "skipping" from a combo box to a page
function goNav(fE) {
				urlStr = fE.options[fE.selectedIndex].value;
				window.parent.location = urlStr;
			}
			
//---->

//For Hover Colors

function setCellColor(foo,foo2)
{
  foo.bgColor=foo2;
}

//---->

//For Opening a popup Window
function createWindow(strUrl) {
	var features = 'directories=no' + 
	',width=800' + 
	',height=500' + 
	',screenX=800' +
	',screenY=600' +
	',top=100' +
	',left=100' +
	',location=no' + 
	',menubar=no' + 
	',scrollbars=yes' + 
	',status=yes' + 
	',toolbar=no' + 
	',resizable=yes'; 
	
	window.open(strUrl,'MyWindow',features);
}

//For selecting all in a checkbox grid
function SelectAllCheckboxes(spanChk){

   // Added as ASPX uses SPAN for checkbox
   var oItem = spanChk.children;
   var theBox= (spanChk.type=="checkbox") ? 
        spanChk : spanChk.children.item[0];
   xState=theBox.checked;
   elm=theBox.form.elements;

   for(i=0;i<elm.length;i++)
     if(elm[i].type=="checkbox" && 
              elm[i].id!=theBox.id)
     {
       //elm[i].click();
       if(elm[i].checked!=xState)
         elm[i].click();
       //elm[i].checked=xState;
     }
 }
//---->

