	
	function KeywordProcessor(strURL,divName)
	{
		var xmlHttpReq = false;
		var self = this;
		// Mozilla/Safari
		if (window.XMLHttpRequest)
		{
			self.xmlHttpReq = new XMLHttpRequest();
		}
		// IE 
		else if (window.ActiveXObject) 
		{
			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		self.xmlHttpReq.open('POST', strURL, true);
		self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		self.xmlHttpReq.onreadystatechange = function() 
		{
			if (self.xmlHttpReq.readyState == 4)
			{
				updatepage(self.xmlHttpReq.responseText,divName);
			}
		}
		self.xmlHttpReq.send(strURL);
	}

	
	function ProductKeyword()
	{	
		
		//alert("sadsadsds");
		var ProductKey = document.forms['category'].ProductKey.value;
		
		
		updatepage("<font class='textbox'>Conforming stream Keyword ...</font>","result");
		strURL = "CheckProductKey.php?id="+ProductKey ;
		KeywordProcessor(strURL,"result");
		
	} 
	
	
	function updatepage(str,divName){

		//alert('updating');
		//alert(divName);
		//alert(str);
		
		if(str == "<b><font color='#FF0000'>stream Key already exists..</font></b>")
		{
			document.category.ProductKey.select();
			
			
		}
		document.getElementById(divName).innerHTML = str;

	}


