<!---//
var divCL = "";
function rowOver(div){
	divCL = div.className;
	div.className = "trOver";
}
function rowOut(div){
	div.className = divCL;	
}
//--->

function checkDelete(location, type){
	var confirmDelete = confirm('This will PERMENANTLY delete this ' + type + '. Are you sure?');
	if(confirmDelete){
		window.location=location;
	}
}

function clearMedia(location){
	var confirmDelete = confirm('This will clear any record of this media from the Database and Remove it from any Channels this it is currently displayed on. Are you sure?');
	if(confirmDelete){
		window.location= location;
	}
}

function deleteSubChannel(location){
	var confirmDelete = confirm('This will PERMENANTLY remove this subchannel, and unlink all media from it. Are you sure?');
	if(confirmDelete){
		window.location= location;
	}
}

function showDiv(which){
	if(document.getElementById(which).style.display=="none"){
		document.getElementById(which).style.display = "block";
	} else {
		document.getElementById(which).style.display = "none";
	}
}

function openWindow(url,width,height) { 
	var Win=window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizeable=0,scrollbars=yes,menubar=no,status=no'); 
} 

