retardin='';
retardout='';
pgx=0;
pgy=0;
cx=0.02;
xxo=Math.round(screen.width/2);
yyo=Math.round(screen.height/2);
xxr=0;
yyr=0;
gmm=0;
gmmax=1;
mouse_at_x = 0;
mouse_at_y = 0;
my_browser ='unknown'
is_w3c = (document.getElementById)  ? true : false;
is_ie4 = (document.all && !is_w3c) ? true : false;
is_ie5 = (document.all &&  is_w3c) ? true : false;
is_ns4 = (document.layers) ? true : false;

//alert(my_browser + '||' + is_w3c +',' + is_ie4 +',' + is_ie5 + ',' + is_ns4);
spec_at= '';

function giswitch(id_name,id_src) {

switch(gioff) {
   case 2: {
     gioff=0;
     break;
   }
   case 1: {
     gioff=2;
     break;
   }
   case 0: {
     gioff=1;
     break;
   }

}
var nsrc=id_src[gioff];
var elem=fetch_Element(id_name);
elem.src=nsrc;
}


function gisel(id_name,id_src,id_new) {

id_new=parseInt(id_new,10);
var nsrc=id_src[id_new];
var elem=fetch_Element(id_name);
elem.src=nsrc;
}


function fetch_Element(id) {
  winstat=window.status

    if (typeof id == 'object' || typeof id=='[object]') {
//      window.status='You passed the data-type  ' + id + '    .';
      return id;
      }
    else {
//      window.status='You passed the id-label  ' + id + '    .';
      }

  if( is_ns4 ) return findlayer( id, document );
    else if( is_ie4 ) return document.all[id];
  else return window.document.getElementById(id);

}

function makewin(winurl,winame,winwidth,winheight,resize,dirs,locatio,menus,scrolls,toolbar) {

var jq=String.fromCharCode(34);
var qo='';
var qe='';

if (winurl=='*') var winurl='';
if (resize=='*') var resize='no';
if (scrolls=='*') var srcolls='no';

var paras=new Array();

var ecode='window.open(';
var eot='\")';
var argsep=',';
var upat=/undefined/g;
var uvar="undefined";
var urep='no';


paras[1]='\"'+ winurl + '\"';
paras[2]=' \"' + winame + '\"';
paras[3]= jq + ' width=' + qo + winwidth +qe;
paras[4]=' height=' + qo + winheight + qe;
paras[5]=' resizable=' + qo + resize + qe;
paras[6]=' directories=' + qo + dirs + qe;
paras[7]=' location=' + qo + locatio + qe;
paras[8]=' menubar=' + qo + menus +qe;
paras[9]=' scrollbars=' + qo + srcolls + qe;
paras[10]=' toolbar=' + qo+ toolbar + qe;

var nrargs=paras.length;


var it=1;
while (it<nrargs) {
  var ipar=paras[it];
  var epar=ipar.replace(upat,urep);
  var ecode=ecode+ epar + argsep;
  it+=1;
}

var ecode=ecode.substring(0,(ecode.length)-1);
var ecode='winchild=' + ecode+eot;

alert(ecode);
eval(ecode);

return true;
}

function PopUp(whichurl,whichlabel) {
	popupURL = whichurl;
	window.open(popupURL, whichlabel, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=650,height=415,screenX=0,screenY=0");
}

function PopWin(whichurl,whichlabel,wi,hi,scroll) {
var uvar="undefined";

popupURL=whichurl;
window.open(popupURL, whichlabel, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=no,width=" + wi + ",height=" + hi + ",screenX=0,screenY=0");

popupURL = whichurl;
}
