			
	function PrintPage(whichURL,ScrollBar) {
	windowDoPop=window.open(whichURL,'doPop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=547');
	windowDoPop.focus();    
}
			
			
function MM_SetFocus(control) { //v2.0
  control.focus(); }
		
		
			function selectEntireTxtBox(objTxtBox) {
			var iStart = 0;
			var iEnd = objTxtBox.length;
			
				var oRange = objTxtBox.createTextRange(); 
				oRange.moveStart("character", iStart);
				oRange.moveEnd("character", iEnd);
				oRange.select();}
		
			var windowDoPop	
			function go(whichURL,features) {
			windowDoPop=window.open(whichURL,'doPop',features);
			windowDoPop.focus();   }			
			
 


            function doHide(control)
            {
                document.all(control).style.display = "none";
            }
            function doShow(control)
            {
                document.all(control).style.display = "inline";
            }
            
    

window.name = "WMain";
// this function opens the pop-up window
var newWin;
function popUp(page, name, details) {
newWin=window.open(page, name, details);
newWin.focus();
return false;
}           
            
      
function IsTopLevel(obj,objControl){
if (document.all(obj).options[document.all(obj).options.selectedIndex].value == "new")
document.all(objControl).disabled = true ;
else
document.all(objControl).disabled = false ;
}

function ShowRoles(obj,objControl,ClearIndexs){
if (document.all(obj).checked)
document.all(objControl).disabled = false;
if (document.all(obj).checked == false)
{
if (ClearIndexs == 'true')
document.all(objControl).selectedIndex =-1;
document.all(objControl).disabled = true;
}
}

function selectAllOptions(objControl)
{
var ref = document.all(objControl);
for(i=0; i<ref.options.length; i++)
ref.options[i].selected = true;
}

function PrintThisPage(){
	window.focus();		
	window.print();		
}	

function validatestring(objval)
{
	if (trimAll(document.getElementById(objval).value) == "")
	{
	alert('* Please specify some text');
	 return false;
	}
	 else
	{
	 return true;
	}	 
}

function ValidateQuickNav(objval)
{
	if (trimAll(document.getElementById(objval).value) == "")
	{
	alert('Please select a page within the \'' + document.getElementById(objval).options[document.getElementById(objval).options.selectedIndex].text + '\' group.');
	 return false;
	}
	 else
	{
	 window.navigate(document.getElementById(objval).value);
	 return true;
	}	 
}

function trimAll(sString) 
{
while (sString.substring(0,1) == ' ')
{
sString = sString.substring(1, sString.length);
}
while (sString.substring(sString.length-1, sString.length) == ' ')
{
sString = sString.substring(0,sString.length-1);
}
return sString;
}
