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];
			}



// JavaScript Document

function launchImage(theURL,Width,Height){
	  var Scrollbars = "no";
	  if(screen.height<Height){
	  var Height = (screen.height-200);
	  var Scrollbars = "yes";
	  }
	  
	  if(screen.width<Width){
	  var Width = (screen.width-200);
	  var Scrollbars = "yes";
	  }
	  else{
	  var Width = Width;
	  }
	  var Left = (screen.width-Width)/2;
	  var Top = (screen.height-Height)/2;
	  var params = ('toolbar=no,scrollbars=' + Scrollbars + ',resizable=no,left=' + Left +',top=' + Top +',width=' + Width + ',height=' + Height);
	  
	Pop = window.open(theURL, "LaunchImage", params);
	
	Pop.focus();
}
function launch(URL) {
        
		var Width = (screen.width-(screen.width/50)); 
		var Height = (screen.height-(screen.height/10));
	    var params = ('toolbar=no,scrollbars=Yes,left=0,top=0,resizable=yes,width=' + Width + ',height=' + Height);
		pop = window.open(URL, 'newWindow', params);
		pop.focus();
	}



