//*******************************************
//FULLSCREEN POPUP
//*******************************************
function OpenFullWindow(targeturl){
	window.open(targeturl,"","fullscreen")
}

//*******************************************
//POP-UP WINDOW
//*******************************************
function OpenBrWindow(theURL,winName,features) {
	Window = window.open(theURL,winName,features);
}

function checkLength(which){
	document.getElementById("lblCommentLen").innerHTML = "Total Length: " + which.value.length;
	if(which.value.length > which.limit-1) {
		return false;
	}else{
		return true;
	}
}

function Confirmation(str){
	return confirm(str);
}

RollOff = new Array()
RollOn = new Array()
	
RollOff[0] = "images/navProfileOff.gif";
RollOff[1] = "images/navPracticeAreasOff.gif";
RollOff[2] = "images/navMediaOff.gif";
RollOff[3] = "images/navContactOff.gif";

RollOn[0] = "images/navProfileOn.gif"; 
RollOn[1] = "images/navPracticeAreasOn.gif";
RollOn[2] = "images/navMediaOn.gif";
RollOn[3] = "images/navContactOn.gif";

function swap(type,objname,id){
	var obj = document.getElementById(objname);
	if(type == 1){
		obj.src = RollOn[id];
	}else{
		obj.src = RollOff[id];
	}
}

function show(num){
	for(var i=0;i<CreateArray().length;i++){
		var obj = CreateArray()[i];
		if(i == num){
			obj.style.display = 'block';
		}else{
			obj.style.display = 'none';
		}
	}
}

function FocusClear(which,str){
	if(which.value == str){
		which.value = "";
	}
}
function BlurClear(which,str){
	if(which.value == ""){
		which.value = str;
	}
}
