//GENERAL SCRIPTS INCLUDING ALL MULTI-USE FUNCTIONS

//Function to split PARAMETERS out of URL
//JT 06/01/2010

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];
    
}
