﻿function key_Onkey(event1,url) { 
var kCode = String.fromCharCode(event1.keyCode);
if(kCode == "\n" || kCode == "\r")
{   
	if (url=="Library Pesona Indonesia"){
		testLib(document.getElementById('key').value,url);}
	else { test(document.getElementById('key').value,url);} 
}
}

function test(x,url)
{
	//(26nov2010)document.location="http://"+ location.host + "/_layouts/OSSSearchResults.aspx?k="+ x +"&cs=This List&u=http://"+ location.host + "/Lists/"+url;
	document.location="http://"+ location.host + "/search/results.aspx?k="+ x +"&cs=This List&u=http://"+ location.host + "/Lists/"+url;
	//document.location="http://www.gmodules.com/ig/ifr?url=http://www.google.co.id/cse/api/007706930201877165599/cse/y8myyj_3ncy/gadget&amp;synd=open&amp;w=320&amp;h=75&amp;title=perpusnas&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js";
}
function testLib(x, url)
{
	document.location="http://"+ location.host + "/search/results.aspx?k="+ x +"&cs=This Site&u=http://"+ location.host+"/"+url;
	//(26nov2010)document.location="http://"+ location.host + "/_layouts/OSSSearchResults.aspx?k="+ x +"&cs=This Site&u=http://"+ location.host+"/"+url;
	//document.location="http://www.gmodules.com/ig/ifr?url=http://www.google.co.id/cse/api/007706930201877165599/cse/y8myyj_3ncy/gadget&amp;synd=open&amp;w=320&amp;h=75&amp;title=perpusnas&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js";
}

