	function select_URL() { 
		var url = "https://sumapp.emed.net/public/login.html";
		var intUrl = "http://sumapp.med-web.com/public/login.html";

		var myHost = location.hostname.indexOf("med-web");
		
		if( myHost != -1 ) {
		  url = intUrl;
		} 

		display( url );
	}
	function display(doc)      {
	    var url = doc;
        	w = 10000;
		h = 10000;
		if(window.screen)  {
	          w = window.screen.availWidth-10;
		  h = window.screen.availHeight-30;
		}
	newname=window.name+1;
        window_options = "status=no,hotkeys=no,top=0,left=0,width="+w+",height="+h;
        if (newname.length > 10)
          newname = newname.substring(0, 5);
        remote = window.open(url, newname,  window_options);
		if ( remote != null ) {if ( remote.opener == null ) {remote.opener = self;}}
    }

