

function document.oncontextmenu() {
	var sEventTag = window.event.srcElement.tagName;
	if (sEventTag != "INPUT" && sEventTag != "TEXTAREA") {
		window.event.returnValue = false;
	}
	window.event.returnValue = true;
}

//Added by Aswathi for Quantum integration	
function SendtoQuantum(message)
{
    try
    {
	    if (window.XMLHttpRequest)
	    {
		    // If IE7, Mozilla, Safari, etc: Use native object
		    var client = new XMLHttpRequest();
	    }
	    else
	    {		
		    if (window.ActiveXObject)
		    {
			    // ...otherwise, use the ActiveX control for IE5.x and IE6
			    var client = new ActiveXObject("Microsoft.XMLHTTP");
		    }
	    }
	//alert(message)
	    client.open("GET", "/DataDirect/SendToQuantum.aspx?" + message, false);	
	    client.send();

	    if (client.status > 400)
	    {
	        alert('Request Failed. The HTTP error code is : ' + client.status)
	    }
	    else
	    {
		var str = client.responseText
    		var pattern = /\W+/g;
	    	//alert(str);
    		str = str.substring(str.indexOf("<body>") + 6 , str.indexOf("</body>"));
	    	//alert(str);
	    	str = str.replace(pattern, " ");	    	
	    	alert(str);
	    }

        }
	catch(ex)
	{
	    //alert(ex);
	}
	return false;
}	
