

/* Thanks to Scott Andrew */
function addEvent(obj, evType, fn){
    if (obj.addEventListener) {
        obj.addEventListener(evType, fn, true);
        return true;
    } else if (obj.attachEvent) {
        var r = obj.attachEvent("on"+evType, fn);
        return r;
    } else {
	    return false;
    }
}

/*function minHeightForIE () {
  if (navigator.appName.indexOf("Microsoft") == -1) return;
  
  obj = document.getElementById("minHeight");
  if (obj == null) return;

  if (document.body.clientHeight < 762)
  {
    obj.style.height = 762;
    alert('asd');
  }
  //else if (document.body.clientWidth >= 1198)
  //  obj.style.width = 1198;
  else
    obj.style.height = '';
}

addEvent (window, 'load', minHeightForIE);
addEvent (window, 'resize', minHeightForIE);*/
 
/*function minWidthForIE () {
  if (navigator.appName.indexOf("Microsoft") == -1) return;
  
  obj = document.getElementById("minWidth");
  if (obj == null) return;

  if (document.body.clientWidth <= 762)
    obj.style.width = 762;
  //else if (document.body.clientWidth >= 1198)
  //  obj.style.width = 1198;
  else
    obj.style.width = '';
}

addEvent (window, 'load', minWidthForIE);
addEvent (window, 'resize', minWidthForIE);
*/

function popPage (url) {
  window.open(
    url,
    'popup',
    'width=700,height=530,toolbar=no,location=no,directories=no,status=no,scrollbars=yes'
    );
  return false;
}
