// JavaScript Document
//var rxplanding;
var exp = new Date();     //set new date object

function setCookie(name, value, expires) {
	exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 30));     //set it 30 days ahead 
	document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());

} 



function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
  setCookie('rxplanding','initalLoad', exp); 
}
function enterHere(){
	setCookie('rxplanding','initalLoad', exp); 
	window.location="http://v2.recognitionexpresslv.com";
	}


	
	
function getCookie (name) {
    var dc = document.cookie.split(';');
    var cname = name + "=";
	for(var i=0; i < dc.length; i++){
    var y = dc[i];
	while (y.charAt(0) == ' ')
		y = y.substring(1, y.length);
	if(y.indexOf(cname) == 0)
		return y.substring(cname.length, y.length);
	      }
	 return null;
}
	
function openAjaxConfirm() {
var thisCookie = getCookie('rxplanding');
if(thisCookie == 'initalLoad'){
	window.location="http://v2.recognitionexpresslv.com";
	}else{
		Dialog.confirm({url: "dialogrxp.html", options: {method: 'get'}}, 
                     {top: 100, width:600, className: "alphacube", okLabel: "", cancelLabel:""})    
  };
  //alert(thisCookie);
}

