Mercurial > laserkard
diff buycode.js @ 4:c96cb4e773e5 laserkard
[svn r5] fully functional website.
author | rlm |
---|---|
date | Fri, 01 Jan 2010 01:19:49 -0500 |
parents | 599d0315537d |
children | ae22c2d59891 |
line wrap: on
line diff
1.1 --- a/buycode.js Thu Dec 31 22:50:09 2009 -0500 1.2 +++ b/buycode.js Fri Jan 01 01:19:49 2010 -0500 1.3 @@ -1,3 +1,10 @@ 1.4 + 1.5 + 1.6 +function clearDefault(el) { 1.7 +if (el.defaultValue==el.value) el.value = "" 1.8 +} 1.9 + 1.10 + 1.11 function Dollar (val) { // force to valid dollar amount 1.12 var str,pos,rnd=0; 1.13 if (val < .995) rnd = 1; // for old Netscape browsers