function disableButtonOnClick(pId,pFormId,pButtonText,pCssClass){  
    
    // Set the disabled attribute to true
    document.getElementById(pId).setAttribute("disabled", "true"); 
	
	// Change the button text
	document.getElementById(pId).setAttribute("value", pButtonText);
	
	// Set the class attribute to the disabled image style class
	document.getElementById(pId).setAttribute("class", pCssClass);
	
	// Fix for IE
	document.getElementById(pId).setAttribute("className", pButtonText);
	
	// Submit the form (fix for IE)
	document.getElementById(pFormId).submit();
 }


function disablePayPalButtonOnClick(pId,pFormId,pImgSrc){  
    
    // Set the disabled attribute to true
    document.getElementById(pId).setAttribute("disabled", "true");
	document.getElementById(pId).setAttribute("src", pImgSrc);
	
	// Submit the form (Fix for IE)
	document.getElementById(pFormId).submit();
}

function printIt(printThis)
{
  win = window.open();
  self.focus();
  win.document.open();
  win.document.write('<'+'html'+'><'+'head'+'><'+'style'+'>');
  win.document.write('<'+'/'+'head'+'><'+'body'+'>');
  win.document.write(printThis);
  win.document.write('<'+'/'+'body'+'><'+'/'+'html'+'>');
  win.document.close();
  win.print();
  win.close();
}
