function buscador(forma){
	if (forma.sitesearch[0].checked) {
		forma.action = 'http://www.mipunto.com/search_result.html';
		forma.submit();
	} 
	else {
		forma.action = 'http://www.mipunto.com/search_result.html';
		forma.submit();
	}



}

function portlet_buscador(categoria) {
document.write (" <table width='206' border='0' cellspacing='0' cellpadding='0' align='left'>");
document.write (" 	<form action='' method='GET' name='busca' onSubmit='javascript:buscador(this)'>");
document.write ("	<input type='hidden' name='domains' value='www.mipunto.com'></input>");
document.write ("	<input type='hidden' name='client' value='pub-9134916645457073'></input>");
document.write ("   <input type='hidden' name='forid' value='1'></input>");
document.write ("	<input type='hidden' name='ie' value='ISO-8859-1'></input>");
document.write ("	<input type='hidden' name='oe' value='ISO-8859-1'></input>");
document.write ("	<input type='hidden' name='cof' value='GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:9999FF;GIMP:9999FF;LH:23;LW:162;L:https://ssl.mipunto.com/images/00logo_mipunto.gif;S:http://www.mipunto.com;FORID:11'></input>");
document.write ("	<input type='hidden' name='hl' value='es'></input>");
document.write (" 	<input type='hidden' value='0' name='titulo'>");
document.write (" 	<input type='hidden' value='0' name='keyword'>");
document.write (" 	<input type='hidden' value='0' name='category'>");
document.write ("     <tr> ");
document.write ("       <td valign='bottom' rowspan='2'><img src='/lib/headers/images/pixel.gif' width='12' height='2' /></td>");
document.write ("       <td valign='bottom' width='186'> ");
document.write ("         <table border='0' width='186' cellspacing='0' cellpadding='0' style='margin-bottom: 1px;'> ");
document.write ("         	<tr> ");
document.write ("         		<td class='buscadorTitulo' valign='top' width='14'> ");
document.write ("            		<INPUT TYPE='radio' NAME='sitesearch' VALUE='' CHECKED> ");
document.write ("         		</td> ");
document.write ("         		<td class='buscadorTitulo' valign='middle' width='32'> ");
document.write ("            		Web");
document.write ("         		</td> ");
document.write ("         		<td class='buscadorTitulo' valign='top' width='14'> ");
document.write ("            	<INPUT TYPE='radio' NAME='sitesearch' VALUE='www.mipunto.com' > ");
document.write ("         		</td> ");
document.write ("         		<td class='buscadorTitulo'  valign='middle' width='126'> ");
document.write ("            		mipunto.com ");
document.write ("         		</td> ");
document.write ("         	</tr> ");
document.write ("         </table> ");
document.write ("       </td> ");
document.write ("       <td valign='bottom' rowspan='2'><img src='/lib/headers/images/pixel.gif' width='6' height='0' /></td>");
document.write ("     </tr> ");
document.write (" 	  <tr> ");
document.write (" 		<td valign='top'>");
document.write (" 		     <table  border='0' cellspacing='0' cellpadding='0' align='left'>");
document.write (" 				<tr ><td>	<input type='text' name='query' class='buscador' tabindex='1' style='width: 165px; height: 17px;' ></td> ");
document.write ("         			<td align='left'><img src='/lib/headers/images/boton_ir.jpg' onclick='buscador(document.busca);' border='0' height='16' style='cursor: pointer;'></td></tr>");
document.write (" 		     </table>");
document.write ("       </td>");
document.write (" 	</tr>");
document.write ("   </form>");
document.write (" </table>");
}
