
function go(uname,pword) {
	document.loginform.username.value=uname;
	document.loginform.password.value=pword;
	document.loginform.submit();
}

function deleteCheck(URLin) {
	if(confirm('Are you sure you wish to delete this post?')) {
		window.location=URLin;
		}
	}

function deleteFileCheck(URLin) {
	if(confirm('Are you sure you wish to delete this file?')) {
		window.location=URLin;
		}
	}
	
function deleteNavCheck(URLin) {
	if(confirm('Are you sure you wish to delete this navigation item?')) {
		window.location=URLin;
		}
	}	
	
function deletefile(filename) {
	if (confirm('Are you sure you wish to delete '+filename+'?')) {      
		document.location='resources.asp?delete='+filename;   
		}	
	}
	
function deleteDocumentFile(filepath,filename) {
    if (confirm('Are you sure you wish to delete '+filename+'?')) {      
		document.location='adminDocumentManager.aspx?delete='+filename+'&path='+filepath;   
		}
    }	

function submitFileForm(URLin,folderin) {
	document.UpForm.action=URLin+'&foldersave='+folderin;
	//alert('formvalue='+URLin+'&folder='+folderin);
	document.UpForm.submit();
	}

function onSubmitForm() {
    var formDOMObj = document.frmSend;
    if (formDOMObj.attach1.value == "" )
        alert("Please press the browse button and pick a file.")
    else
        return true;
    return false;
}