
	subject_id = '';
	function handleHttpResponse() {
		if (http.readyState == 4) {
			if (subject_id != '') {
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
	}
	function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object

	function getScriptPage(div_id,content_id)
	{
		subject_id = div_id;
		content = document.getElementById(content_id).value;
		http.open("GET", "script_page.php?content=" + escape(content), true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);
		if(content.length>0)
			box('1');
		else
			box('0');

	}	

	subject_id2 = '';
	function getScriptPage2(div_id,content_id)
	{
		subject_id2 = div_id;
		content = document.getElementById(content_id).value;
		http.open("GET", "script_page2.php?content=" + escape(content), true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);
		if(content.length>0)
			box2('1');
		else
			box2('0');

	}

	function highlight(action,id)
	{
	  if(action)	
		document.getElementById('word'+id).bgColor = "#C2B8F5";
	  else
		document.getElementById('word'+id).bgColor = "#F8F8F8";
	}
	function display(word,word2,word3)
	{
		/*document.getElementById('text_content').value = word;*/
		if (word3 != "")
		{
		document.getElementById('boxd').style.width = "89px";
		document.getElementById('boxd').style.height = "89px";
		document.getElementById('boxf').href = word3;
		document.getElementById('boxd').src = "http://sikathabis.com/filez/download2.gif";
		}
		document.getElementById('box').style.display = 'none';
		document.getElementById('text_content').value = '';
		document.getElementById('text2').value = word;
		winRef1 = window.open("http://www.google.co.id/custom?domains=sikathabis.multiply.com&q=" + escape(word2) + "&sitesearch=sikathabis.multiply.com&sa=Cari&client=pub-2425389491631228&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=in", 'searchenginegoogle', 'left=200,top=351,width=600,height=150,location=yes,scrollbars=yes');
		winRef2 = window.open(word, 'result', 'left=200,top=1,width=600,height=300,location=yes,scrollbars=yes');
		/*window.location="http://www.google.co.id/custom?domains=sikathabis.multiply.com&q=" + word + "&sitesearch=sikathabis.multiply.com&sa=Cari&client=pub-2425389491631228&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=in";*/
		/*document.getElementById('text2').focus();*/
		winRef1.focus();
		winRef2.focus();	
	}
	function box(act)
	{
	  if(act=='0')	
	  {
		document.getElementById('box').style.display = 'none';

	  }
	  else
		document.getElementById('box').style.display = 'block';
	}
