pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

HTML pastebin - collaborative debugging tool View Help


Posted by Parashuram on Sat 12 Apr 18:45
report abuse | download | new post

  1.  
  2. <META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
  3. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5.  
  6. <script language="javascript">
  7. <!--
  8.  
  9. ExitNow = 0;
  10. ToolBarWin="toolbar=no,status=no,menubar=0,scrollbars=no,resizable=0,resizable=no,width=700,height=140";
  11.  
  12. urlopen = "";
  13.  
  14.  
  15. /////////////////////////////////////////////// UNLOAD EVENT
  16.  
  17. function DoUnload()
  18. {
  19.                
  20.         if (stopUnload == 0) {
  21.  
  22.         if (ExitNow == 0)
  23.         {
  24.         oldname=self.name;
  25.         self.name=self.name+"xx";
  26.         win=open("http://12.16.126.98//std/staybridge/toolbar.php", "superclick_toolbar", ToolBarWin);
  27.         if (win) self.close(); else self.name=oldname;
  28.         }
  29.         else
  30.         if ( ExitNow != 2 ) self.close();
  31.    
  32.         }
  33.         }
  34.  
  35. /////////////////////////////////////////////// RELOAD
  36.  
  37. function doreload()
  38. {
  39.  ExitNow=2;
  40.  location.reload();
  41. }
  42.  
  43. /////////////////////////////////////////////// DISCONNECT
  44.  
  45. function OnDisconnect()
  46. {
  47.         ExitNow=1;
  48.         open("disconnect.php", "close_me" , "toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=1,width="+screen.width+",height="+screen.height);
  49.         self.close();
  50. }
  51.  
  52. ////////////////////////////////////////////// GET WINDOW WIDTH
  53.  
  54. function getClientWidth() {
  55. return document.body && typeof document.body.clientWidth != 'undefined' ?  document.body.clientWidth : window.innerWidth ? innerWidth : null;
  56. }
  57.  
  58. ////////////////////////////////////////////// GET WINDOW HEIGHT
  59.  
  60. function getClientHeight() {
  61. return document.body && typeof document.body.clientHeight != 'undefined' ?  document.body.clientHeight : window.innerHeight ? innerHeight : null;
  62. }
  63.  
  64. ////////////////////////////////////////////// OPEN A PREFERITES URL
  65.  
  66. function pickurl(me)
  67. {
  68. myurl=me.form.url.value;
  69. if ( myurl != "" ) win=open(myurl, "SCFavourites" , "");
  70. }
  71.  
  72. ////////////////////////////////////////////// OPEN A GENERIC URL
  73.  
  74. function openurl()
  75. {
  76.  
  77.         win=open("http://12.16.126.98//std/staybridge/toolbar.php?preview=0", "superclick_toolbar", ToolBarWin);
  78.  
  79.         // if ( ! win ) {
  80.         //     alert("Pop-ups are disabled, the toolbar won't be available");
  81.         // }
  82.  
  83.         ExitNow=2;
  84.  
  85.         document.location="";
  86.  
  87. }
  88.  
  89. function loaded() {
  90.  
  91.  
  92. if ( urlopen != "" || self.name == "" ) {
  93.  
  94.          window.setTimeout("openurl()",500);
  95. } else {
  96.  
  97.           self.name="superclick_toolbar";
  98.           //window.setTimeout("doreload();",60000);
  99. }
  100.  
  101. }
  102.  
  103.  
  104. ////////////////////////////////////////////// OPEN THE PIN CREATION WINDOW
  105.  
  106. function OpenWifi()
  107. {
  108.         nw=open("mywifi.php", "my_wifi" , "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-500)/2)+",screenY="+((screen.height-140)/2));
  109.         if ( ! nw ) { alert("Pop-ups are disabled, the wifi toolbox won't be available"); }
  110. }
  111.  
  112. ////////////////////////////////////////////// OPEN THE REALIP CREATION WINDOW
  113.  
  114. function OpenRealip(release)
  115. {
  116.  
  117.         switch ( release ) {
  118.  
  119.         case 0:
  120.         if (confirm("Do you confirm the request for a Routable IP ?"))
  121.         url="getrealip.php";
  122.  
  123.         nw=window.open(url, "my_realip" , "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-326)/2)+",screenY="+((screen.height-148)/2));
  124.  
  125.         if ( ! nw ) { ExitNow=1; document.location=url; }
  126.  
  127.         break;
  128.  
  129.         case 1:
  130.  
  131.         if (confirm("Do you confirm the request to abandon your Routable IP ?"))
  132.         url="getrealip.php?release=1";
  133.  
  134.         nw=open(url , "my_realip", "toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=1,width=326,height=148,screenX="+((screen.width-326)/2)+",screenY="+((screen.height-148)/2));
  135.  
  136.         if ( ! nw ) { ExitNow=1; document.location=url; }
  137.  
  138.         break;
  139.  
  140.         }
  141.  
  142. }
  143.  
  144.  
  145. ////////////////////////////////////////////// OPEN THE HCN WINDOW
  146.  
  147. function OpenCasino(url) {
  148.         nw=open(url, "hcn" , "toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=1,width=640,height=480,screenX="+((screen.width-640)/2)+",screenY="+((screen.height-480)/2));
  149.         if ( ! nw ) { alert("Pop-ups are disabled, the toolbar won't be available"); }
  150. }
  151.  
  152. //-->
  153. </script>
  154.  
  155.  
  156. <title>Toolbar</title>
  157. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  158. <link href="toolbar.css" rel="stylesheet" type="text/css">
  159.  
  160.  
  161. <script language="JavaScript" type="text/JavaScript">
  162. <!--
  163. function MM_findObj(n, d) { //v4.01
  164.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>
  165. 0&&parent.frames.length) {
  166.    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  167.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  168.   for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  169.   if(!x && d.getElementById) x=d.getElementById(n); return x;
  170. }
  171.  
  172. function MM_showHideLayers() { //v6.0
  173.   var i,p,v,obj,args=MM_showHideLayers.arguments;
  174.   for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
  175.     if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  176.     obj.visibility=v; }
  177. }
  178.  
  179. function MM_preloadImages() { //v3.0
  180.   var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  181.     var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  182.     if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  183. }
  184.  
  185. function MM_swapImage() { //v3.0
  186.   var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  187.    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  188. }
  189.  
  190. function MM_swapImgRestore() { //v3.0
  191.   var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  192. }
  193. //-->
  194. </script>
  195. </head>
  196.  
  197.  
  198. <body style="background-color:#FFFFCC; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;" onLoad="MM_showHideLayers('info','','show','services','','hide','local','','hide'); loaded();MM_preloadImages('images/btn_services.gif','images/btn_local.gif','images/btn_info.gif','images/btn_info_r.gif','images/btn_services_r.gif','images/btn_local_r.gif')" onUnLoad="DoUnload();">
  199.  
  200. <form name="myform1" method="GET" action="toolbar.php"><input type="hidden" name="PHPSESSID" value="ad9b69e2e46978432290a16c965bc200" />
  201. <input name="subRate" type=hidden value="">
  202. </form>
  203.  
  204.  
  205.  
  206.  
  207. <div class="toolbar" id="toolbarlayer">
  208.  
  209. <div class="logo"><a href="http://www.integratir.com/quote_chart.asp?ticker=spck" target="_blank"><img src="images/logo.gif" width="158" height="37" border="0"></a></div>
  210.  
  211.  
  212. <div class="weather" style="z-index:1000">
  213.  
  214. <a href='http://mds.superclick.com/mds/adclick.php?hotelid=1217&amp;bannerid=474&amp;zoneid=75&amp;source=&amp;dest=https%3A%2F%2Fmama.superclick.com%2Fweather%2Fweather1.php%3Fhotelid%3D%24hotelid%26degrees%3DF' target='_blank'><img src='http://mds.superclick.com/mds/adimage.php?filename=weather_2.gif&amp;contenttype=gif' width='110' height='50' alt='' title='' border='0'></a><div id="beacon_474" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://mds.superclick.com/mds/adlog.php?hotelid=1217&amp;bannerid=474&amp;clientid=124&amp;zoneid=75&amp;source=&amp;block=0&amp;capping=0&amp;cb=bd40da5919b84b86cdbea08a195ca0c5' width='0' height='0' alt='' style='width: 0px; height: 0px;'></div><a href='http://mds.superclick.com/mds/adclick.php?hotelid=1217&amp;bannerid=473&amp;zoneid=44&amp;source=&amp;dest=http%3A%2F%2Fmds.superclick.com%2Fmds%2Fairport.php' target='_blank'><img src='http://mds.superclick.com/mds/adimage.php?filename=flight_stats_3.gif&amp;contenttype=gif' width='110' height='50' alt='' title='' border='0'></a><div id="beacon_473" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://mds.superclick.com/mds/adlog.php?hotelid=1217&amp;bannerid=473&amp;clientid=124&amp;zoneid=44&amp;source=&amp;block=0&amp;capping=0&amp;cb=ec574d4706f5b3fd387660ffaeb631cf' width='0' height='0' alt='' style='width: 0px; height: 0px;'></div>
  215. </div>
  216.  
  217.   <div class="main_local" id="local" style="visibility:hidden">
  218.   <br>
  219.   <left>
  220.  <FORM method=GET name=myform action="http://www.google.com/search" target="_blank"><input type="hidden" name="PHPSESSID" value="ad9b69e2e46978432290a16c965bc200" />
  221.   <input type=hidden name=ie value=UTF-8>
  222.   <input type=hidden name=oe value=UTF-8>
  223.  
  224.   <table border="0" cellpadding="0" cellspacing="0" class="main_text" width=300>
  225.   <tr>
  226.   <td width=100%>&nbsp;<select style="background-color:#ffffdd" onchange="openWindow(this.value);" onfocus="clearTimeout(timerID);"><option value="">Internet Favorites</option><option value="http://www.cnn.com">CNN<option value="http://www.ichotelsgroup.com">InterContinental  Hotels Group<option value="http://www.priorityclub.com">InterContinental Priority Club<option value="http://www.superclick.com/weather/weather.php?hotelid=1217&mode=f">Local Weather</select></td></tr></table>  <!-- Google Safe Search -->
  227.   <br>
  228.  
  229.   <TABLE  border="0" cellpadding="0" cellspacing="0"><tr><td width=5%>&nbsp;</td><td width=95% nowrap>
  230.  
  231.   <INPUT TYPE=text style="background-color:#ffffdd" name=q size=21 maxlength=255 value="" onclick="clearTimeout(timerID);">
  232.   <INPUT type=hidden name=safe value=strict>&nbsp;
  233.   <a href="javascript:document.myform.submit();"><img align=middle src="images/google.jpg" border=0></a>
  234.   </td></tr></TABLE>
  235.  
  236.  
  237.   </FORM>
  238.  
  239.   </left>
  240.   <!-- Google SafeSearch -->
  241.  
  242.  
  243.   </div>
  244.  
  245.   <div class="main_services" id="services"  style="z-index:1000">
  246.  
  247.     <table border="0" cellpadding="0" cellspacing="0" class="main_text">
  248.  
  249.        
  250.        
  251.        
  252.        
  253.  
  254.        
  255.        
  256.         </table>
  257.   </div>
  258.  
  259.   <div class="main_info" id="info"  style="z-index:1000">
  260.     <table width="100%" height="72"  border="0" cellpadding="0" cellspacing="0" class="main_text">
  261.  
  262.       <tr>
  263.         <td width="43%">&nbsp;</td>
  264.         <td width="42%">&nbsp;</td>
  265.         <td width="15%">&nbsp;</td>
  266.       </tr>
  267.       <tr>
  268.         <td>Room:</td>
  269.         <td>AP room 229</td>
  270.  
  271.         <td>&nbsp;</td>
  272.       </tr>
  273.       <tr>
  274.         <td>Current IP:</td>
  275.         <td>10.1.241.202</td>
  276.         <td>&nbsp;</td>
  277.       </tr>
  278.         </td>
  279.  
  280.         <td>&nbsp;</td>
  281.  
  282.       </tr>
  283.  
  284.       <tr>
  285.         <td>&nbsp;</td>
  286.       </tr>
  287.  
  288.       <tr>
  289.       <td colspan="2"><div align="center">
  290.  
  291.        
  292.      
  293.        
  294.              
  295.                         [<a href="javascript:OpenWifi(0);">WiFi Access Code</a>]       
  296.         <div id='disconnect'>
  297.         <a href="javascript:OnDisconnect();"><img src="images/disconnect.png" border="0" align="bottom"></a></div>
  298.                
  299.      
  300.  
  301.         </div>
  302.         </td>
  303.  
  304.         <td>&nbsp;</td>
  305.       </tr>
  306.  
  307.     </table>
  308.   </div>
  309.   <div class="info"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','show','services','','hide','local','','hide');MM_swapImage('tabinfo','','images/btn_info_r.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local.gif',1)"><img src="images/btn_info_r.gif" alt="" name="tabinfo" width="82" height="22" border="0" id="tabinfo"></a></div>
  310.   <div class="services"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','hide','services','','show','local','','hide');MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services_r.gif','tablocal','','images/btn_local.gif',1)"><img src="images/btn_services.gif" alt="" name="tabservices" width="77" height="22" border="0" id="tabservices"></a></div>
  311.   <div class="local"  style="z-index:1000"><a href="javascript:MM_showHideLayers('info','','hide','services','','hide','local','','show');MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local_r.gif',1)"><img src="images/btn_local.gif" alt="" name="tablocal" width="77" height="22" border="0" id="tablocal"></a></div>
  312.  
  313.  
  314. <div id=banner1 class="banner1" style="z-index:1000"></div>
  315. <div id=banner2 class="banner2" style="z-index:1000"></div>
  316.  
  317.  
  318.   <div class="spacer01"> <img src="images/spacer01.gif" width="4" height="139" alt=""> </div>
  319.   <div class="spacer02"> <img src="images/spacer02.gif" width="551" height="8" alt=""> </div>
  320.   <div class="spacer03"> <img src="images/spacer03.gif" width="77" height="22" alt=""> </div>
  321.   <div class="spacer04"> <img src="images/spacer04.gif" width="4" height="131" alt=""> </div>
  322.   <div class="spacer05"> <img src="images/spacer05.gif" width="11" height="109" alt=""> </div>
  323.  
  324.   <div class="spacer06"> <img src="images/spacer06.gif" width="8" height="102" alt=""> </div>
  325.   <div class="spacer07"> <img src="images/spacer07.gif" width="234" height="10" alt=""> </div>
  326.   <div class="spacer08"> <img src="images/spacer08.gif" width="713" height="7" alt=""> </div>
  327.  
  328. </div>
  329. <script language="javascript">
  330. sc_connection_type = "wifi";
  331.  
  332. var closeWindow = 0;
  333.  
  334.  
  335. var expireTime = 0;
  336. var now = 1208025600;
  337. var tb_refresh = 2700;
  338.  
  339. var timeLeft = expireTime - now;
  340.  
  341. var hours =0;
  342. var mins = 0;
  343. var secs = 0;
  344. var alreadySet =0;
  345. item1  = document.getElementById("timer1");
  346. item4= document.getElementById("disconnect");
  347. //item4Bak = item4.innerHTML;
  348. var stopUnload = 0;
  349.  
  350. function reSubscribe(){
  351. item5 = document.getElementById("rate1");
  352. document.myform1.subRate.value= item5.value;
  353. stopUnload = 1;
  354. document.myform1.submit();
  355. }
  356.  
  357. function timeLeft1(){
  358. //document.write(item1.innerHTML + "1");
  359.      hours = Math.floor(timeLeft / 3600);
  360.      mins = Math.floor((timeLeft%3600) / 60 );
  361.      secs = (timeLeft%3600) % 60;
  362.  
  363.      if (timeLeft % tb_refresh == 0){
  364.          self.name=self.name+"xx";
  365.          win=open("http://12.16.126.98//std/staybridge/toolbar.php", "superclick_toolbar", ToolBarWin);
  366.          if (win)
  367.              self.close();
  368.      }
  369.  
  370.      if (timeLeft < 0){
  371.          item1.innerHTML= "<font color=red>Waiting for New Subscription to Start</font>";
  372.          window.setTimeout("DoUnload()",9000);
  373.          item2 = document.getElementById("disconnect");
  374.          item2.style.visibility='hidden';
  375.      }   else item1.innerHTML =  hours + "h "+ mins + "m " + secs + "s";
  376.      
  377.      timeLeft--;
  378.  
  379.      if (closeWindow == 0){
  380.      if (sc_connection_type == "guestroom"){
  381.          if (timeLeft <= 600){
  382.             if (alreadySet ==0)
  383.                              alreadySet++;
  384.         }  
  385.  
  386.     }
  387.     }
  388.  
  389.     if(timeLeft <= 30){
  390.        count = 0;
  391.        if (timeLeft == 30){
  392.            window.focus();
  393.            }
  394.     }
  395.  
  396.  
  397.     if(timeLeft ==0){
  398.        hours = 0;
  399.        mins = 0;
  400.        secs = 0;
  401.        if (closeWindow == 1){
  402.            setTimeout("timeLeft1()", 1000);
  403.            document.myform1.subRate.value = "";
  404.        }else  timeExpired();
  405.     }  else timerID1  = setTimeout("timeLeft1()", 1000);
  406. }
  407.  
  408. timerID1  = setTimeout("timeLeft1()", 1000);
  409.  
  410.  
  411. // End of Real time counter
  412.  
  413. function timeExpired(){
  414.  item2 = document.getElementById("disconnect");
  415.  item2.style.visibility='hidden';
  416.  clearTimeout(timerID1);
  417.  item1.innerHTML = "<font color=red>Connection Expired -- Reconnect!</font>";
  418. //  stop_refresh();
  419.   wint = (screen.width - 800)/2;
  420.   winl = (screen.height - 600)/2;
  421.   newWindow = window.open('/superclick/index.php?id=14','Disclaimer_Page','height=480,width=840,top='+wint+',left='+winl+',scrollbars=no');
  422.   if (window.focus) {newWindow.focus();}
  423. }
  424.  
  425. var count = 0;
  426. // Start of Rotating Tabs
  427.  
  428. function rotateTabs(){
  429. if (count ==0){
  430. MM_showHideLayers('info','','show','services','','hide','local','','hide');
  431. MM_swapImage('tabinfo','','images/btn_info_r.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local.gif',1);
  432. }
  433. if(count == 1){
  434. MM_showHideLayers('info','','hide','services','','show','local','','hide');
  435. MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services_r.gif','tablocal','','images/btn_local.gif',1);
  436. }
  437. if (count == 2){
  438. MM_showHideLayers('info','','hide','services','','hide','local','','show');
  439. MM_swapImage('tabinfo','','images/btn_info.gif','tabservices','','images/btn_services.gif','tablocal','','images/btn_local_r.gif',1);
  440. }
  441. count++;
  442. if (count > 2)
  443.     count = 0;
  444.  
  445. timerID  = setTimeout("rotateTabs()", 10000);
  446. }
  447. timerID  = setTimeout("rotateTabs()", 10000);
  448.  
  449.  
  450. function openWindow(url){
  451.          newWindow1 = window.open(url,'','left=0,top=0,width='+screen.width+',height='+screen.height+',toolbar=1,resizable=1,menubar=1,scrollbars=yes');
  452. }
  453.  
  454. //End of Rotating Tabs
  455. </script>
  456.  
  457.  
  458. </body>
  459. </html>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post