// JavaScript Document
function myOpenWindow(winURL, winName, winFeatures, winObj)
{
  /*var theWin; // this will hold our opened window

  // first check to see if the window already exists
  if (winObj != null)
  {
    // the window has already been created, but did the user close it?
    // if so, then reopen it. Otherwise make it the active window.
    if (!winObj.closed) {
      winObj.focus();
      return winObj;
    }
    // otherwise fall through to the code below to re-open the window
  }

  // if we get here, then the window hasn't been created yet, or it
  // was closed by the user.
  theWin = window.open(winURL, winName, winFeatures);
  return theWin;*/
}

function checkcookie(){
if (document.cookie == ""){
//alert("no cookie found");
//var regWin=myOpenWindow("http://www.hrusa.org/thisismyhome/register.php","Register_Window","resizable=yes,scrollbars=yes,width=725,top=10,left=10", regWin );
/*if (!regWin || !regWin.top) {
return null;
// popup has been blocked
}*/

}
else {
var dc_array=document.cookie.split("=");
var contactIDvalue=dc_array[1];
var message = "contact ID = ";
message += contactIDvalue;
//alert(message);
return contactIDvalue;
}
}
