function popupwindow(URL, WIDTH, HEIGHT) {
	smallwindow = window.open(URL,'small', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=' + WIDTH + ',height=' + HEIGHT);
	smallwindow.focus();
}

function resourcewindow(URL, WIDTH, HEIGHT) {
	var resourceWindow
	
	resourceWindow = window.open(URL, 'resource', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=' + WIDTH + ',height=' + HEIGHT);
	resourceWindow.focus();
}

function checkEnter(obj)
{
	obj.value = "";
}

//----------------------------------------------------------------------------------------------------
//-- Opens Generic Locked Window
//----------------------------------------------------------------------------------------------------
function openGenericLockedWindow(loc, newWidth, newHeight){
	var reportWindow

	reportWindow = window.open(loc, 'report', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=' + newWidth + ',height=' + newHeight);
	reportWindow.focus();
}	


//----------------------------------------------------------------------------------------------------
//-- Opens Generic Unlocked Window
//----------------------------------------------------------------------------------------------------
function openGenericUnLockedWindow(loc, newWidth, newHeight){
	var reportWindow

	reportWindow = window.open(loc, 'report', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=' + newWidth + ',height=' + newHeight);
	reportWindow.focus();
}