function openPdf(){//alert(document.forms[0].a1.value);
	var pdf=(document.forms[0].a1.value)+".pdf";
	var clientname = document.forms[0].a1.value;
	//opens window:
	var open1 = open('', 'pdfview', 'resizable=1,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,left=25px,screenX=25px,width=750px,height=575px,');
//alert(open1);
	open1.document.open();
	open1.document.write('<html><head><title>'+clientname+' report</title></head><body><A HREF="'+pdf+'">report</A>:&nbsp;'+clientname+'<BR><BR>1. to <B>view</B> your report: simply click on the link above<BR>&nbsp;&nbsp;'+'('+'go '+'"'+'<B>back</B>'+'"'+ 'to this page after viewing to download the report - see instructions below'+')'+'<BR>2. to <B>download</B> the file for your own records <b>'+'('+'highly recommended'+')'+'</b>:<BR>&nbsp;&nbsp;simply <b>right-click</b> the link above, then use the "save target as..." option.<BR>&nbsp;&nbsp;<BR><BR>F.Y.I. reports on-line are available for a 10-day period only.<BR>We do keep your report on file and can email it to you upon request at any time.</body></html>');
  	open1.document.close();
	/*open1.location.href=clienthtml;
	open1.focus();*/
}



