<html>

<head>
<title>Welcome to {$site_name}</title>
<!--{literal}-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link REL="SHORTCUT ICON" href="MYSOFT.JPG">
<link href="style.css" rel="stylesheet" type="text/css">
<!--{/literal}-->

</head>
<body>
{literal}
<script language=javascript>
function VarifyFileSize()
{
// document.getElementById('prog').innerHTML="Please wait while verifying file size...<br><img src='images/sending_progress.gif'></img>";
 //document.getElementById('srq').disabled=true;
 //document.getElementById('prog').innerHTML=;
}

function Wait()
{
 document.getElementById('prog').innerHTML="<p align=left>Please Wait...<br><img src={/literal}{$imgurl}{literal}/cline.gif height=3 width=200></img></p>"
}
function ValidateSubmit()
{
 var s=document.getElementById('remail').value;
 if(s==""||s.indexOf('@')<0||s.indexOf('.')<0||s.indexOf('@')>s.indexOf('.')) 
  {
   alert("Invalid E-mail Address");
   document.getElementById('remail').focus();
   return false;
  } 
 if(document.getElementById('eula').checked==false) 
  {
    alert("You cann't upload file without accepting the term of service.");
    return false;
  }
 Wait(); 
 return true; 
}
</script>

<script type="text/javascript" src="cpaint/cpaint2.inc.compressed.js"></script>
<script type="text/javascript">
        var cp = new cpaint();
        cp.set_transfer_mode('get');
  cp.set_response_type('text');
  cp.set_debug(true);
  
        function addNumbers() {
                //var fileToUse = document.getElementById('version').value;
                alert("OK");
                cp.call("calculator.php", 'add', response, document.getElementById('file').value);
        }        
        
        function response(result) {
                //document.getElementById('result').value = result.getElementsByTagName('ajaxResponse').item(0).firstChild.data;
                alert(response);
        }

</script>

{/literal}
<p align=center>
<table border="0" width="600" height="129" cellspacing="0" cellpadding="0">
  <tr>
    <td width="600" height="250" valign="top">
      <table border="0" width="100%" cellspacing="0" cellpadding="0" height="314">
        <tr>
          <td width="100%" height="29" colspan="2">
<!---------------------------------------------------------------->          
{include file="header.tpl"}
<!---------------------------------------------------------------->
          </td>
        </tr>
        <tr>
          <td width="100%" height="29" colspan="2">
<!--------------------------------------------------------------------------->          
          {if $premium eq "yes"}
                <p align="left">
          <font face="Verdana" size="2" color="#7777D2"><b>Premium Members Area</b></font>
          </p>
          {/if}
<!--------------------------------------------------------------------------->          
          </td>
        </tr>
        <tr>
          <td width="100%" colspan="2" height="49" bgcolor="#F2F2FF">
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
              <tr>
                <td width="80%"> 
               <p align="left">&nbsp;
<!--------------------------------------------------------->
               <div id="prog" name="prog">
               <p align=left>               
              {section name=i loop=$err}
              {$err[i]} 
              {/section}
              </p>
              </div>
<!--------------------------------------------------------->                        
            </p></td>
                <td width="15%">
                {if $premium eq "yes"}
                 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
                  <tr>
                    <td width="179%" align=right>
                    <p>
                    <a class="link" href="upload.php">Upload</a></p></td>
                  </tr>
                  <tr>
                    <td width="179%" align=right>
                    <p>
                    <a class="link" title="Go to my  file manager..." href="welcome_premium.php">
                    File Manager</a></p></td>
                  </tr>
                  <tr>
                    <td width="179%" align=right>
                    <a class="link1" title="Log out" href="logout.php">Logout</a></td>
                  </tr>
                  </table>
                 {/if}
                </td>
              </tr>
            </table>
           
          </td>
        </tr>
        
        
        <tr>
          <td width="51%" height="18"></td>
          <td width="49%" height="18" align=right valign="middle">            
          </td>
        </tr>
        
        
        <tr>
          <td width="100%" colspan="2" height="127" valign="top"><!-- {$server_id}.uploadgalaxy.com -->
           <form name=frm method="POST" action="index.php" onsubmit="return ValidateSubmit();" enctype="multipart/form-data">
            <table border="0" width="100%" cellspacing="0" cellpadding="0" height="202">
              <tr>
                <td width="40%" align="right" height="37">                  
                  <p align="right"><b>
            Select a file to upload<br>
                  </b><font size="1" face="Verdana">(max
            size {$ALW_SIZE/1024} MB)</font></td>
                <td width="4%" height="37">
                </td>
                <td width="56" height="37">
                  <p align="left">
                  <input name="media" type="hidden" id="media" value="ufile">                  
                  <!--<input type="hidden" name="MAX_FILE_SIZE" value="{$ALW_SIZE*1024}">-->                  
                  <input type="file" id="file" name="ufile" size=30 class="txtbx1"></td>
              </tr>
              <tr>
                <td width="40%" align="right" height="36">
                  <p align="right"><b>Recipients E-mail</b> </td>
                <td width="4%" height="36">
                </td>
                <td width="56" height="36">
                  <p align="left">
                <input type="text" name="reml" size="30" id="remail" class="txtbx1"></td>
              </tr>
              <tr>
                <td width="40%" align="right" height="36">
                  <p align="right"><b>Your E-mail</b> (optional)</td>
                <td width="4%" height="36">
                </td>
                <td width="56" height="36">
                  <p align="left">
                  <input type="text" name="yeml" size="30" id="yemail" value="{$smarty.cookies.email}" class="txtbx1"></td>
              </tr>
              <tr>
                <td width="40%" align="right" height="35">
                  <p align="right"><b> Message to Recipient </b>(Optional)</td>
                <td width="4%" height="35">
                </td>
                <td width="56" height="35">
                  <p align="left">
                  <input type="text" name="mdes" size="30" class="txtbx1">
                </td>
              </tr>
              <tr>
                <td width="40%" align="right" height="31">
                  <p align="right">&nbsp;<b>I accept</b> the agreement</p>
                </td>
                <td width="4%" height="31">
                </td>
                <td width="56" height="31">
                  <p align="left"><input type="checkbox" name="trm" value="ON" style="float: left" id="eula">
                </td>
              </tr>
              <tr>
                <td width="40%" align="right" height="27">&nbsp;</td>
                <td width="4%" height="27">
                </td>
                <td width="56" height="27">
                  <p align="left">
                  <input type="submit" value="Send" id="srq" name="req" class="btn"></td>
              </tr>
            </table>
            </form>
          </td>
        </tr>
        <tr>
          <td width="100%" colspan="2" height="18">
          
          
          </td>
        </tr>
        <tr>
          <td width="100%" colspan="2" height="48" bgcolor="#F7F3FF"></td>
        </tr>
        <tr>
<!--------------------------------------------------------------------------------------------------------->        
   <td width="100%" colspan="2" height="25">
        {include file="bottom_link.tpl"}
  </td>
<!--------------------------------------------------------------------------------------------------------->                  
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="600" height="25"><img border="0" src="images/bottomLine.gif" width="600" height="18">      
    </td>
  </tr>
  <tr>
    <td width="600" height="109" valign="top" align="center">
      <p>&nbsp;</p>
      <p><b><font color="#FF0000">Important Service Announcement:</font><br>
      {include file="msg1title.tpl"}
      </b></p>
      {include file="msg1.tpl"}      
      </td>
  </tr>
  <tr>
    <td width="600" height="15" valign="top">
    <p align="center">
<!--------------------------------------------------------------->    
{include file="footer.tpl"}
<!--------------------------------------------------------------->   
      </td>
  </tr>
</table>
</body>

</html>
