/* FORM AUTHENTICATION FUNCTION */
function ShowWindow(ML){
		var URLStr="";
		URLStr = "/ADS/Launch.jsp?ML=" + ML;
		window.open(URLStr,"IndexWindow","top=0,left=0,height=666,width=1016,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,titlebar=no,resizable=yes");
        return false;
	}
	
	function PostForm(uname,pass) {
        var form = document.createElement("form");    
        form.setAttribute("method", "post");    
        form.setAttribute("action", "http://www.architectsdesignstudio.com/ADS/Launch.jsp");   
        form.setAttribute("target", "IndexWindow")
       
        var i=0;
        params=new Array("Submit",uname,pass,"GP");
        paramnames=new Array("cmdSubmit","txtName","txtPassword","ML");
        for(i=0;i<params.length;i++) {        
            var hiddenField = document.createElement("input");        
            hiddenField.setAttribute("type", "hidden");        
            hiddenField.setAttribute("name", paramnames[i]);        
            hiddenField.setAttribute("value", params[i]);        
            form.appendChild(hiddenField);    
        }
        document.body.appendChild(form);   
        window.open("","IndexWindow","top=0,left=0,height=666,width=1016,status=yes,toolbar=no,menubar=no,scrollbars=no,location=no,titlebar=no,resizable=yes");
        form.submit();
        return false;
    }