// For clarifications on the below script, please contact shine_cs@ncs.com.sg
// - - - Start - Configuration - Settings the Agency can modify - - - //
// All values passed to GSA must be URL-encoded. eg. spaces must be replaced by char '+'
var Search_Text_Box_Size = 20;
var Server_URL = "http://sgms.internet.gov.sg/search"; 
var Collections = "";
var SiteSearchItems = "";
var MetaDataFilters = "";
var webPathURL="http://www.mof.gov.sg/budget_2010/"

//Specify the Website's Feedback URL here e.g. http://www.mywebsite.gov.sg/feedback.html
//must have http:// as the start
var paramFeedbackPageURL ="http://app2.mof.gov.sg/budget_2010/post_feedback.asp";

//Specify the Website's Contact Info URL here e.g. http://www.mywebsite.gov.sg/ContactInfo.html
var paramContactInfoPageURL ="http://www.mof.gov.sg/budget_2010/contact_info.html";


// Specify additional Collection options using the following //
Collections =
[
  ["Singapore Budget", "mof"]
]

// - - - End - Configuration - - - //


function ShowResults()
{
document.writeln("<div>");
document.writeln("<form method='GET' target='_blank' name='SearchPlugInfrm' action='" + Server_URL + "' style='margin:0'>");
//	document.writeln("<td align='right'><table width = '100' border=0 cellspacing=1 cellpadding=0>");
//	document.writeln("<tr>");
//	document.writeln("<td valign='middle'><input type=text style='height:18px; font-size:9pt' name='q' size="+ Search_Text_Box_Size + "></td>");
//	document.writeln("<td valign='middle'><input type=image name=SearchGo id=SearchGo src='"+webPathURL+"images\budget_bt_go.gif' value='Search'></td>"); 
//	document.writeln("</tr>");
//	document.writeln("<tr><td height='22' valign='bottom' colspan ='3' align='left'>");
    document.writeln("<input name='q' type='text' class='banner_search'> <input alt='Search' title='Search' type=image name=SearchGo id=SearchGo src='"+webPathURL+"images/search_button.gif' value='Search' style='vertical-align:middle !important;'></div><div>");
	
	if (Collections != "")
	{
		var param_site_value = ""; //Do not remove
		document.writeln("<SELECT id=drop name=site style='display:none'>");
		for (i = 0; i < Collections.length; i++)
		{
			document.writeln("<OPTION VALUE=" + Collections[i][1] +">" + Collections[i][0]);
			//Do not remove
			param_site_value += Collections[i][0] + "#" + Collections[i][1] + '|';
		}
		document.writeln("</SELECT>");
		//Do not remove
		document.writeln("<input type='hidden' name='filter_s' value='" + param_site_value + "' />");
	}
	else
	{
		//Do not remove
		document.writeln("<input type='hidden' name='site' value='default_collection' />");
	}
//	document.writeln("</td></tr>");
//	document.writeln("</table></td>");
//document.writeln("</div>");

	document.writeln("<input type='hidden' value='" + paramFeedbackPageURL + "' name='feedback_url'  />");
	document.writeln("<input type='hidden' value='" + paramContactInfoPageURL + "' name='contact_url' />");
	document.writeln("<input type='hidden' name='client' value='default' />");
	document.writeln("<input type='hidden' name='proxystylesheet' value='default' />");
	document.writeln("<input type='hidden' name='output' value='xml_no_dtd' />");
	document.writeln("</form>");
	document.writeln("</div>");
}
