<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" import="com.novell.webaccess.common.JSPConduit"%>
<% JSPConduit c = new JSPConduit(request);  
   c.stringTable("DevResources");
   c.stringTable("FwResources");
   
%>

<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/x.tld" prefix="x"%>
<iman:stringtable bundle="DevResources" />
<iman:stringtable bundle="FwResources" />

<HTML>
<HEAD>


<script language="javascript">

 function installSelectedModules(spack)
{
	if(document.pluginForm.Acceptradio[0].checked){
     var strUrl = "webacc?NPService=<%= c.var("taskId") %>&moduleaction=InstallModules&selectedItems="+spack;
     window.location.href = strUrl;
    }
    else
    {
    var url = "webacc?NPService=<%= c.var("taskId") %>&moduleaction=LicenseDisagreement";
      window.location.href=url;
    }
}

function onDisagree(){

	var url = "webacc?NPService=<%= c.var("taskId") %>&moduleaction=LicenseDisagreement";
      window.location.href=url;
}

function onExit()
{
	document.pluginForm.submit();
}

</script>

<TITLE><iman:string key="ProductName" /></TITLE>
<LINK href="<c:out value='${ModulesPath}' />/dev/css/hf_style.css" rel="styleSheet" type="text/css">
<LINK href="<c:out value='${ModulesPath}' />/dev/css/hf_message.css" rel="styleSheet" type="text/css">
<iman:stylesheet />
<iman:eMFrameScripts />

</HEAD>

<BODY bgcolor="white">	

<form name="pluginForm" method="post" action="webacc">
 <input type=hidden name="NPService" value="<%= c.var("taskId" ) %>">

<div class="head3b">
		<iman:string key="LicenseInfo.MainHeading"/></div>
	<div class="instructions" style="width: 80%"><iman:string key="LicenseInfo.InstructionText"/></div>
	
<!-- start of message box -->

<div id="notice" class="message" style="display: block">
			<b class="messagebox">
			<b class="messagebox1"><b></b></b>
			<b class="messagebox2"><b></b></b>
			<b class="messagebox3"></b>
			<b class="messagebox4"></b>
			<b class="messagebox5"></b>
			</b> <div class="messagebox_content">
			<!-- Message content Goes Here --><img src="<%= c.getModulesUrl() + "/fw/images/warn_icon.gif"%>" align="absmiddle">
				<div class="messagetext"><span class="warntype"><iman:string key="LicenseInfo.Warning"/></span><iman:string key="LicenseInfo.HeadingText1"/></div>
				<div class="subtext"><iman:string key="LicenseInfo.MainText1"/>
					<div class="messagetext" style="font-size: 1.2em"><input type="radio" name="Acceptradio" id="Agree" value="0"><iman:string key="LicenseInfo.Agree"/></div>
					<div class="messagetext" style="font-size: 1.2em"><input type="radio" checked name="Acceptradio" id="Disagree" value="1"><iman:string key="LicenseInfo.Disagree"/></div>
				</div>
			</div>
			<b class="messagebox">
			<b class="messagebox5"></b>
			<b class="messagebox4"></b>
			<b class="messagebox3"></b>
			<b class="messagebox2"><b></b></b>
			<b class="messagebox1"><b></b></b>
			</b>
		</div>
	<!-- end of message box -->
			

<iman:bar/>

<%String sPackedModules=(String)request.getAttribute("selectedItems");%>
<a href="#" onClick="javascript:installSelectedModules('<%= sPackedModules %>'); return false;" ><INPUT type=image name="OK" alt="<%= c.string("Button.OK.alt") %>" title="<%= c.string("Button.OK.alt") %>" src="<%= c.getModulesUrl() + "/dev/images/" + c.string("Button.OK.image") %>" border=0></A>
<iman:button key="Cancel" onClick="javascript:onDisagree(); return false;" name="disagreeButton"/> 
</form>


</BODY>
</HTML>
