function navback( pages ){

		 history.go(-pages)

}





function beta_info(){

		 alert( "I often require beta testers to test software before going to market.\n" + 
		 "It is useful to find any bugs, and suggest improvements before the product is launched.\n" + 
		 "For more info on beta testing see the link on the contacts page" );
		 
}



  function image_popup( qimagename, qimagetext, qwidth, qheight ){
//Use this sample code to insert as link in html page
//<A HREF="javascript:image_popup('folder/file.jpg','Title Bar Text',Width,Height)"></A>  
  
  		   
  		   qpicture = "<IMG SRC='images/" + qimagename +"' ALIGN = 'Center'>";

		   
		   var winconfig = 'top=20,left=20,width='+qwidth+',height='+qheight
		   
		   var popupwindow = window.open('','',winconfig);
		   
  		   popupwindow.document.open();
  		   popupwindow.document.bgColor = "green";
  		   popupwindow.document.fgColor = "white";
		   popupwindow.document.write("<TITLE>"+qimagetext+"</TITLE>")
  		   popupwindow.document.write(qpicture);
  		   popupwindow.document.write("<FORM><INPUT ALIGN='RIGHT' TYPE='BUTTON' VALUE='Close Window' onClick='self.close()'></FORM>");
		   popupwindow.document.close(); 
  }

function CalculateCode( SerialNumber, SecMult, SecurityCode ){
   var tempCode = "";
   
   //Start at the last character in SerialNumber
   var CharPos = SerialNumber.length - 1;
   
  //Build tempCode by reversing SerialNumber  
   do{
       tempCode = tempCode + SerialNumber.charAt(CharPos);
	   CharPos--;

   }while ( CharPos >= 0 );


   LicenseCode = tempCode * SecMult;
   LicenseCode = (LicenseCode + SecurityCode);
   
	alert( "Ser No. = " + SerialNumber + "\n" + "License = " + LicenseCode);


//End Function
   }
   
