function openpopup(url, thish, thisw){
var popurl=url
var winset="width="+thisw+",height="+thish+",scrollbars,menubar,resizable";
winpops=window.open(popurl,"",winset)
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function popnews(url, thish, thisw){
  if (get_cookie('poppedup')==''){
    openpopup(url, thish, thisw)
    document.cookie="poppedup=yes"
  }
}



//----- delete job item confirmation ------//
function confirm_del($url) {
	var return_value = confirm('WARNING!!!\n\nYou are about to DELETE this job item.\n\nAre you SURE?') ;
	if ( return_value == true ) {
		window.location = $url;
	}
}

//----- delete job confirmation ------//
function confirm_deljob($url) {
	var return_value = confirm('WARNING!!!\n\nYou are about to DELETE this job. This can\'t be undone.\n\nAre you certain? When a job is complete, it is recommended\nthat you set the job status to Finished instead of deleting it.');
	if ( return_value == true ) {
		window.location = $url;
	}
}

//----- notify TO lender email confirmation ------//
function confirm_notify($url) {
	var return_value = confirm('Attention!!!\n\nYou are about to notify the lender by EMAIL\nthat the following subordination request has\nbeen sent to the lien holder.\n\nAre you certain you want to do this?');
	if ( return_value == true ) {
		window.location = $url;
	}
}

//----- notify FROM lender email confirmation ------//
function confirm_notifyfrom($url, $sendto) {
	var return_value = confirm('Attention!!!\n\nYou are about to notify the Account Owner by EMAIL\nthat the Request for Proposal has\nbeen completed by the Carrier and is now in transit to \n[' + $sendto.toUpperCase() + '].\n\nAre you certain you want to do this?');
	if ( return_value == true ) {
		window.location = $url;
	}
}

//menus removed for now
