function DB_newWindow(url,name,width,height,left,top,status,directories,location,toolbar,menubar,scrollbars,resizable) {
options=((width!="")?"width="+width:"")+((height!="")?",height="+height:"")+((left!="")?",left="+left:"")+((top!="")?",top="+top:"")+",status="+((status=="1")?"yes":"no")+",directories="+((directories=="1")?"yes":"no")+",location="+((location=="1")?"yes":"no")+",toolbar="+((toolbar=="1")?"yes":"no")+",menubar="+((menubar=="1")?"yes":"no")+",scrollbars="+((scrollbars=="1")?"yes":"no")+",resizable="+((resizable=="1")?"yes":"no");
  window.open(url,name,options);
}

function RightPopup(url,name,width,height){
var l = screen.width-width-20;
var t = (screen.height-height)/20;
winfeat = 'height='+height+',width='+width+',top='+t+',left='+l;
window.open(url,name,winfeat);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function DB_goto(url) {
  self.location = url
}

function redirect1() {
    setTimeout("redirect2()", 1000)
}
function redirect2() {
    self.location = "home/welcome.html"
}

function maximizeWin() {
  if (window.screen) {
    var aw = screen.availWidth;
    var ah = screen.availHeight;
    window.moveTo(0, 0);
    window.resizeTo(aw, ah);
  }
}


function DBnewfullWin(url){
window.open(url,'DBwin','status=yes,directories=yes,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,left=0,top=0,width=' + screen.availWidth + ',height=' + screen.availHeight);
}

function BGnewfullWin(url){
window.open(url,'BGwin','status=yes,directories=yes,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,left=0,top=0,width=' + screen.availWidth + ',height=' + screen.availHeight);
}
