function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
       frameobj.location = sel.options[index].value;
     }
  }
}

	
function sslcheck(v)  {
		var c = document.getElementById("ssl");
		var l = document.getElementById("login");
		
		if (v.value == "admin" || v.value == "Paul")  {
			c.checked = true;
			l.action = "https://www.superminis.info/members/adm_program/system/login_check.php?ssl";
		}
		else  {
			c.checked = false;
			l.action = "http://www.superminis.info/members/adm_program/system/login_check.php";
		}
		return true;
    }
    function togglessl(v)  {
		var l = document.getElementById("login");

		if (v.checked == true)  {
			l.action = "https://www.superminis.info/members/adm_program/system/login_check.php?ssl";
		}
		else  {
			l.action = "http://www.superminis.info/members/adm_program/system/login_check.php";
		}
		return true;		
	}
	
	
	
function mredirect(){
        var mconfirm = confirm("Moechten Sie die mobile Version anzeigen?");
        if(mconfirm == true){
            self.location.href = 'http://m.superminis.info/';
        }else{
            //CookieSave('NoSuperminisMobile', '1', '90');
        }
}
