//Search 
function dc_search(obj, ev)
{
	if(ev.keyCode)
		var kc = ev.keyCode;
	if(ev.which)
		var kc = ev.which;
	if(kc=="13")
	{
		if(obj.value=="" || obj.value.length<1 || obj.value.replace(/\s*/g,"")=="")
		{
			obj.value = "";
			return false;
		}
		document.location.replace('http://www.nxsource.com/search/?kw='+obj.value);
	}
	return false;
}
function popupWindow( pageToLoad, winName, width, height, center,resizeable,scrollable) {
	xposition=0; yposition=0;
	if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	args = "width=" + width + ","
	+ "height=" + height + ","
	+ "location=0,"
	+ "menubar=0,"
	+ "resizable="+resizeable
	+ ",scrollbars="+scrollable
	+ ",status=0,"
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0,"
	+ "screenx=" + xposition + "," //NN Only
	+ "screeny=" + yposition + "," //NN Only
	+ "left=" + xposition + "," //IE Only
	+ "top=" + yposition; //IE Only
	window.open( pageToLoad,winName,args );
}
