/**
 * Search
 *
 * Created by Sushanth C.S
 * Created on 09-January-2009
 * Modified by 
 * Modified on 
 * Modifications
 *
 * LICENSE: This source file is subject to license
 * that is available through the world-wide-web at the following URI:
 * http://www.amt.in/license.html.
 *
 * @category  Search
 * @package   SEGGER_Website
 * @author    Sushanth <sushanth@amt.in>
 * @copyright 2008-2009 by Advanced Millennium Technologies Pvt Ltd.
 * @license   http://www.amt.in/license.html License Version 3.0
 * @version   SVN: $Id:$
 * @link      http://www.segger.com/
 * @see       Core::projects
 * @since     Version 0.10
 */

function searchWord(e)
{	
	if(window.event) // IE
	  {
	  keynum = e.keyCode;
	  }
	else if(e.which) // Netscape/Firefox/Opera
	  {
	  keynum = e.which;
	  }

	var searchWord = document.getElementById('searchWord').value;

	if(keynum != 13 || searchWord == '') {
			return;
	}	
	var startAt = 1;
	window.location = "search.html?SearchData="+searchWord+"&p="+startAt;
}
/*AMT CHANGE*/
/*function loadPage(url,parent,level){
	var xmlhttp;
	var request = '';
	request += '&parent='+parent;
	if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp = new XMLHttpRequest();
	} else {// code for IE6, IE5
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function(){
		if (xmlhttp.readyState==4 && xmlhttp.status==200){
			window.location = url;
		}
	}
	xmlhttp.open("POST","index.html?parentaction=savePageParent"+request,true);
	xmlhttp.send();
}*/
/**
******************************************************************************
*
* (c) Segger CMS 2008-2009 by Advanced Millennium Technologies Pvt Ltd.
* 
****************************************************************************** 
*/
