function nwScroll(cwsid,hwsid)
{
	var http = init();
	http.onreadystatechange = processRequest;

	function init()
	{
		var xmlHttp=null;
		try
		{
			xmlHttp=new XMLHttpRequest();
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e)
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		return xmlHttp;
	}

	function processRequest()
	{
		if (http.readyState == 4)
		{
			if (http.status == 200)
			{
				document.getElementById('NW').innerHTML = http.responseText;
			}
		}
	}
	http.open('GET', '/nw/nw.php?&cwsid='+cwsid+'&hwsid='+hwsid+'&'+Math.random(), true);
	http.send(null);
}

function nwQuickScroll(action,dir)
{
	if (action == 'start')
	{
		quickscroll = setInterval('nwQuick(\''+dir+'\')',400);
	}
	else
	{
		if (window.quickscroll)
		{
			clearInterval(quickscroll);
		}
	}
}

function reloadImg(container,img)
{
	var imgfld = document.getElementById(container);
	imgfld.src=img + '?' + Math.random();
}

/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}
