
//------------------------------------------------------------
// PopUp
//------------------------------------------------------------
function popup(theURL) {
  window.open(theURL,Math.floor(Math.random()*100),'status=yes,toolbar=yes,scrollbars=yes,menubar=yes,resizable=yes,width=750,height=500');
}
function opener(theURL,newwinFlag) {
  if((is_opener())&&(newwinFlag!='newwin')) {
    ol = window.opener;
    ol.location.href=theURL;
    ol.focus();
  } else {
    window.open(theURL,'blank','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes');
  }
}
function is_opener() {
  var ua = navigator.userAgent;
  if(!!window.opener) {
    if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1) { 
      return !window.opener.closed;
    } else {
      return typeof window.opener.document  == 'object';
    }
  } else {
    return false;
  }
}

function popup2(theURL) {
  window.open(theURL,Math.floor(Math.random()*100),'status=yes,toolbar=yes,scrollbars=yes,menubar=yes,resizable=yes,width=930,height=700');
}
function opener(theURL,newwinFlag) {
  if((is_opener())&&(newwinFlag!='newwin')) {
    ol = window.opener;
    ol.location.href=theURL;
    ol.focus();
  } else {
    window.open(theURL,'blank','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes');
  }
}
function is_opener() {
  var ua = navigator.userAgent;
  if(!!window.opener) {
    if( ua.indexOf('MSIE 4')!=-1 && ua.indexOf('Win')!=-1) { 
      return !window.opener.closed;
    } else {
      return typeof window.opener.document  == 'object';
    }
  } else {
    return false;
  }
}
