var	imgBanner = new Array("http://www.billp.com/images/fbwinpatrol3.gif",
							"http://www.billp.com/images/fbwinpatrol2.gif",
							"http://www.billp.com/images/fbwinpatrol5.gif",
							"http://www.billp.com/images/fbwinpatrol4.gif",
							"http://www.billp.com/images/fbwinpatrol1.gif",
							"http://www.billp.com/images/fbwinpatrol19.gif",
							"http://www.billp.com/images/fbwinpatrol21.gif",
							"http://www.billp.com/images/fbwinpatrol22.gif",
							"http://www.billp.com/images/fbwinpatrol23.gif",
							"http://www.billp.com/images/fbwinpatrol20.gif",
							"http://www.billp.com/images/fbwinpatrol6.gif",
							"http://www.billp.com/images/fbwinpatrol7.gif",
							"http://www.billp.com/images/fbwinpatrol8.gif",
							"http://www.billp.com/images/fbwinpatrol9.gif",
							"http://www.billp.com/images/fbwinpatrol10.gif",
							"http://www.billp.com/images/fbwinpatrol11.gif",
							"http://www.billp.com/images/fbwinpatrol12.gif",
							"http://www.billp.com/images/fbwinpatrol18.gif",
							"http://www.billp.com/images/fbwinpatrol15.gif",
							"http://www.billp.com/images/fbwinpatrol16.gif",
							"http://www.billp.com/images/fbwinpatrol17.gif",
							"http://www.billp.com/images/fbwinpatrol14.gif"
							);
	var iCurrent = 0;
	var	iCount = 22;

function days2go(date1,date2)
{
    var days =
        Date.UTC(date1.getYear(),date1.getMonth(),date1.getDate(),0,0,0)
      - Date.UTC(date2.getYear(),date2.getMonth(),date2.getDate(),0,0,0);
    return days/1000/60/60/24;
    
}


function min2go(date1,date2)
{
    var days =
        Date.UTC(date1.getYear(),date1.getMonth(),date1.getDate(),date1.getHours(),date1.getMinutes(),0)
      - Date.UTC(date2.getYear(),date2.getMonth(),date2.getDate(),date2.getHours(),date2.getMinutes(),0);
      
    return days/1000/60;
    
}


function UpdateSlide()
{
	var imgObject;
	iCurrent++;
	if(iCurrent > 20 )
	{
		iCurrent = 0;
	}
	imgObject = document.images['theShow'];
	imgObject.src = imgBanner[iCurrent];
	
}		 
function StartShow()
{
	iCurrent = 2;
	setInterval("javascript:UpdateSlide()", 12000);
	
}

function BillPHeader()
{
	document.write("<TR align=left>");
	document.write("<TD width='80%' colspan='2' align=left VALIGN='top'>");
	document.write("<IMG ALT='BillP Studios Logo' BORDER='0' align=left ");
	document.write("SRC='http://www.winpatrol.com/images/banner.jpg' >");
	document.write("</TD> ");
			
	document.write("<TD width='20%' colspan='1'>	");

	document.write('<form action="http://www.google.com/cse" id="cse-search-box" target="_blank">');
	document.write('<div>BillP Studios Search<br>');
	document.write('<input type="hidden" name="cx" value="partner-pub-5216032068438142:24oy9c-eom8" ID="Hidden1">');
	document.write('<input type="hidden" name="ie" value="ISO-8859-1" ID="Hidden2"> <input name="q" size="36" ID="Text1">');
	document.write('<input type="submit" name="sa" value="Search" ID="Submit1">');
	document.write('</div></form>');
	document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>	');			
	document.write('</TD></TR>');
}


function BillPSocial()
{
	document.write('<P align="center">');
	document.write('<a href="http://www.facebook.com/group.php?gid=49417927883">');
	document.write('<img src="http://www.winpatrol.com/images/facebook.jpg" border="0"></a>');
	document.write('<br><a href="http://www.facebook.com/group.php?gid=49417927883">');
	document.write('Already on Facebook?<br>Click for updates.</a><br>');
	document.write('</P><br>');
	document.write('<P align="center">');
	document.write('<a href="http://twitter.com/WinPatrol">');
	document.write('<img src="http://www.billp.com/images/twitterbutton1.gif" border="0" align="center"></a>');
	document.write('<BR><br>');
}

function WinPatrolLocalize()
{
	document.write('<div id="MicrosoftTranslatorWidget" style="BORDER-BOTTOM-COLOR: #3a5770; ');
	document.write(' BACKGROUND-COLOR: #78add0; BORDER-TOP-COLOR: #3a5770; MIN-HEIGHT: 0px; WIDTH: 200px; BORDER-RIGHT-COLOR: #3a5770; BORDER-LEFT-COLOR: #3a5770">');
	document.write('<noscript>');
	document.write('<a href="http://www.microsofttranslator.com/BV.aspx?a=http%3a%2f%2fwww.winpatrol.com%2f">')
	document.write('Translate this page</a><br>Translation powered by'); 
	document.write('<a href="http://www.microsofttranslator.com">');
	document.write('Microsoft® Translator</a></noscript></div>');
	document.write('<script id="MicrosoftTranslatorWidgetScript" type="text/javascript" ');
	document.write('src="http://api.microsofttranslator.com/V1/Widget.svc/Embed?appId=F3XuxETyFL0NGv95LEJHOth03oXI2tB2&amp;from=en&amp;layout=ts">');
	document.write('</script>');
}


function WinPatrolFunStuff()
{

	document.write('<br>');
	document.write('<b><big>WinPatrol Fun Stuff</big></b><br>');
	document.write('<I>While supply lasts</I><br><br>');
//	document.write('<A href="http://winpatrol.stores.yahoo.net/winpatrol-usb-flash-wristband.html"><IMG border="0" src="http://www.winpatrol.com/images/flashband0.jpg"></A><br>');
//	document.write('1GB USB Wristband \$24.95<br>');
//	document.write('<P align="justify">');
//	document.write('Copy photos, music, and even data from one computer to another. ');
//	document.write('Our portable WinPatrolFlash.exe Edition included.');
//	document.write('</P><br>');
	document.write('<A href="http://winpatrol.stores.yahoo.net/wispsh.html">');
	document.write('<IMG border="0" src="http://www.winpatrol.com/images/sportshirt.jpg" width="180"></A><br>');
	document.write('<A href="http://winpatrol.stores.yahoo.net/wispsh.html">');
	document.write('Scotty Sports Shirt<br>	$24.95</A><br>');
	document.write('<P align="justify">');
	document.write('Look your best and show your support for Scotty the Windows Watch Dog');
	document.write('</P><br>');
}


function BillPMenu()
{

	document.write("<TR align=left><TD colspan=3>");
	document.write("<TABLE width='100%' CELLPADDING='5' bgcolor=SkyBlue align=left border=2 bordercolor=000066 rules=rows><TR>");

	document.write	("<TD><A HREF='http://www.billp.com' ");
	document.write	(" ONMOUSEOVER=\"qbar_01.src='http://www.billp.com/images/menuhome0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_01.src='http://www.billp.com/images/menuhome.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_01' SRC='http://www.billp.com/images/menuhome.jpg' BORDER=0 ALT='Home Page'></A></TD>");
	
	document.write	("<TD><A HREF='http://www.billp.com/store.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_04.src='http://www.billp.com/images/menuproducts0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_04.src='http://www.billp.com/images/menuproducts.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_04' SRC='http://www.billp.com/images/menuproducts.jpg' BORDER=0 ALT='Store'></A></TD>");


	document.write	("<TD><A  HREF='http://www.winpatrol.com/download.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_02.src='http://www.billp.com/images/menudownloads0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_02.src='http://www.billp.com/images/menudownloads.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_02' SRC='http://www.billp.com/images/menudownloads.jpg' BORDER=0 ALT='Downloads'></A></TD>");


	document.write	("<TD><A  HREF='http://www.billp.com/contact.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_03.src='http://www.billp.com/images/menucontact0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_03.src='http://www.billp.com/images/menucontact.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_03' SRC='http://www.billp.com/images/menucontact.jpg' BORDER=0 ALT='Contact'></A></TD>");



	document.write	("<TD><A HREF='http://www.billp.com/support.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_05.src='http://www.billp.com/images/menusupport0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_05.src='http://www.billp.com/images/menusupport.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_05' SRC='http://www.billp.com/images/menusupport.jpg' BORDER=0 ALT='Support'></A></TD>");
	document.write	("</TR></TABLE>");

	
	document.write	("</TR>");
}

function footerMenu()
{
	document.write	("<P align='center'><a href='http://www.billp.com/' target='_top'>Home</a> | ");
	document.write	("<a href='http://www.winpatrol.com/download.html' target='_top'>Downloads</a> | ");
	document.write	("<a href='http://www.billp.com/contact.html' target='_top'>Contact</a> | ");
	document.write	("<a href='http://www.billp.com/store.html' target='_top'>Products</a> | ");
	document.write	("<a href='http://www.billp.com/support.html' target='_top'>Support</a> </P>");

}


function BoxNeedCode()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='mailto:support@WinPatrol.com'>Lose Your PLUS Code?</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("New computer or hard drive failed?<br>Are you a PLUS member but can't find your code?");
	document.write	("<br>Just Email your \"name\" to <A href='mailto:support@WinPatrol.com'>support@WinPatrol.com</A> ");
	document.write	("</TD></TR></TBODY></TABLE>");
}

function BoxUSA() {
    document.write('<center><IMG ALT="Made in America"   BORDER="0" SRC="http://www.billp.com/images/madeinamerica.gif" ></CENTER>');
}


function BoxUpgrade()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'>WinPatrol PLUS Upgrade</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Support for WinPatrol PLUS makes the free versions possible.<br>Your support is appreciated.<br>");


//	document.write	("<h1><font color=green>SPECIAL!!!</font></h1>");
//	document.write	("<B><font color=green>Back to $chool $pecial</font></B><br>Upgrade now and save $10.<br>Use Coupon <b><i>\"grad2010\"</i></b> ");



	document.write	("<br><A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'><B>WinPatrol PLUS</B></A>");
	document.write	(" <A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");

	document.write	("</TD></TR></TBODY></TABLE>");
}



function BoxCreditCard() 
{
    document.write("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
    document.write("<TBODY><TR><TH>");
    document.write('<b>Secure Credit Card Options</b></TH></TR>');
 //  document.write('<b>Secure Credit Card Options<br>PLUS Upgrade Now<br>Back to School Special!</b></TH></TR>'); 
    document.write("<TR><TD align='center'>");
    document.write('<A href="http://store.yahoo.com/winpatrol/winplusmemre.html">');
	document.write('<br><IMG width=75 height=40 alt="Credit Card Logo" src="http://www.winpatrol.com/images/credit_cards.gif" border=0 >');
	document.write('<br><b>Click For PLUS Upgrade<br>Secure Credit Card</B></A>');
	document.write("</TD></TR></TBODY></TABLE>");

	return;
}

function BoxPayPal()
{
    document.write("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
    document.write("<TBODY><TR><TH>");
    document.write('<b>PayPal Upgrade Option</b><br>Holiday Special!</TH></TR>');
    document.write("<TR><TD align='center'>");


    document.write('<br><b>WinPatrol PLUS \$29.95<br>		');
    document.write	('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
    document.write	('<input type="hidden" name="cmd" value="_s-xclick">');
    document.write	('<input type="hidden" name="hosted_button_id" value="U7BYNVYE6MDC6">');
    document.write	('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
    document.write	('<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">');
    document.write	('</form>');


    //  19.95
//    document.write('<br><b>WinPatrol PLUS<br>Holiday Sale Price \$19.95<br>		');
//   document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
//    document.write	('<input type="hidden" name="cmd" value="_s-xclick">');
//    document.write	('<input type="hidden" name="hosted_button_id" value="7KQLE3GGGU7W4">');
//    document.write	('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
//    document.write	('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">');
//    document.write	('</form>');

    
	document.write('Unlimited personal computers');
	document.write('<br /><br><br>');

	document.write('WinPatrol PLUS Family Pack \$49.95<br>');
    document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
    document.write('<input type="hidden" name="cmd" value="_s-xclick">');
    document.write('<input type="hidden" name="hosted_button_id" value="CKD4XFPD6HVQE">');
    document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
    document.write('<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">');
    document.write('</form>');


//  document.write('WinPatrol PLUS Family Pack<br>Holiday Sale Price \$39.95<br>');
//    document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
//    document.write('<input type="hidden" name="cmd" value="_s-xclick">');
//    document.write('<input type="hidden" name="hosted_button_id" value="GQXKS3EEG4QBE">');
//    document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
//    document.write('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">');
//    document.write('</form>');


	document.write('Support your entire family'); 
    document.write('<br><br>FREE Lifetime Updates<br>Not a Subscription'); 
    document.write('</b>');
	document.write("</TD></TR></TBODY></TABLE>");

	return;
}

function BoxDroidPatrol() {
    document.write("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
    document.write("<TBODY>");
    document.write("<TR><TD align='center'><img src='http://www.droidpatrol.com/images/androidlogo72.gif' ><br><b>DRIOD USER?</b></TD></TR>");
    document.write("<TR><TD>");
    document.write("Check out DroidPatrol for $1.99<br>");
    document.write("Using DroidPatrol you can search PLUS Information from your Android Device.");
    document.write("WinPatrol PLUS not required.<br><br>");
    document.write("Search to your Droid Market for \"<b>DroidPatrol</b>\"or click below<br> <A href='https://market.android.com/search?q=droidpatrol&so=1&c=apps'><img align=right src='http://www.droidpatrol.com/images/droidpatrol.png' ></A>");
    document.write("</TD></TR></TBODY></TABLE>");
}	


function BoxMultipleComputers()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/support.html'>Multiple Computers?</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Can I use my activation code on both my desktop and laptop?<br>");
	document.write	("Of course. You're the customer not your computer. You're welcome to use a single  license code on ");
	document.write	("any computer you personally own and use.<br><br>");
	document.write  ("Purchase a <A href='http://winpatrol.stores.yahoo.net/wiplfapa.html'<u>WinPatrol Super Family Pack</u></A>");
	document.write  (" and your code is good for unlimited computers for your whole family.");
    document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxFeatures()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/features.html'>Product Features</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Find out why WinPatrol has grown to be one the most popular Windows utilities worldwide.");
	document.write	("<br>")
	document.write	("<A href='http://www.winpatrol.com/features.html'><B>Features </B></A>");
	document.write	(" <A href='http://www.winpatrol.com/features.html'><IMG align=absmiddle src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxCompare()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/compare.html'>Product Comparisons</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Not sure which WinPatrol is right for you?<br>Just need our popular FREE Edition ");
	document.write	("or the real-time power of WinPatrol PLUS?<br>");
	document.write	("<A href='http://www.winpatrol.com/compare.html'><B>Compare</B></A>");
	document.write	(" <A href='http://www.winpatrol.com/compare.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxReviews()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH>WinPatrol Reviews</TH></TR>");
	document.write	("<TR><TD align='center'>");
	document.write	("<A href='http://winpatrol.software.informer.com/awards/'>");
	document.write	("<img src='http://www.winpatrol.com/images/awardsi.gif' border=0 alt='Software Informer List of Awards'> </A>");

	document.write	("<A href='http://download.cnet.com/WinPatrol/3000-8022_4-10129149.html'>");
	document.write	("<img src='http://www.billp.com/images/cnet5star.gif'   border=0 alt='CNet Downloads.com'> </A>");
	document.write("<A href='http://www.brothersoft.com/winpatrol-2010-325835.html'>");
	document.write	("<br><img src='http://www.billp.com/images/star_101.gif'   border=0  alt='Brother Soft'> </A>");
	document.write	("<br><img src='http://www.billp.com/images/pcworldbest2007.gif'  border=0  alt='PC World Best'> ");
	document.write("<br><img src='http://www.winpatrol.com/images/award6-blue.gif'  border=0  alt='3K Editors Pick'> ");
	document.write("</TD></TR></TBODY></TABLE>");
}	

function BoxOptimize()
{
    //	document.write	('<a href="https://cart.pcpitstop.com/go.asp?id=500785&aff=6364"><img src="http://www.pcpitstop.com/images/affiliates/500785.gif" border="0"/></a>');
    return;
}

function BoxPCOptimize() {
//    document.write('<a href="https://cart.pcpitstop.com/go.asp?id=500787&aff=6364"><img src="http://www.pcpitstop.com/images/affiliates/500787.gif" border="0"/></a>');
    return;

}


function BoxNewStuff()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/upgrade.html'>New WinPatrol 2012</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Find out what's new in the latest Super Optimized version of WinPatrol 2012.<br> ");
	document.write	("<A href='http://www.winpatrol.com/upgrade.html'><B>Update Info</B></A>");
	document.write	(" <A href='http://www.winpatrol.com/upgrade.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}


function BoxBillP() {
    document.write("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
    document.write("<TBODY>");
    document.write("<TR><TH colspan=2 >BillP Says Upgrade Today</TH></TR>");
    document.write("<TR><TD class='mytext10' align='left'>");
//    document.write("<A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'>");
//    document.write("<img src='http://www.billp.com/images/billp142.jpg' alt='Bill Says Upgrade to PLUS today!'> </A>");
    
//    document.write("<br>The newest technology is now available");
//    document.write("<br><br>BillP Studios in its efforts to provide the best possible service is introducing WinPatrol v19, the Cloud Edition.");
//    document.write("<br><br>Thank you to everyone who participated in our public beta. Read more and download our new version at <A href='http://www.winpatrol.com/upgrade.html'><b><u>Click Here</u></b></A>");

//    document.write("<center><br>");
//    document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
//    document.write('<input type="hidden" name="cmd" value="_s-xclick">');
//    document.write('<input type="hidden" name="hosted_button_id" value="7419454">');
//    document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
//    document.write('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">');
//    document.write("</form>");
//    document.write("</center>");

       document.write("<A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'>");
    document.write("<img src='http://www.billp.com/images/billp142.jpg' alt='Bill Says Upgrade to PLUS today!'> </A>");
    document.write("<P class='mytext10' align=left>I needed a program like WinPatrol and since nothing like it existed I created one.");
    document.write("<br><br>WinPatrol 2012 is now available <br><br>");
    //You can support future development and <A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'>upgrade to WinPatrol PLUS Lifetime for only $19.95</A>. <br><br>");
    document.write("Thanks,<br><i>Bill Pytlovany</i>");
    document.write("</TD></TR></TBODY></TABLE>");
}	




function GetMyData(mynum) {

    var r;
    var h = parent.location.href;
    var nr = h.split("?");

    mynum = mynum + 0;

    if ((typeof (nr[1]) == "undefined"))
    {
        return " ";
    }
    else 
    {
        sProgram = nr[1];
        p = sProgram.split("&");
        if ((typeof (p[mynum]) == "undefined"))
            sProgram = "";
        else
            sProgram = p[mynum];

        return sProgram;

    }

    return "none";
}


function BoxDonate() {
    document.write("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
    document.write("<TBODY>");
    document.write("<TR><TH>Happy with WinPatrol Free?</TH></TR>");
    document.write("<TR><TD align='center'>");

    document.write('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
    document.write('<input type="hidden" name="cmd" value="_s-xclick">');
    document.write('<input type="hidden" name="hosted_button_id" value="7419454">');
    document.write('<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">');
    document.write('<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">');
    document.write("</form>");
    document.write("</TD></TR></TBODY></TABLE>");
}

function BoxTwitter() 
{
    document.write('<script src="http://widgets.twimg.com/j/2/widget.js"></script>');
    document.write("<script>");
    document.write("new TWTR.Widget({");
    document.write("version: 2,");
    document.write("type: 'profile',");
    document.write("rpp: 3,");
    document.write("interval: 6000,");
    document.write("width: 210,");
    document.write("height: 300,");
    document.write("theme: {");
    document.write("shell: {");
      document.write("background: '#87ceea',");
      document.write("color: '#000066'");
    document.write("},");
    document.write("tweets: {");
      document.write("background: '#fffaf0',");
      document.write("color: '#000000',");
      document.write("links: '87ceeb'");
    document.write("}");
  document.write("},");
  document.write("features: {");
    document.write("scrollbar: false,");
    document.write("loop: false,");
    document.write("live: false,");
    document.write("hashtags: true,");
    document.write("timestamp: true,");
    document.write("avatars: false,");
    document.write("behavior: 'all'");
  document.write("}");
    document.write("}).render().setUser('WinPatrol').start();");
    document.write("</script>");

    return;
}

// CLOUD
function BoxReview()
{
    document.write('<TABLE border=2 ><TR><TD align="left">');
    ReviewFile();
    document.write('</TD></TR></TABLE><br>');
    return;
}

function GetReview(r) 
 {
     var h = parent.location.href;
     var nr = h.split("?");

     if ((typeof (nr[1]) == "undefined"))
         sReview = "0";
     else {
         sReview = nr[1];
         p = sReview.split("&")
         if ((typeof (p[0]) == "undefined"))
             sReview = "0";
         else
             sReview = p[r];
     }

     return sReview;
 }

 function ReviewFile() {

     document.write("<FORM action=/cgi-bin/savereview.pl  Id='NewReview' Name='NewReview' method=post > ");
     document.write(" <INPUT type='hidden' name='file' VALUE='" + GetProgramName() + "'  >");
     document.write(" <INPUT type='hidden' name='plus' VALUE='nonplus'  >");
     document.write("<table width=520><tr><th>Reviews</th><th></th></tr>");

     document.write("<tr><td align=center>" + GetReview(1) + "</td>");
     document.write("<td><img src='http://www.winpatrol.com/images/goldstar.jpg'  align=top border=0> <input type=radio name='review' value=1 />I believe this file to be safe and required.</td></tr>");
     document.write("<tr><td align=center>" + GetReview(2) + "</td>");
     document.write("<td><img src='http://www.winpatrol.com/images/greenstar.jpg'  align=top border=0> <input type=radio name='review' value=2 />I believe this file to be safe but not necessary.</td></tr>")
     document.write("<tr><td align=center>" + GetReview(3) + "</td>");
     document.write("<td><img src='http://www.winpatrol.com/images/graystar.jpg'  align=top border=0> <input type=radio name='review' value=3 />I have no clue what this file is.</td></tr>");
     document.write("<tr><td  align=center>" + GetReview(4) + "</td>");
     document.write("<td><img src='http://www.winpatrol.com/images/yellowstar.jpg'  align=top border=0> <input type=radio name='review' value=4 />I believe this file is safe but annoying because it continues to return.</td></tr>");
     document.write("<tr><td  align=center>" + GetReview(5) + "</td>");
     document.write("<td><img src='http://www.winpatrol.com/images/redstar.jpg'  align=top border=0> <input type=radio name='review' value=5 />I believe this file is unsafe.<br />");
     //document.write(" <br /><input type=checkbox name='repeat' value=0 />This file will not allow me to remove it the easy way.<br /> ");
     if (GetReview(6) == "1") {
         document.write("<tr><th></th><th>Share your review of " + GetProgramName() + " with the WinPatrol Cloud.</th></tr>");
         document.write("<tr><td></td><td align=right><INPUT type='submit' value='Submit' id=submit1 name=submit1></td></tr>");
     }

     document.write("</table>");
     document.write(" </FORM>");

     return;
 }


