diff buycode.js @ 40:1ac1409ea68c laserkard

[svn r41] implemented dynamic text.
author rlm
date Mon, 25 Jan 2010 03:42:08 -0500
parents ae22c2d59891
children 26c2b3ad21c7
line wrap: on
line diff
     1.1 --- a/buycode.js	Sun Jan 24 15:06:22 2010 -0500
     1.2 +++ b/buycode.js	Mon Jan 25 03:42:08 2010 -0500
     1.3 @@ -74,6 +74,15 @@
     1.4    else des = des + ", " + val;
     1.5  }
     1.6  
     1.7 +function verify(obj1){
     1.8 + if (!obj1.accept.checked){
     1.9 +  alert ("Please approve the design & content.");
    1.10 +
    1.11 +  return false;
    1.12 + }
    1.13 +}
    1.14 +
    1.15 +
    1.16  function ReadForm (obj1, tst) { 
    1.17  	
    1.18  	
    1.19 @@ -81,11 +90,7 @@
    1.20  
    1.21  
    1.22  
    1.23 - if (!obj1.accept.checked){
    1.24 -  alert ("Please approve the design & content.");
    1.25 -  return false;
    1.26 - }
    1.27 - 
    1.28 +
    1.29   
    1.30   if(obj1.accept.checked)
    1.31   {vanish(['args__go'],['vanish']);}
    1.32 @@ -207,4 +212,11 @@
    1.33    obj1.item_name.value = des;
    1.34    obj1.amount.value = Dollar (amt);
    1.35    if (obj1.tot) obj1.tot.value = "$" + Dollar (amt);
    1.36 +  
    1.37 +   if (!obj1.accept.checked){
    1.38 +  
    1.39 +  return false;
    1.40 + }
    1.41 + 
    1.42 +  
    1.43  }