var reg_mode = 0;

var reg_mesg = "This content is available to registered users only.\n\nWould you like to register or sign in?";

var path_3win = "";


function checkreg(src,act) {
if(reg_mode==2) return true;
getUCMCookies();

if(!isUCMRegistered() || reg_mode==1) {
  if (confirm(reg_mesg)) 
    top.location = "https://profile.oracle.com/jsp/reg/register.jsp?src="+src+"&Act="+act;
  return false;

}
return true;
}

function launch3Win(src,act,cid,opt) {

if(!checkreg(src,act)) return;
width1 = 820;
height1 = 650;
top1 = Math.ceil((screen.availHeight - height1)/2) - 25;
left1 = Math.ceil((screen.availWidth - width1)/2);
url = path_3win + "enter.html?win=3&src="+src+"&act="+act+"&cid="+cid;

if(opt) url = url + "&" + opt;
window.open(url,"tcwin","top="+top1+",left="+left1+",width="+width1+",height="+height1+",status=yes,resizable=yes");
}

function launchOnd(src,act,cid,cmsid,opt) {
if(!checkreg(src,act)) return;
width1 = 405;

height1 = 650;
top1 = Math.ceil((screen.availHeight - height1)/2) - 25;
left1 = Math.ceil((screen.availWidth - width1)/2);
url = path_3win + "enter.html?win=1&src="+src+"&act="+act+"&cid="+cid+"&cmsid="+cmsid;
if(opt) url = url + "&" + opt;
window.open(url,"onDemandWin","top="+top1+",left="+left1+",width="+width1+",height="+height1+",status=no,resizable=no");
}


function launchIsem(src,act,cid,cmsid) {
  if(!checkreg(src,act)) return;
  showISeminar(cid,cmsid);
}









