function gup( name ){
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp ( regexS );
	var tmpURL = window.location.href;
	var results = regex.exec( tmpURL );
	if( results == null )
		return"";
	else
		return results[1];
}

function clock(){
	c = new Date();
	h = c.getHours();
	m = c.getMinutes();
	s = c.getSeconds();
	
	str_s = new String(s);
  if(str_s.length == 1){ s = "0" + s; }

  str_m = new String(m);
  if(str_m.length == 1){ m = "0" + m; }

  str_h = new String(h);
  if(str_h.length == 1){ h = "0" + h; }
	
	$('#clock').html(h + ":" + m);

	setTimeout("clock()",1000);
}
