function KeyPress(keyCode){
	//var txtSearch = document.getElementById("LeftNav1_txtkeyword");
	//alert(document.Form1.LeftNav1_txtkeyword.value)
	//alert(window.event.keyCode)

	if (keyCode == 13 && document.Form1.LeftNav1_txtkeyword.value == "") return false; //event.keyCode = 0;
}

function popUp(URL){
	window.open(URL, "", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=650,height=580,left=0,top=0")		
}


function addKeyPressHandler(source, callback){
	nn=(document.layers)?true:false; 
	ie=(document.all)?true:false; 

	source.onkeypress=callback; 
	if(nn) document.captureEvents(Event.KEYPRESS);
}

function isKeyPressed(e, charCode) { 
	var evt=(e) ? e :(window.event)? window.event:null; 
	if (evt) { 
		var key=(evt.charCode) ? evt.charCode : ((evt.keyCode)?evt.keyCode:((evt.which)?evt.which:0)); 
		return key==charCode; 
	} 
}