	  	function loadcode(divurl, tmpUrl) {
		
		  var req = new XMLHttpRequest();
		  if (req) {
			req.onreadystatechange = function() {
			  if (req.readyState == 4 && req.status == 200) {
				var frameSel = document.getElementById(divurl);
				frameSel.innerHTML = req.responseText;
				//alert(req.responseText);
			  }
			};
			req.open('GET', tmpUrl);
			req.send(null);
			
		  }
		}
		
	  	function loadcodeNoTurn(tmpUrl) {
		  var req2 = new XMLHttpRequest();
		  if (req2) {
			req2.onreadystatechange = function() {
			  if (req2.readyState == 4 && req2.status == 200) {
				var frameSel = document.getElementById("DEBUG");
				frameSel.innerHTML = req2.responseText;
				//alert(req2.responseText);
			  }
			};
			req2.open('GET', tmpUrl);
			req2.send(null);
			
		  }
		}

		// Cross Browser DOM
		// copyright Stephen Chapman, 4th Jan 2005
		// you may copy this code but please keep the copyright notice as well
		var aDOM = 0; /* var ieDOM = 0; */ var nsDOM = 0;
		var stdDOM = document.getElementById;
		if (stdDOM) aDOM = 1; else {/*ieDOM = document.all; if (ieDOM) aDOM = 1; else { */
		var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)
		&& (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1; /* } */ }
		
		function xDOM(objectId, wS) {
			if (stdDOM) return wS ? document.getElementById(objectId).style:
			document.getElementById(objectId);
			if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];
			if (nsDOM) return document.layers[objectId];
		}	
		
		function wopen(url, name, w, h)
{
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
  }
  
  var win
  
    if(!win || win.closed)
    {
    win=window.open(url, null, 'width=' + w + ', height=' + h + ', left=' + wleft + ', top=' + wtop + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no');

        if(win)
        {
                    win.resizeTo(w, h);
                    win.moveTo(wleft, wtop);
            win.focus();   
        }
        else
        {
            location.href=url;
        }
    }
    else
    {
        win.location.href=url;
             win.resizeTo(w, h);
             win.moveTo(wleft, wtop);
        win.focus();   
    }  
}

function wopen_scroll(url, name, w, h)
{
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
  }
  
  var win
  
    if(!win || win.closed)
    {
    win=window.open(url, null, 'width=' + w + ', height=' + h + ', left=' + wleft + ', top=' + wtop + ', location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=no');

        if(win)
        {
                    win.resizeTo(w, h);
                    win.moveTo(wleft, wtop);
            win.focus();   
        }
        else
        {
            location.href=url;
        }
    }
    else
    {
        win.location.href=url;
             win.resizeTo(w, h);
             win.moveTo(wleft, wtop);
        win.focus();   
    }  
}