 var WindowObjectReference = null; // global variable

 function openRequestedPopup(strUrl, strWindowName)
 {
  if(WindowObjectReference == null || WindowObjectReference.closed)
  {
    WindowObjectReference = window.open(strUrl, strWindowName,
           "status=1,scrollbars=1,toolbars=0,menubar=1,resizable=1,height=800,width=600");
  }
  else
  {
    WindowObjectReference.focus();
  };
 }


if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
	document.cookie = 'IDEVICE=1; path=/; ';
}

