// JavaScript Document
//this function will get the variables from the URL
function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
//alert(gup('r')+gup('a'));

//this function will get the variables and pass them to the hidden form fields - needs body onLoad="getinfo()"

function getinfo()
{
document.forms['new_accounts'].elements['00N50000001KfHC'].value = gup('o');
document.forms['new_accounts'].elements['00N700000021DS3'].value = gup('c');
}
