Pragma: no-cache
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Untitled Document</TITLE>
<SCRIPT>
<!-- Hide script from HTML-compliant browsers


function replace(str, oldchar, newchar) {
   var newStr = ""
   var count;
   var i;
   count = str.length;
   for (i = 0; i < count; i++) {
       if (str.charAt(i) == oldchar)
           newStr += newchar;
       else
           newStr += str.charAt(i);
   }
   return newStr;
}

function new_report_win(form_name) {
    var form_len = form_name.elements.length;
    var temp_str = "";
    var param_str = "";
    var cookie_str;
    var i;
    var tmp_name, tmp_value;
    
    var temp_act = form_name.action;
    var temp_url;
    var proto = "";

    proto = window.location.protocol;
    /*i = temp_act.indexOf("http://", 0);*/
    i = temp_act.indexOf(proto+"//", 0);
    if (i >= 0) {
	/*i = temp_act.indexOf("/", i + "http://".length);*/
	i = temp_act.indexOf("/", i + (proto+"//").length);
	temp_url = temp_act.substring(i, temp_act.length);
    } else {
	temp_url = temp_act;
    }
    var url;
    var start = 0;
    if (form_name.method.toUpperCase() == "GET") {
	 for (i = start; i < form_len; i++) {
	     if (form_name.elements[i].value.length > 0 && form_name.elements[i].name.charAt(0) != " ") { 	     
		 if (temp_str == "") {
		     temp_str += form_name.elements[i].name + "=" + form_name.elements[i].value; 	     
		 } else {
		     temp_str += "&" + form_name.elements[i].name + "=" + form_name.elements[i].value; 		 
		 }	
	     }
	 }
	url = "/cgi-bin/common/perl/wizard/reportFrames.pl?_px_report_method=GET&_px_report_url=" + temp_url + "&" + temp_str;
        openReportWin(url, form_name.target);
        
    } else {

       if (form_name.action.indexOf("reportFrames") < 0) {
          if (form_name._px_report_url) {
             form_name._px_report_url.value = temp_url;
             form_name.action = "/cgi-bin/common/perl/wizard/reportFrames.pl";
          } else {
             temp_url = replace(temp_url, "?", "&");
             form_name.action = "/cgi-bin/common/perl/wizard/reportFrames.pl?" + temp_url;
          }
       }
       new_java_report_win(form_name);

    }
}

function openReportWin(url, wintarget) {
    window.open(url, wintarget, "toolbar=no,location=0,directories=no,status=yes,menubar=1,resizable=1,scrollbars=1,width=710,height=600");   
}
 
function new_java_report_win(thisform) {
    openReportWin("", thisform.target);
    thisform.submit();
}

function devselector_done(form_name, fini) {    
    var devices;
     
 	devices = document.px_dev_sel.getDevIDList();  
	var myString = new String(devices);	

	mydevIdArray = myString.split(",");	
	
    if (devices != "" && devices != null) {

      // Fix for CSCdr32999   
      // Fix for CSCdx83538

      // Fix CSCin08853
      var str = new String(document.location) ;

    if ( (mydevIdArray.length > 50)&&  (str.indexOf("InvDetailedDevInfo.pl",0) != -1) ) {

		alert("You cannot choose more than 50 devices at a time!");	
	}	
	else {
	        form_name.DeviceList.value = devices;
		if (fini == 1) {
		    new_report_win(form_name);
		} else {
		    form_name.submit();
		}
	}
    } else {
 	        if (document.px_dev_sel.hasDevTextField()) {
		  alert("Please select device(s) or enter valid device name(s) first");
		} else {
		  alert("Please select device(s) first");
		}
		
    }
	
	}
    
	

// End script hiding. -->
</SCRIPT>

</HEAD><BODY bgcolor=#ffffff ><BR><FONT size=1>
</font><center><FORM METHOD="POST" ACTION="/cgi-bin/common/perl/wizard/errPage.pl"   ENCTYPE="application/x-www-form-urlencoded">
<table cellspacing=0 cellpadding=0 border=2><tr><td bgcolor=#327474><table cellspacing=0 cellpadding=0 border=0 WIDTH=550><tr height=20><td bgcolor=#327474 height=20
    colspan=3
    valign=center
    align=center>
<font size=3 color="#ffffff"><b>
Warning
</b></font></td></tr>
<tr><td width=10 bgcolor=#327474><pre> </pre></td><td bgcolor="#cccccc">
<table border=2 cellpadding=4 cellspacing=3 width=100%><tr><td valign=top>
<img align=left border=1 src=/icons/warning.gif>
<font size=2>
Authorization error. You are not authorized to perform the requested task. </font>
</td></tr></table>
</td><td width=10 bgcolor=#327474><pre> </pre></td></tr>
<tr><td width=10 bgcolor=#327474><pre> </pre></td>
<td bgcolor=#327474><table border=0 width=100%><tr valign=top><td><pre> </pre></td><td width=100%><center><FONT COLOR="#FFFFFF">
<pre> </pre>
</FONT></center></td><td align=right>
<FONT COLOR="#FFFFFF">
</FONT></td></tr></table></td><td width=10 bgcolor=#327474><pre> </pre></td>
</tr></TABLE></td></tr></table></form></center></BODY></HTML>
