Advertisement
Guest User

Parashuram

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