function openWindow(url, w, h) {
	w = parseInt( w ) + 20;
	var windowprops = "width=" + w + ",height=" + h + ",scrollbars=1";
	popup = window.open(url,'remote',windowprops);
}

function getUrlParam(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];
}