function submitonce(theform){
if (document.all || document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
tempobj.disabled=true
}}}
function goToURL() {
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  }
function printit(){
if (window.print) {
    window.print() ;
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";
}
}

function ChClr(o,v) {
 if (v == 0) o.style.backgroundColor = "#000000"
 else o.style.backgroundColor = ""
 }

 function change_area() {
if (document.add.country.value == 'UA') { document.add.area.disabled=false; }  else { document.add.area.disabled=true; }
}

 function change_area_us() {
if (document.add.country_us.value == 'UA') { document.add.area_us.disabled=false; }  else { document.add.area_us.disabled=true; }
}

function controlExpand() {
  var sup = event.srcElement.id;
  if (sup != '')
  {
  var sub = document.all[(sup + 'Sub')]
    if (sub != null)
    {
      if (sub.style.display == 'none')
      {
        sub.style.display = '';
      }
      else
      {
        sub.style.display = 'none';
      }
    }
  }
}
