
/***********************/
/* sbrown@symantec.com */
/* version 0.5-8       */
/***********************/


/* defaults */
var symBORDcolor = 'FFFFF7';
var symBACKcolor = 'black';
var symFONTcolor = 'black';
var symLINKcolor = 'blue';

var symLmax = 1;
var symRmax = 1;
var symAmax = 1;

var symTshow = 1;
var symSshow = 1;


function symDisplay() {

//date
	var p_style = 'style="font-family:arial; font-size:14px; color:'+symFONTcolor+';"';
//title
	var b_style = 'style="font-family:arial; font-size:14px; color:'+symFONTcolor+'; font-weight:bold;"';
//link
	var a_style = 'target="_blank" style="font-family:arial; font-size:12px; height: 20; color:'+symLINKcolor+';"';
//number
	var r_common = 'font-family:arial; font-size:14px; color:'+symBACKcolor+'; font-weight:bold; border-width:1px; border-style:solid; border-color:'+symFONTcolor+';';

	r_style = new Array(6);
/*
	r_style[1] = 'style="'+r_common+' background:#4444dd;"';
	r_style[2] = 'style="'+r_common+' background:#00cc00;"';
	r_style[3] = 'style="'+r_common+' background:#ddaa00;"';
	r_style[4] = 'style="'+r_common+' background:#dd6600;"';
	r_style[5] = 'style="'+r_common+' background:#dd0000;"';
*/
	r_style[1] = 'style="'+r_common+' background:red;"';
	r_style[2] = 'style="'+r_common+' background:orange;"';
	r_style[3] = 'style="'+r_common+' background:yellow;"';
	r_style[4] = 'style="'+r_common+' background:blue;"';
	r_style[5] = 'style="'+r_common+' background:green;"';
	  document.writeln('<table cellpadding=1 cellspacing=1 border=0 width="95%">');

	/* advisories */
	if ( symAmax > 0 ) {

		document.writeln(' <tr>');
		document.writeln('  <td valign=top colspan=2>');
		document.writeln('   <table border=0 width=100%>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><p '+b_style+'>Security Advisories</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symAmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/security/Content/'+symAurls[i];

			document.writeln('  <tr>');
			document.writeln('   <td align=center valign=top width=12><p '+b_style+'>&#183;</p></td>');
			document.writeln('   <td colspan=1 align=left><p><a '+a_style+' href="'+full_url+'">'+symAnames[i]+'</a></p></td>');
			document.writeln('  </tr>');

		}

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2 align=left><p><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/security/Advisories.html"><b>(more...)</b></a></p></td>');
		document.writeln('    </tr>');
 		document.writeln('   </table>');
 		document.writeln('  </td>');

	}

	/* search box */
	if ( symSshow > 0 ) {

		document.writeln('  <td valign=top colspan=1>');
		document.writeln('   <table border=0 width=100%>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=1><br><p '+b_style+'>Search Threat Database</p></td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=1 align=center>');
		document.writeln('      <form name=formname style="margin-bottom:0;" action="http://search.symantec.com/custom/us/query.html" method="POST" target="_blank">');
		document.writeln('      <input type="hidden" name="lk" value="1">');
		document.writeln('      <input type="hidden" name="rf" value="0">');
		document.writeln('      <input type="hidden" name="qp" value="url:http://securityresponse.symantec.com/avcenter/venc/data url:/avcenter/venc/auto/index url:/avcenter/security/Content">');
		document.writeln('      <p '+p_style+'><input type=text name="qt" size=14></p>');
		document.writeln('     </td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=1 align=center height="50">');
		document.writeln('      <p '+p_style+'><input type=image src="../images/search.gif" width=100 height=21></p>');
		document.writeln('      </form>');
		document.writeln('     </td>');
		document.writeln('    </tr>');
 		document.writeln('   </table>');
 		document.writeln('  </td>');
 		document.writeln(' </tr>');

	}

  document.writeln(' <tr>');

	/* latest threats */
	if ( symLmax > 0 ) {

		document.writeln('  <td valign=top>');
		document.writeln('   <table border=0 width=100%>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Latest Threats</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symLmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symLurls[i];

			document.writeln('  <tr>');
			document.writeln('   <td align=center width=12><p '+r_style[symLrisks[i]]+'>&nbsp;'+symLrisks[i]+'&nbsp;</p></td>');
 			document.writeln('   <td align=left width=100 nowrap><p '+p_style+'>'+symLdates[i]+'</p></td>');
			document.writeln('   <td><p><a '+a_style+' href="'+full_url+'">'+symLnames[i]+'</a></p></td>');
			document.writeln('  </tr>');

		}

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=left><p><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/vinfodb.html"><b>(more...)</b></a></p></td>');
		document.writeln('    </tr>');
		document.writeln('   </table>');
		document.writeln('  </td>');

	}
	/* top threats */
	if ( symTshow > 0 ) {

		document.writeln('  <td valign=top>');
		document.writeln('   <table border=0 width=100%>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Top Threats</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<(symTurls.length-1); i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symTurls[i];

			document.writeln('  <tr>');
			document.writeln('   <td align=center width=12><p '+r_style[symTrisks[i]]+'>&nbsp;'+symTrisks[i]+'&nbsp;</p></td>');
			document.writeln('   <td align=center nowrap><p '+p_style+'>'+symTdates[i]+'</p></td>');
			document.writeln('   <td><p><a '+a_style+' href="'+full_url+'">'+symTnames[i]+'</a></p></td>');
			document.writeln('  </tr>');
		}
		document.writeln('   </table>');
		document.writeln('  </td>');
	}
	/* removal tools */
	if ( symRmax > 0 ) {

		document.writeln('  <td valign=top>');
		document.writeln('   <table border=0 width=100%>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><p '+b_style+'>Removal Tools</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symRmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symRurls[i];

			document.writeln(' <tr>');
			document.writeln('  <td align=center valign=top width=12><p '+b_style+'>&#183;</p></td>');
			document.writeln('  <td><p><a '+a_style+' href="'+full_url+'">'+symRnames[i]+'</a></p></td>');
			document.writeln(' </tr>');

		}

		document.writeln('   <tr>');
		document.writeln('    <td colspan=2><p><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/tools.list.html"><b>(more...)</b></a></p></td>');
		document.writeln('   </tr>');
 		document.writeln('  </table>');
 		document.writeln(' </td>');

	}
	/* footer */
	document.writeln(' </tr>');
	document.writeln('</table>');

}

