function OpenLink(ID, File){
	window.open('mbr_doc_open.asp?lk=1&ID=' + ID + '&FN=' + File,'LinkedDoc','top=140, left=140, width=650, height=350, resizable=yes, menubar=yes, toolbar=yes')
}

function OpenCopy(ID, File){
	window.open('mbr_doc_open.asp?ID=' + ID + '&FN=' + File,'CopiedDoc','top=140, left=140, width=650, height=350, resizable=yes, menubar=yes, toolbar=yes')
}

function OpenDoc(ID){
	window.open('doc.asp?ID=' + ID,'Doc','top=100, left=100, width=650, height=400, resizable=yes, menubar=no, toolbar=yes, titlebar=no, scrollbars=yes');
}

function NewFolder(){
	window.open('mbr_folders_new.asp', 'NewFolder', 'top=140, left=140, width=310, height=200, resizable=yes, menubar=no, toolbar=no')
}

function RenameFolder(ID){
	window.open('mbr_folders_update.asp?ID=' + ID, 'RenameFolder', 'top=140, left=140, width=310, height=200, resizable=yes, menubar=no, toolbar=no')
}

function OpenAlert(ID, File, Alert){
	window.open('mbr_doc_alerts_new.asp?ID=' + ID + '&FN=' + File + '&Alert=' + Alert, 'Alert', 'top=140, left=140, width=300, height=180, resizable=yes, menubar=no, toolbar=no');
	//win1 = open('mbr_doc_alerts_new.asp?ID=' + ID + '&FN=' + File + '&Alert=' + Alert, 'Alert', 'top=140, left=140, width=300, height=180, resizable=yes, menubar=no, toolbar=no');
	//win1.focus();
	//window.opener.location= 'mbr_doc_alerts_new.asp?ID=' + ID + '&FN=' + File + '&Alert=' + Alert, 'Alert', 'top=140, left=140, width=300, height=180, resizable=yes, menubar=no, toolbar=no';
	//close();
	
}

function Alert(ID, File){
	if (confirm("Do you want to receive Alerts when the document is updated?\n\nOK=Yes - Cancel=No")){
		OpenAlert(ID, File, 1);
	}
	else{
		OpenAlert(ID, File, 0);
	}
}

//Change Cell Backgrounds 
function cOn(td){
bgOn('#CFDFFF',td);
}

function cOut(td){
bgOn('white',td);
}

function cOn(td){
bgOn('#CFDFFF',td);
}

function cOut(td){
bgOn('white',td);
}

function bgOn(color,td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor=color;
}
}

function bgOut(color,td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor=color;
}
}