var _POPUP_FEATURES = 'toolbar=no, location=no, statusbar=no, menubar=no, scrollbars=yes, resizable=no, width=700, height=700, screenX=10,screenY=120, top=100,left=120';



function popupWindowRates(url) {
  window.open(url,'popupWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=250,screenX=230,screenY=150,top=150,left=230')
}

function popupWindowInfo(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=500,height=280,screenX=230,screenY=150,top=150,left=230')
}


function isUndefined(a) { return typeof a == 'undefined' }

function raw_popup(url, target, features) {
    if (isUndefined(features)) features = _POPUP_FEATURES;
    if (isUndefined(target  )) target   = '_blank';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}

function open_popup(src, features) {
    return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}

			function showConditions_try (url, target){
					var handle;
					var feats; 
					vtop=screen.availHeight /2 - screen.availHeight /6;
					vleft=screen.availWidth/2 - screen.availWidth/6;
					feats="height=350,width=350,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no,status=no,left=" + vleft + ",top=" + vtop ;	
    if (isUndefined(target  )) target   = '_blank';
					
					handle=window.open(url,target,feats);
					handle.focus();
    return handle;
					
				}

var i=0;
function resize() {
  if (navigator.appName == 'Netscape') i=10;
  if (document.images[0]) {
  imgHeight = document.images[0].height+45-i;
  imgWidth = document.images[0].width+30;
  var height = screen.height;
  var width = screen.width;
  var leftpos = width / 2 - imgWidth / 2;
  var toppos = height / 2 - imgHeight / 2;
  window.moveTo(leftpos, toppos);
  window.resizeTo(imgWidth, imgHeight);
  }
  self.focus();
}

				