		function popup(url,numb){
		  window.open(url,"article"+numb,"menubar=no,status=no,scrollbars=no,resizable=yes");
		}

		function preload(imgObj,imgSrc) {
          eval(imgObj+' = new Image()')
          eval(imgObj+'.src = "'+imgSrc+'"')
			  }
		preload('AA', 'images/homeover.gif');			
		preload('AB', 'images/iepspubsover.gif');
		preload('AC', 'images/iepsbiosover.gif');
		preload('AD', 'images/redchalkover.gif');
		preload('AE', 'images/iepsformover.gif');
		preload('AF', 'images/postmodover.gif');
		preload('AG', 'images/hillcoleover.gif');
		preload('AH', 'images/hillcolepubsover.gif');			
		preload('AI', 'images/booksalesover.gif');
		preload('AJ', 'images/pastiepsconfover.gif');
		preload('AK', 'images/leconfover.gif');
		preload('AL', 'images/futureconfover.gif');
		preload('AM', 'images/linksover.gif');
		preload('AN', 'images/emailover.gif');
		preload('AO', 'images/ma_med_phdover.gif');
		
		function rollover(i1) {
			i1.src="images/" + (i1.name) + "over.gif";
		   	}
		
		function rollout(i1) {
			i1.src="images/" + (i1.name) + "up.gif";
		   	}
			
		function FormatNumber(num,decimalNum,zerode) { 
			if (isNaN(parseInt(num))) return "NaN";
			var tmpNum = num;
			var iSign = num < 0 ? -1 : 1;
			tmpNum *= Math.pow(10,decimalNum);
			tmpNum = Math.round(Math.abs(tmpNum))
			tmpNum /= Math.pow(10,decimalNum);
			tmpNum *= iSign;
			var tmpNumStr = new String(tmpNum);
			if (!zerode && num < 1 && num > -1 && num != 0)
			if (num > 0)
			tmpNumStr = tmpNumStr.substring(1,tmpNumStr.length);
			else
			tmpNumStr = "-" + tmpNumStr.substring(2,tmpNumStr.length);
			return tmpNumStr;
			}

		function FormatCurrency(num,decimalNum,zerode) {
			var tmpStr = new String(FormatNumber(num,decimalNum,zerode));
			if (tmpStr.indexOf("(") != -1 || tmpStr.indexOf("-") != -1) {
			if (tmpStr.charAt(0) == "(")
			tmpStr = "("  + tmpStr.substring(1,tmpStr.length);
			else if (tmpStr.charAt(0) == "-")
			tmpStr = "-" + tmpStr.substring(1,tmpStr.length);
			return tmpStr;
			}
			else
			return tmpStr;
			}

 		function calculateSubtotal1() {
			var subTot = (document.pubs.quantity1.value) * (document.pubs.price1.value);
			document.pubs.subtotal1.value = subTot;
			}
		function calculateSubtotal2() {
			var subTot = (document.pubs.quantity2.value) * (document.pubs.price2.value);
			document.pubs.subtotal2.value = subTot;
			}
		function calculateSubtotal3() {
			var subTot = (document.pubs.quantity3.value) * (document.pubs.price3.value);
			document.pubs.subtotal3.value = subTot;
			}	
		function calculateSubtotal4() {
			var subTot = (document.pubs.quantity4.value) * (document.pubs.price4.value);
			document.pubs.subtotal4.value = subTot;
			}
		function calculateSubtotal5() {
			var subTot = (document.pubs.quantity5.value) * (document.pubs.price5.value);
			document.pubs.subtotal5.value = subTot;
			}
		function calculateSubtotal6() {
			var subTot = (document.pubs.quantity6.value) * (document.pubs.price6.value);
			document.pubs.subtotal6.value = subTot;
			}
		function calculateSubtotal7() {
			var subTot = (document.pubs.quantity7.value) * (document.pubs.price7.value);
			document.pubs.subtotal7.value = subTot;
			}
		function calculateSubtotal8() {
			var subTot = (document.pubs.quantity8.value) * (document.pubs.price8.value);
			document.pubs.subtotal8.value = subTot;
			}
		function calculateSubtotal9() {
			var subTot = (document.pubs.quantity9.value) * (document.pubs.price9.value);
			document.pubs.subtotal9.value = subTot;
			}
		function calculateSubtotal10() {
			var subTot = (document.pubs.quantity10.value) * (document.pubs.price10.value);
			document.pubs.subtotal10.value = subTot;
			}
		function calculateSubtotal11() {
			var subTot = (document.pubs.quantity11.value) * (document.pubs.price11.value);
			document.pubs.subtotal11.value = subTot;
			}
		function calculateSubtotal12() {
			var subTot = (document.pubs.quantity12.value) * (document.pubs.price12.value);
			document.pubs.subtotal12.value = subTot;
			}
		function calculateGrandtotal() {
			var a=document.pubs.subtotal1.value
			var b=document.pubs.subtotal2.value
			var c=document.pubs.subtotal3.value		
			var d=document.pubs.subtotal4.value
			var e=document.pubs.subtotal5.value
			var f=document.pubs.subtotal6.value		
			var g=document.pubs.subtotal7.value
			var h=document.pubs.subtotal8.value
			var i=document.pubs.subtotal9.value		
			// var j=document.pubs.subtotal10.value
			var p=document.pubs.subtotal11.value
			var q=document.pubs.subtotal12.value			
			var k = parseFloat(a)+parseFloat(b)+parseFloat(c)+parseFloat(d)+parseFloat(e)+parseFloat(f)+parseFloat(g)+parseFloat(h)+parseFloat(i)+parseFloat(p)+parseFloat(q);
			
			var l = 0.2
			var m = parseFloat(l)*parseFloat(k);
			var n = parseFloat(m)+parseFloat(k);
			
			document.pubs.totalbefore.value=FormatCurrency(k,2,true);
			document.pubs.totalpandp.value=FormatCurrency(m,2,true);
			document.pubs.grandtotal.value=FormatCurrency(n,2,true);			
			}
			
		function calculateUKtotal() {
			var a=document.pubs.subtotal1.value
			var b=document.pubs.subtotal2.value
			var c=document.pubs.subtotal3.value		
			var d=document.pubs.subtotal4.value
			var e=document.pubs.subtotal5.value
			var f=document.pubs.subtotal6.value		
			var g=document.pubs.subtotal7.value
			var h=document.pubs.subtotal8.value
			var i=document.pubs.subtotal9.value		
			// var j=document.pubs.subtotal10.value
			var p=document.pubs.subtotal11.value
			var q=document.pubs.subtotal12.value			
			var k = parseFloat(a)+parseFloat(b)+parseFloat(c)+parseFloat(d)+parseFloat(e)+parseFloat(f)+parseFloat(g)+parseFloat(h)+parseFloat(i)+parseFloat(p)+parseFloat(q);
			
			document.pubs.totalbefore.value=FormatCurrency(k,2,true);
			document.pubs.grandtotal.value=FormatCurrency(k,2,true);			
			}