home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 July / PCpro_2004_07.ISO / docs / hutil / hutil_files / main.js < prev    next >
Encoding:
Text File  |  2003-12-20  |  4.0 KB  |  78 lines

  1. var page = 
  2. ["http://www.samsung.com/index.htm","/AboutSAMSUNG/ValuesPhilosophy/index.htm","/AboutSAMSUNG/ValuesPhilosophy/DigitalVision/index.htm","/AboutSAMSUNG/CEO/Chairman/CEOMessage/index.htm","/AboutSAMSUNG/CEO/Chairman/PersonalProfile/index.htm","/AboutSAMSUNG/CEO/Chairman/InthePress/index.htm","/AboutSAMSUNG/CEO/ViceChairman/PersonalProfile/index.htm","/Products/Semiconductor/","/Sitemap/Sitemap.htm","/ContactUs/ContactUs.htm","/AboutSAMSUNG/InvestorRelations/","/AboutSAMSUNG/Careers/","http://www.samsung.com/BusinessPartners/"] //┴ª┐▄ ╡╔ ╞Σ└╠┴÷
  3.  
  4. var pageException = ["/Support/ProductSupport/download/"] // </form>┼╫▒╫╕ª ├Γ╖┬╟╥ ┤┘┐ε╖╬╡σ░ⁿ╖├ ┐╣┐▄ ╞Σ└╠┴÷
  5.  
  6. var url = location.href;
  7.     url = url.toLowerCase();
  8. var sw = true;
  9. if (url == "http://www.samsung.com/") {
  10.     url = url + "index.htm";
  11. }
  12.  
  13. for (i=0;i<page.length;i++) {
  14.     if (url.indexOf(page[i].toLowerCase()) != -1) {
  15.         sw = false;
  16.         break;
  17.     }
  18. }
  19.  
  20. var writeFlg = false;
  21. for (j=0;j<pageException.length;j++) {
  22.     if (url.indexOf(pageException[j].toLowerCase()) != -1) {
  23.         writeFlg = true;
  24.         break;
  25.     }
  26. }
  27.  
  28.  
  29. if (sw) {
  30.     if (writeFlg) document.write ("</form>");
  31.     document.write ("<table border='0' cellpadding='0' cellspacing='0'>");
  32.     document.write ("    <tr><td height='50'></td></tr>");
  33.     document.write ("    <tr><td style='padding-left:160'>");
  34.     document.write ("        <table width='609' border='0' cellpadding='0' cellspacing='0' style='padding:10'>");
  35.     document.write ("            <tr><td height='2' bgcolor='#A3A3A3'></td></tr>");
  36.     document.write ("            <tr><td bgcolor='#F8F8F8'>");
  37.     document.write ("                <table border='0' cellpadding='0' cellspacing='0'>");
  38.     document.write ("                    <tr><td width='100%'>");
  39.     document.write ("                        <table border='0' cellpadding='0' cellspacing='0'>");
  40.     document.write ("                        <form name='varform' method='post' action='/satisfaction/question_01.asp'>");
  41.     document.write ("                            <tr><td><img src='/satisfaction/images/arrow_o.gif' width='3' height='5' align='absmiddle' style='font-family: Arial,Helvetica, geneva,sans-serif;font-size:11px;color:#585858;'> <b>The information was useful to me.</b></td></tr>");
  42.     document.write ("                            <tr><td height='5'></td></tr>");
  43.     document.write ("                            <tr><td style='padding-left:7'>");
  44.     document.write ("                                    <b style='color:#007CD4;font-family: Arial,Helvetica, geneva,sans-serif;font-size:11px;'>Agree</b>");
  45.     document.write ("                                    <input type='radio' name='Q1_1' value='1' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  46.     document.write ("                                    <input type='radio' name='Q1_1' value='2' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  47.     document.write ("                                    <input type='radio' name='Q1_1' value='3' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  48.     document.write ("                                    <input type='radio' name='Q1_1' value='4' style='margin:0 0 -3 10;background-color:#F8F8F8'>");
  49.     document.write ("                                    <input type='radio' name='Q1_1' value='5' style='margin:0 10 -3 10;background-color:#F8F8F8'>");
  50.     document.write ("                                    <b style='color:#007CD4;font-family: Arial,Helvetica, geneva,sans-serif;font-size:11px;'>Disagree</b>");
  51.     document.write ("                                </td></tr>");
  52.     document.write ("                            <input type='hidden' name='url'>");
  53.     document.write ("                        </form>");
  54.     document.write ("                        </table>");
  55.     document.write ("                        </td>");
  56.     document.write ("                        <td valign='bottom'><a href='javascript:check()'><img src='/satisfaction/images/btn_submit.gif' width='57' height='14' border='0'></a></td>");
  57.     document.write ("                    </tr>");
  58.     document.write ("                </table>");
  59.     document.write ("                </td></tr>");
  60.     document.write ("            <tr><td height='2' bgcolor='#E8E8E8'></td></tr>");
  61.     document.write ("        </table>");
  62.     document.write ("        </td></tr>");
  63.     document.write ("</table>");
  64.  
  65.     url = location.pathname;
  66.     document.varform.url.value=url;
  67. }
  68.  
  69. function check() {
  70.     var obj = document.varform;
  71.     sw = check_radio(obj);
  72.     if (sw) {
  73.         win = window.open("about:blank","win_01","width=377,height=200");
  74.         obj.target = "win_01";
  75.         obj.submit();
  76.     }
  77. }
  78.