Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

693 lines
23 KiB

  1. <%@Language=Javascript%>
  2. <%
  3. /* Took this out, cuz do we really need it? Since all the cookies are grabbed?
  4. var rLang = "en"
  5. var rTemplate = 0
  6. var rContact = 0
  7. var rProduct = 0
  8. var rSolutionType = 0
  9. var rDeliveryType = 0
  10. var rSP = 0
  11. var rModule = 0
  12. var rBug = ""
  13. var rDescription = ""
  14. var rKB = ""
  15. var rSolutionID = 0
  16. */
  17. var STATE_NEWSOLUTION = 0
  18. var UNDEF = "undefined"
  19. var DebugBuild
  20. var rState = new String( Request.QueryString("State") )
  21. var rMode = new String( Request.Cookies("rMode") )
  22. var Alias = GetShortUserAlias()
  23. //Alias = new String(Alias )
  24. //if ( Alias.toString() != "sandywe" || Alias.toString() != "solson" )
  25. if ( (Alias != "solson") && (Alias != "sandywe") && (Alias != "andreva" ) && ( Alias != "jeffreyb" ) )
  26. {
  27. Response.Write("You do not have access to this site, please contact [email protected] if this is in error. " + Alias)
  28. Response.End()
  29. }
  30. //First check to see if we get the solutionID on the QueryString, if so, that means someone
  31. //wants to lookup this solution via the drop down list. So get it.
  32. var rSolutionID = Request.QueryString( "Val" ) //val is sent to this page by this page. . . strange isn't it.
  33. //If the solutionID is not a number, then it doesn't exist on the querystring, so check the cookie
  34. if ( isNaN( rSolutionID ) || rSolutionID == null )
  35. {
  36. rSolutionID = Request.Cookies( "rSolutionID" )
  37. //if it doesn't exist in the cookie, then they must be on a new solution.
  38. if ( isNaN( rSolutionID ) || rSolutionID == "" )
  39. rSolutionID= STATE_NEWSOLUTION;
  40. }
  41. try
  42. {
  43. if ( rSolutionID != STATE_NEWSOLUTION )
  44. {
  45. var g_DBConn = GetDBConnection( Application("SOLUTIONS3") )
  46. {
  47. //Get the data, and set the variables
  48. var rsSolution = g_DBConn.Execute( "SEP_GetSolutionBySolutionID " + rSolutionID )
  49. var rTemplate = new String( rsSolution("TemplateID" ) )
  50. var rLang="en"
  51. var rContact = new String( rsSolution("ContactID" ) )
  52. var rProduct = new String( rsSolution("ProductID" ) )
  53. var rSolutionType = new String( rsSolution("SolutionType" ) )
  54. var rDeliveryType = new String( rsSolution("DeliveryType" ) )
  55. var rSP = new String( rsSolution("SP" ) )
  56. var rModule = new String( rsSolution("ModuleID" ) )
  57. var rKB = new String( rsSolution("Description") )
  58. }
  59. }
  60. else
  61. {
  62. var rTemplate = new String( Request.Cookies("rTemplate") )
  63. var rLang ="en"
  64. var rContact = new String( Request.Cookies("rContact") )
  65. var rProduct = new String( Request.Cookies("rProduct") )
  66. var rSolutionType = new String( Request.Cookies("rSolutionType") )
  67. var rDeliveryType = new String( Request.Cookies("rDeliveryType") )
  68. var rSP = new String( Request.Cookies("rSP") )
  69. var rModule = new String( Request.Cookies("rModule") )
  70. var rKB = new String( Request.Cookies("rKB") )
  71. }
  72. }
  73. catch( err )
  74. {
  75. Response.Write("SolutionID:" + rSolutionID + "<BR>")
  76. Response.Write("err: " + err.description )
  77. }
  78. //This is kinda a fallback, in case these things didn't get set . . .
  79. //Sometimes the values are null in the DB, so set them so nothing breaks in the RDS control
  80. if ( rSolutionType == "" )
  81. {
  82. rSolutionType = 0;
  83. rDeliveryType = 0;
  84. }
  85. //Response.Write("rSolutionID " + rSolutionID)
  86. %>
  87. <!--#INCLUDE FILE='Global_DBUtils.asp' -->
  88. <!--#include file='global_serverutils.asp'-->
  89. <head>
  90. <link rel="stylesheet" TYPE="text/css" HREF="/main.css">
  91. <link rel="stylesheet" TYPE="text/css" HREF="/CustomStyles.css">
  92. <meta http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
  93. </head>
  94. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0'>
  95. <form name='SolutionForm' action="SEP_GoCreateSolution.asp" method='POST'>
  96. <div id='divMain'>
  97. <table ID='tblMainBody' BORDER='0' cellpadding='0' cellspacing='0' height='100%'>
  98. <tr valign='top'>
  99. <td class='flyoutMenu2' HEIGHT='100%'>
  100. <table BORDER='0' height='100%' cellpadding='0' cellspacing='0' width='340'>
  101. <tr valign='top'>
  102. <td height='100%'>
  103. <table width='100%' cellpadding='0' cellspacing='0' border='0'>
  104. <tr>
  105. <td class='sys-toppane-header'>
  106. <p class='Flyouttext'>Solution Entry Pages</p>
  107. </td>
  108. <td class='sys-toppane-header'>
  109. <img src='include/images/offsite.gif' OnClick='fnCloseNav()'>
  110. </td>
  111. </tr>
  112. </table>
  113. <table width='100%' cellpadding='0' cellspacing='0' border='0' height='100%' VALIGN='top'>
  114. <tr>
  115. <td height='100%' class='flyoutMenu' valign='top'>
  116. <table width='100%' cellpadding='0' cellspacing='0' border='0' >
  117. <tr>
  118. <td class='flyoutLink'>
  119. <img alt='' src='/include/images/endnode.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  120. Mode
  121. </td>
  122. <td align='left'>
  123. <select class='clsSEPSelect' id="Mode" name="Mode" onchange="javascript:fnSaveMode();document.all.divCreateSolution.style.visibility='hidden';this.value=='user' ? btnLinkBuckets.style.display='none' : btnLinkBuckets.style.display='block'">
  124. <option value='kernel' <%if( rMode=="kernel" ) Response.Write("selected")%>>Kernel Mode</option>
  125. <option value='user' <%if( rMode=="user") Response.Write("selected")%> >User Mode</option>
  126. </select>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class='flyoutLinkFakeA' OnClick="javascript:fnClearState();window.parent.frames('sepBody').window.location = 'sep_defaultbody.asp?SolutionID=' + document.all.SolutionID.value" >
  131. <img alt='' src='/include/images/offsite.gif' border='0' WIDTH='18' HEIGHT='11'>
  132. Get Solution
  133. </td>
  134. <td>
  135. <select class='clsSEPSelect' name='SolutionID' OnChange="fnViewSolution();document.all.divCreateSolution.style.visibility='hidden'">
  136. <option value='0'>New Solution
  137. <% DropDown( "SEP_GetSolutionIDs", rSolutionID )%>
  138. </select>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td colspan='2'>
  143. <p><input name='openSolutionOnChange' id='openSolutionOnChange' style='width:30px' type='checkbox' <%=Request.Cookies("OpenSolution")%> onchange="fnSaveOptions()" >Automatically open solution on change</p>
  144. <p><input name='editSolutionOnChange' id='editSolutionOnChange' style='width:30px' type='checkbox' <%=Request.Cookies("EditSolution")%> onchange="fnSaveOptions()" >Automatically edit solution</p>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td colspan=2 align='right' style='padding-right:15px'>
  149. <input class='clsButton' type='button' value='Edit/Create Solution' OnClick='javascript:fnSaveMode();fnClearState();window.location="http://<%=g_ServerName%>/SEP_LeftNav.asp?Val=" + document.all.SolutionID.value + "&State=1"'>
  150. </td>
  151. </tr>
  152. <tr>
  153. <td colspan=2 align='right' style='padding-right:15px'>
  154. <input id='btnLinkBuckets' class='clsButton' type='button' value='Link Buckets' OnClick="window.parent.frames('sepBody').window.location='sep_LinkBucketsToSolution.asp?SolutionID=' + SolutionID.value">
  155. </td>
  156. </tr>
  157. <tr>
  158. <td colspan=2 align='right' style='padding-right:15px'>
  159. <input class='clsButton' type='button' value='Response Queue' OnClick="fnClearState();window.parent.frames('sepBody').window.location='sep_SolutionQueue.asp?Mode=' + Mode.value">
  160. <hr>
  161. </td>
  162. </tr>
  163. </table>
  164. <div id='divCreateSolution' style='visibility:<%rState.toString()!="1" ? Response.Write("hidden") : Response.Write("visible")%>'>
  165. <table width='100%' cellpadding='0' cellspacing='0' border='0' >
  166. <tr>
  167. <td class='flyoutLink'>
  168. <img alt='' src='/include/images/endnode.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  169. <a name='aPreview' href="http://<%=g_ServerName%>" target='sepBody' OnClick='javascript:this.href = fnPreviewSolution()' >Solution Preview</a>
  170. </td>
  171. <td class='flyoutLink'>
  172. <%
  173. if ( rSolutionID == "0" )
  174. Response.Write("for a New Response")
  175. else
  176. Response.Write("for SolutionID: " + rSolutionID )
  177. %>
  178. <input type='hidden' name='rSolutionID' value='<%=rSolutionID%>'>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td class='flyoutLink'>
  183. <img alt='' src='/include/images/endnode.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  184. Preview Language
  185. </td>
  186. <td colspan=3>
  187. <SELECT class='clsSEPSelect' NAME='Lang' OnChange='fnUpdate();fnSaveState()'>
  188. <OPTION VALUE='en' <%if (rLang == "en") Response.Write( "SELECTED" )%>>en
  189. <OPTION VALUE='de' <%if (rLang == "de") Response.Write( "SELECTED" )%>>de
  190. <OPTION VALUE='ja' <%if (rLang == "ja") Response.Write( "SELECTED" )%>>ja
  191. <OPTION VALUE='fr' <%if (rLang == "fr") Response.Write( "SELECTED" )%>>fr
  192. </select>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td class='flyoutLinkRed'>
  197. <img alt='' src='/include/images/offsite.gif' border='0' WIDTH='18' HEIGHT='11'>&nbsp;&nbsp;
  198. <a name='aTemplate' href="http://<%=g_ServerName%>" target='sepBody' OnClick='javascript:fnSaveState();this.href="http://<%=g_ServerName%>/SEP_EditTemplate.asp?Lang=en&Val=" + document.all.TemplateID.value' >Template</a>
  199. </td>
  200. <td>
  201. <select class='clsSEPSelect' name='TemplateID' OnChange='fnUpdate();fnSaveState()'>
  202. <OPTION VALUE='-1'>New template
  203. <% DropDown ( "SEP_GetTemplates", rTemplate ) %>
  204. </select>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td class='flyoutLink'>
  209. <img alt='' src='/include/images/offsite.gif' border='0' WIDTH='18' HEIGHT='11'>&nbsp;&nbsp;
  210. <a name='aContact' href='http://<%=g_ServerName%>"' target='sepBody' OnClick='javascript:fnSaveState();this.href="http://<%=g_ServerName%>/SEP_Contact.asp?Val=" + document.all.ContactID.value'>Contact</a>
  211. </td>
  212. <td>
  213. <select class='clsSEPSelect' name='ContactID' OnChange='fnUpdate();fnSaveState()'>
  214. <option value='-1'>New Contact
  215. <% DropDown( "SEP_GetContacts",rContact ) %>
  216. </select>
  217. </td>
  218. </tr>
  219. <tr>
  220. <td class='flyoutLink'>
  221. <img alt='' src='/include/images/offsite.gif' border='0' width='18' height='11'>&nbsp;&nbsp;
  222. <a name='aProduct' href='http://<%=g_ServerName%>"' target='sepBody' OnClick='javascript:fnSaveState();this.href="http://<%=g_ServerName%>/SEP_EditProduct.asp?Val=" + document.all.ProductID.value'>Product</a>
  223. </td>
  224. <td>
  225. <select class='clsSEPSelect' name='ProductID' OnChange='fnUpdate();fnSaveState()'>
  226. <option value='-1'>New Product
  227. <% DropDown( "SEP_GetProducts",rProduct )%>
  228. </select>
  229. </td>
  230. </tr>
  231. <tr>
  232. <td class='flyoutLink'>
  233. <img alt='' src='/include/images/offsite.gif' border='0' width='18' height='11'>&nbsp;&nbsp;
  234. <a name='aModule' href='http://<%=g_ServerName%>"' target='sepBody' OnClick='javascript:this.href="http://<%=g_ServerName%>/SEP_EditModule.asp?Val=" + document.all.ModuleID.value'>Module</a>
  235. </td>
  236. <td>
  237. <select class='clsSEPSelect' name='ModuleID' OnChange='fnUpdate();fnSaveState()'>
  238. <option value='-1'>New Module
  239. <% DropDown( "SEP_GetModules",rModule )%>
  240. </select>
  241. </td>
  242. </tr>
  243. <tr>
  244. <td class='flyoutLink Red'>
  245. <img alt='' src='/include/images/endnode.gif' border='0' width='11' height='11'>&nbsp;&nbsp;
  246. Solution Type
  247. </td>
  248. <td>
  249. <!-- <select class='clsSEPSelect' name=SolutionType OnChange="CheckSolutionType();fnSaveState()" > -->
  250. <select class='clsSEPSelect' name=SolutionType >
  251. <option value='NULL'>None</OPTION>
  252. <% DropDown( "SEP_GetSolutionTypes", rSolutionType ) %>
  253. </select>
  254. </td>
  255. </tr>
  256. <tr>
  257. <td class='flyoutLink Red'>
  258. <img alt='' src='/include/images/endnode.gif' border='0' width='11' height='11'>&nbsp;&nbsp;
  259. Delivery Type
  260. </td>
  261. <td>
  262. <select class='clsSEPSelect' name='DeliveryType'>
  263. <option value='NULL'>None</OPTION>
  264. <% DropDown( "SEP_GetDeliveryTypeBySolutionType " + rSolutionType, rDeliveryType ) %>
  265. </select>
  266. </td>
  267. </tr>
  268. <tr>
  269. <td class='flyoutLink'>
  270. <img alt='' src='/include/images/endnode.gif' border='0' width='11' height='11'>&nbsp;&nbsp;
  271. Service Pack
  272. </td>
  273. <td>
  274. <select class='clsSEPSelect' name='SP' onchange='fnSaveState()'>
  275. <option value='None'>None
  276. <option value='1'>SP1
  277. <option value='2'>SP2
  278. <option value='3'>SP3
  279. </select>
  280. </td>
  281. </tr>
  282. <tr>
  283. <td class='flyoutLink'>
  284. <img alt='' src='/include/images/endnode.gif' border='0' width='11' height='11'>&nbsp;&nbsp;
  285. <a name='aKB' href="http://<%=g_ServerName%>" target='sepBody' OnClick='javascript:this.href="http://<%=g_ServerName%>/SEP_KBArticle.asp?Lang=en&Val="' >KB Articles</a>
  286. </td>
  287. <td>
  288. <input type='hidden' name='kbArticles' ID='kbArticles' size='8' maxlength='8' value='<%=rKB%>'>
  289. <%
  290. if( rKB != "" )
  291. Response.Write("<p>Yes</p>")
  292. else
  293. Response.Write("<p>None</p>" )
  294. %>
  295. </td>
  296. </tr>
  297. <tr>
  298. <td>
  299. <!--
  300. <OBJECT CLASSID="clsid:BD96C556-65A3-11D0-983A-00C04FC29E33"
  301. HEIGHT=0 WIDTH=0 ID="rdsDeliveryTypes"
  302. OnDataSetComplete="CreateDeliveryTypesDropDown()">
  303. <PARAM NAME="URL" VALUE="" >
  304. </OBJECT>
  305. -->
  306. </td>
  307. </tr>
  308. <tr>
  309. <td>
  310. <%
  311. if ( rSolutionID != "undefined" && rSolutionID != "0" && !isNaN( rSolutionID ) )
  312. {
  313. %>
  314. <input type='Button' class='clsButton' value='Update Solution' onclick='fnCreateSolution()'>
  315. <% } else { %>
  316. <input type='Button' class='clsButton' value='Create Solution' onclick='fnCreateSolution()' id='Button'1 name='Button'1>
  317. <% } %>
  318. </td>
  319. </tr>
  320. </table>
  321. </div>
  322. </td>
  323. </tr>
  324. </table>
  325. </td>
  326. </tr>
  327. </table>
  328. </td>
  329. </table>
  330. </div>
  331. <div>
  332. <table ID='max' BORDER='0' cellpadding='0' cellspacing='0' height='100%'>
  333. <tr valign='top'>
  334. <td class='flyoutMenu2' HEIGHT='100%'>
  335. <table BORDER='0' height='100%' cellpadding='0' cellspacing='0' width='10px'>
  336. <tr valign='top'>
  337. <td height='100%'>
  338. <table width='100%' cellpadding='0' cellspacing='0' border='0'>
  339. <tr>
  340. <td class='sys-toppane-header'>
  341. <img src='include/images/offsite.gif' OnClick='fnOpenNav()'>
  342. </td>
  343. <td class='sys-toppane-header'>
  344. <p class='Flyouttext'>&nbsp</p>
  345. </td>
  346. </tr>
  347. </table>
  348. <table width='100%' cellpadding='0' cellspacing='0' border='0' height='100%' VALIGN='top'>
  349. <tr>
  350. <td height='100%' class='flyoutMenu' valign='top'>
  351. <table width='100%' cellpadding='0' cellspacing='0' border='0' >
  352. <tr>
  353. <td class='flyoutLink'>
  354. </td>
  355. </tr>
  356. </table>
  357. </td>
  358. </tr>
  359. </table>
  360. </td>
  361. </tr>
  362. </table>
  363. </td>
  364. </tr>
  365. </table>
  366. </div>
  367. </form>
  368. <script language='javascript' type='text/javascript'>
  369. fnUpdate()
  370. fnSaveState()
  371. fnSaveOptions()
  372. function fnSaveOptions()
  373. {
  374. if( document.all.openSolutionOnChange.checked == true )
  375. document.cookie = "OpenSolution=Checked;expires=Fri, 31 Dec 2005 23:59:59 GMT;"
  376. else
  377. document.cookie = "OpenSolution=NotCheckedHa;expires=Fri, 31 Dec 2005 23:59:59 GMT;"
  378. if( document.all.editSolutionOnChange.checked == true )
  379. document.cookie = "EditSolution=Checked;expires=Fri, 31 Dec 2005 23:59:59 GMT;"
  380. else
  381. document.cookie = "EditSolution=NotCheckedHa;expires=Fri, 31 Dec 2005 23:59:59 GMT;"
  382. }
  383. function CheckSolutionType()
  384. {
  385. document.SolutionForm.rdsDeliveryTypes.URL = "Global_GetRS.asp?SP=SEP_GetDeliveryTypeBySolutionType " + document.SolutionForm.SolutionType.value + "&DBConn=SOLUTIONS3"
  386. document.SolutionForm.rdsDeliveryTypes.Refresh()
  387. //if ( document.SolutionForm.SolutionType.value=="1" || document.SolutionForm.SolutionType.value=="2" )
  388. //{
  389. //document.all.ContactFont.style.color="red"
  390. //document.all.ModuleFont.style.color="red"
  391. //}
  392. //else
  393. //{
  394. //document.all.ContactFont.style.color="black"
  395. //document.all.ModuleFont.style.color="black"
  396. //}
  397. }
  398. function CreateDeliveryTypesDropDown()
  399. {
  400. var tempOption
  401. ClearDropDown( SolutionForm.DeliveryType )
  402. var records = SolutionForm.rdsDeliveryTypes.Recordset
  403. while ( !SolutionForm.rdsDeliveryTypes.Recordset.EOF )
  404. {
  405. tempOption = document.createElement( "OPTION" )
  406. SolutionForm.DeliveryType.options.add( tempOption )
  407. tempOption.value = records("DeliveryTypeID")
  408. tempOption.innerText = records("DeliveryType")
  409. SolutionForm.rdsDeliveryTypes.Recordset.moveNext()
  410. }
  411. }
  412. function ClearDropDown ( Name )
  413. {
  414. for ( i = 0 ; i < Name.options.length ; i++ )
  415. {
  416. Name.options.remove(0)
  417. }
  418. Name.options.length = 0
  419. }
  420. function fnViewSolution()
  421. {
  422. if( document.all.openSolutionOnChange.checked == true )
  423. {
  424. window.parent.frames("sepBody").window.location = "sep_defaultbody.asp?SolutionID=" + document.all.SolutionID.value
  425. try
  426. {
  427. window.parent.frames("sepTopBody").fnUpdate()
  428. }
  429. catch( err )
  430. {
  431. }
  432. }
  433. else
  434. {
  435. try
  436. {
  437. window.parent.frames("sepTopBody").fnUpdate()
  438. }
  439. catch( err )
  440. {
  441. }
  442. }
  443. if( document.all.editSolutionOnChange.checked == true )
  444. window.location="http://<%=g_ServerName%>/SEP_LeftNav.asp?Val=" + document.all.SolutionID.value + "&State=1"
  445. //window.parent.frames('sepBody').window.location = 'sep_defaultbody.asp?SolutionID=' + document.all.SolutionID.value
  446. }
  447. function fnUpdate()
  448. {
  449. try
  450. {
  451. window.parent.frames("sepBody").fnUpdate()
  452. }
  453. catch( err )
  454. {
  455. //don't really want to do anything, if the page supports the method, then all is well.
  456. }
  457. try
  458. {
  459. window.parent.frames("sepTopBody").fnUpdate()
  460. }
  461. catch( err )
  462. {
  463. }
  464. }
  465. function fnUpdateThis()
  466. {
  467. try
  468. {
  469. window.location.reload();
  470. }
  471. catch( err )
  472. {
  473. //don't really want to do anything, if the page supports the method, then all is well.
  474. }
  475. }
  476. function fnSaveState()
  477. {
  478. //ert("saving state" )
  479. document.cookie="rTemplate=" + document.all.TemplateID.value
  480. // document.cookie="rLang=" + document.all.
  481. document.cookie="rContact=" + document.all.ContactID.value
  482. document.cookie="rProduct=" + document.all.ProductID.value
  483. document.cookie="rSolutionType=" + document.all.SolutionType.value
  484. document.cookie="rDeliveryType=" + document.all.DeliveryType.value
  485. document.cookie="rSP=" + document.all.SP.value
  486. document.cookie="rModule=" + document.all.ModuleID.value
  487. document.cookie="rKB=" + escape( document.all.kbArticles.value )
  488. document.cookie="rSolutionID=" + document.all.rSolutionID.value
  489. }
  490. function fnSaveMode()
  491. {
  492. document.cookie="rMode=" + document.all.Mode.value
  493. //document.cookie="rMode="
  494. }
  495. function fnClearState()
  496. {
  497. document.cookie="rTemplate="
  498. // document.cookie="rLang=" + document.all.
  499. document.cookie="rContact="
  500. document.cookie="rProduct="
  501. document.cookie="rSolutionType="
  502. document.cookie="rDeliveryType="
  503. document.cookie="rSP="
  504. document.cookie="rModule="
  505. document.cookie="rKB="
  506. document.cookie="rSolutionID="
  507. }
  508. function fnPreviewSolution()
  509. {
  510. //window.parent.frames("sepBody").window.location = "http://<%=g_ServerName%>/SEP_DefaultBody.asp?TemplateID=" + document.all.TemplateID.value + "&ContactID=" + document.all.ContactID.value + "&ProductID=" + document.all.ProductID.value + "&ModuleID=" + document.all.ModuleID.value + "Language=en&KBArticles="
  511. //window.location = "http://<%=g_ServerName%>/SEP_DefaultBody.asp?TemplateID=" + document.all.TemplateID.value + "ContactID=" + document.all.ContactID.value + "ProductID=" + document.all.ProductID.value + "ModuleID=" + document.all.ModuleID.value
  512. return "http://<%=g_ServerName%>/SEP_DefaultBody.asp?TemplateID=" + document.all.TemplateID.value + "&ContactID=" + document.all.ContactID.value + "&ProductID=" + document.all.ProductID.value + "&ModuleID=" + document.all.ModuleID.value + "&Language=" + document.all.Lang.value + "&KBArticles=" + document.all.kbArticles.value + "&SolutionType=" + document.all.SolutionType.value + "&DeliveryType=" + document.all.DeliveryType.value
  513. }
  514. function fnCreateSolution()
  515. {
  516. window.parent.frames("sepBody").window.location = "http://<%=g_ServerName%>/SEP_CreateSolution.asp?TemplateID=" + document.all.TemplateID.value + "&ContactID=" + document.all.ContactID.value + "&ProductID=" + document.all.ProductID.value + "&ModuleID=" + document.all.ModuleID.value + "&Language=" + document.all.Lang.value + "&KBArticles=" + document.all.kbArticles.value + "&SolutionID=" + document.all.rSolutionID.value + "&SolutionType=" + document.all.SolutionType.value + "&DeliveryType=" + document.all.DeliveryType.value + "&Mode=" + document.all.Mode.value
  517. }
  518. var intervalObject
  519. var LeftNavBaseSize = 376
  520. var LeftNavCurrentSize = 376
  521. var LeftNavMin = 78
  522. var LeftNavSpeed= 30
  523. function fnCloseNav()
  524. {
  525. intervalObject = window.setInterval( "fnDoCloseOfLeftNav()", 1 )
  526. }
  527. function fnOpenNav()
  528. {
  529. intervalObject = window.setInterval( "fnDoOpenOfLeftNav()", 1 )
  530. }
  531. function fnDoCloseOfLeftNav()
  532. {
  533. if ( (LeftNavCurrentSize - LeftNavSpeed ) > LeftNavMin )
  534. {
  535. LeftNavCurrentSize -= LeftNavSpeed
  536. window.parent.sepBodyFrame.cols = LeftNavCurrentSize + ", *"
  537. window.parent.frames("sepLeftNav").scrolling = "no"
  538. }
  539. else
  540. {
  541. LeftNavCurrentSize = LeftNavMin
  542. window.parent.sepBodyFrame.cols = LeftNavCurrentSize + ", *"
  543. //alert("alert done closing" )
  544. window.clearInterval( intervalObject )
  545. document.all.divMain.style.display='none'
  546. document.all.max.style.display='block'
  547. }
  548. }
  549. function fnDoOpenOfLeftNav()
  550. {
  551. if ( (LeftNavCurrentSize + LeftNavSpeed ) < LeftNavBaseSize )
  552. {
  553. LeftNavCurrentSize += LeftNavSpeed
  554. window.parent.sepBodyFrame.cols = LeftNavCurrentSize + ", *"
  555. window.parent.frames("sepLeftNav").scrolling = "no"
  556. }
  557. else
  558. {
  559. LeftNavCurrentSize = LeftNavBaseSize
  560. window.parent.sepBodyFrame.cols = LeftNavCurrentSize + ", *"
  561. //alert("Done open" )
  562. window.clearInterval( intervalObject )
  563. document.all.divMain.style.display='block'
  564. document.all.max.style.display='none'
  565. }
  566. }
  567. function fnExecuteCode( codeToRun )
  568. {
  569. }
  570. </script>
  571. </body>