var fileWin;
var file;

function openNW(fileName,width,height){
	if(width==null)	width = 800;
	if(height==null) height = 600;
    fileWin = window.open(fileName,'fileWindow','width='+width+',height='+height+',scrollbars=yes,location=yes,resizable=yes,toolbar=yes,menubar=yes');
    fileWin.focus()
}


function StatusMsg(msgStr,show) {
	if(show==null) show = true;
	status=msgStr;
	return document.StatusShow = show;
}


function showLayer(id) {
    var status;
    if(document.getElementById(id).style.display == "none"){
        status = "block"; 
    }else{
        status = "none"; 
    }
    document.getElementById(id).style.display = status; 
}

function WinOpen(fileName,width,height){
	fileWin = window.open(fileName,'fileWindow','width='+width+',height='+height+',scrollbars=no,status=no,statusbar=no,location=no,resizable=yes,toolbar=no,menubar=no');
	fileWin.focus();
}


function deleteFieldContent(el){
	var e = document.getElementById(el);
	//alert(e.value);
	e.value = "";
}