<!--

function new_window(theURL,winName,features,myWidth,myHeight,isCenter) {

  if(window.screen)if(isCenter)if(isCenter == 'true') {

    var myLeft = (screen.width-myWidth)/2;

    var myTop = (screen.height-myHeight)/2;

    features+=(features!='')?',':'';

    features+=',left='+myLeft+',top='+myTop;

  }

  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);

}



function new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {

  if(window.screen)if(isCenter)if(isCenter == 'true') {

    var myLeft = (screen.width-myWidth)/2;

    var myTop = (screen.height-myHeight)/2;

    features+=(features!='')?',':'';

    features+=',left='+myLeft+',top='+myTop;

  }

  imagepopup = window.open('','',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);

  with (imagepopup) {

    document.open();

    document.write('<title>'+winName+'</title>');

    document.write('<meta http-equiv="imagetoolbar" content="no">');

    document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">');

    document.write('<a href="javascript:self.close()">');

    document.write('<img src="'+theURL+'" border="0" alt="'+altName+'" title="'+altName+'">');

    document.write('</a></body>');

    document.close();

  }

}



function newImage(arg) {

  if (document.images) {

    rslt = new Image();

    rslt.src = arg;

    return rslt;

  }

}



var preloadFlag = false;

function preloadImages() {

  if (document.images) {

    for (var i=0; i<preloadImages.arguments.length; i++) {

      rslt = newImage(preloadImages.arguments[i]);

    }

    preloadFlag = true;

  }

}



function changeImages() {

  if (document.images && (preloadFlag == true)) {

    for (var i=0; i<changeImages.arguments.length; i+=2) {

      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];

    }

  }

}

function FlexOpenWin(name,w,h) {

	var left, top;

	if (screen.width && screen.height) {

		left = (screen.width/2) - (725/2);

		top = (screen.height/2) - (400/2);

	}

	fqWin = window.open(name,'fq','width=' + w + ',height=' + h + ',left=' + left + ',top=' + top + ',resizable=1,toolbar=0,scrollbars=1,menubar=0,directory=0,status=0');

}

var win=null;

function NewWindow(mypage,myname,w,h,scroll,pos){

if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}

if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}

else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

win=window.open(mypage,myname,settings);

}

//-->
