// Extracting and Appending URL variables

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?]"+name+"=([^#]*)";
  //var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "WEB";
  else
    return results[1];
} 

var regSrc =  gup( 'reg_src' );
//var hbxAcctNum = gup( 'HBX_Account_Number' );
//var sId = gup( 'Source_ID' );
//var formType =  gup( 'form_type' );

//function appendVar(url)
//{
	//appendVar_url = url;
	//window.location = (appendVar_url);
	//window.location=appendVar_url;	
//}
