<!-- 
//Inital var for current acces option selectedet (id image)
var CurrentOption = new Image();
CurrentOption.src="";


function preload_images()
{
	imgs = preload_images.arguments; 
	for(i = 0; i < imgs.length; i++)
	{
		eval("image" + i + " = new Image();");
		eval("image" + i + ".src = '" + imgs[i] + "';");
	}
}

function rollover(imageName,newImageName,alt,oldsrc)
{

	if (document.images)
	{
		document[imageName].src = oldsrc.substring(0,oldsrc.indexOf(imageName)) + newImageName;
		document[imageName].alt = alt;
	}
}

function rollout(imageName,newImageName,alt,oldsrc)
{
	if (newImageName.Length == 0){return;}

	if (document.images)
	{
		document[imageName].src = oldsrc.substring(0,oldsrc.indexOf(imageName)) + newImageName;
		document[imageName].alt = alt;			
	}
}


function rolloverMult(imageName,newImageName,alt,oldsrc,originalName)
{

	if (document.images)
	{
		document[imageName].src = oldsrc.substring(0,oldsrc.indexOf(originalName)) + newImageName;
		document[imageName].alt = alt;
	}
}

function rolloutMult(imageName,newImageName,alt,oldsrc,originalName)
{
	if (document.images)
	{
		document[imageName].src = oldsrc.substring(0,oldsrc.indexOf(originalName)) + newImageName;
		document[imageName].alt = alt;			
	}
}	

//Change the status of the access butons

function changeStatus(formObjectName,setValue){
		var obj = document.getElementById(formObjectName).value = setValue;
		initValues(setValue);		
	}
	

//check the value of the hidden combo and switch the images and set the rest buttons

function initValues(value){
		if(value==0){
			$("ddlNewGroup").disabled = true;
		}

		if(value==1 || value==3){
			$("ddlNewGroup").disabled = false;
		}

		if(value==2){
			$("ddlNewGroup").disabled = true;	
		}
	}

// set on the buttons and remove the events
function setSelectedButton(obj,src){
	obj.src = src;
	obj.onmouseover="";
	obj.onmouseout="";
	obj.style.cursor= "default";		
	}

//add the events to the buttons and set off the image.
function setNotSelectedButton(obj,on,out,src){
	obj.src = src;
	obj.onmouseover=on;
	obj.onmouseout=out;
	obj.style.cursor= "";		
	}	

function UpdateSearch (imgBasic, imgAdvanced, bBasic) 
{	
	if (bBasic)
	{
		imgBasic.src = '../images/buttons/basicSearch_btOver.gif';
		imgBasic.outImage = '../images/buttons/basicSearch_btOver.gif';
		imgAdvanced.src = '../images/buttons/advancedSearch_bt.gif';
		imgAdvanced.outImage = '../images/buttons/advancedSearch_bt.gif';
	}
	else
	{
		imgBasic.src = '../images/buttons/basicSearch_bt.gif';
		imgBasic.outImage = '../images/buttons/basicSearch_bt.gif';
		imgAdvanced.src = '../images/buttons/advancedSearch_btOver.gif';
		imgAdvanced.outImage = '../images/buttons/advancedSearch_btOver.gif';
	}
}




// -->