Almost got it. Reading codes from this topic I found that it's needed to add "innerHTML" at the end of a element definition statement.
<script language="javascript" type="text/javascript">
var Credits=document.getElementById('credits_real_value').innerHTML;
var Predits=document.getElementById('credits_promo_value').innerHTML;
if(Credits == 0 && Predits < 500) {
document.write("Enter HTML");
}
else {
document.write("Doesn't work!");
}
</script>
This code *ALMOST* works. However, credits and predits variables are stored as strings. In the test account I use, I've got 2,050 predits, so I modify the script for setting the limit at 3000. The output was still "Doesn't work". After trying a document.write(Predits), it gave me 2,050. A string.
Is there a way to make it see as an integrer? Even with comma it would still be useful...