<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>PSST - Amino acid Composition, Molecular Weight & Volume</title>
<SCRIPT LANGUAGE = "javascript">

    function checkin()
    {
	 if(document.entryid.mode[0].checked)
	 { 
	  document.entryid.action="/../cgi-bin/psst/amino1.pl";
	 }

	 if(document.entryid.mode[1].checked)
	 {
	   //document.entryid.action="/../cgi-bin/psst/graph.pl";
	 }
         document.entryid.submit();
         return true;
      }

  function Validate()
 {
   var msg ="";
   if (document.entryid.id.value.length < 4)
   { alert ('PDB-id code should contain 4 letters'); return false; }
   for (i=0;i<document.entryid.elements.length;i++)
   {
   if ( document.entryid.elements[i].type == 'text' || document.entryid.elements[i].type == 'file')
   {
      if ( document.entryid.elements[i].value == "")
      {
        if (document.entryid.c1.checked==false)
        {
          if ( document.entryid.elements[i].name == 'fname')
          {  alert ("File Name should not be blank " );return false; }
        }
        else
        {
          if ( document.entryid.elements[i].name == 'id')
          {  alert ("PDB ID should not be blank " );return false; }
        }


      }

    }
 }

   checkin();
}


      function clear()
      {
         document.entryid.reset();
         document.entryid.id.focus();
         return true;
      }

function check1()
{
   document.entryid.c1.checked=true
   document.entryid.c2.checked=false
   document.entryid.id.value=""
   document.entryid.id.focus();
}
function check2()
{
   document.entryid.c1.checked=false
   document.entryid.c2.checked=true
   document.entryid.id.value ="-----"
   document.entryid.fname.focus();
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages()
{
	if (document.images)
	{
		HButton_03_over = newImage("images/HButton_03-over.gif");
		OButton_03_over = newImage("images/OButton_03-over.gif");
		preloadFlag = true;
	}
}

</SCRIPT>
</head>

<body bgcolor="#000000" text="#00FFFF" ONLOAD="preloadImages();">

<p align="center"><img border="0" src="images/amwv.gif" width="343" height="53"></p>
<Table border=0 bgColor=red width=100%>
<TR>
<TD><img src=../TImages/dot.gif width=1 height=1></TD>
</TR>
</Table>
<br><br><br><br><br>
<FORM NAME="entryid" METHOD="POST" ACTION="/cgi-bin/psst/graph.pl"
           onSubmit="return Validate(this)" onReset="return clear(this)" ENCTYPE="multipart/form-data">
  <div align="center">
  <center>    
  <table border="0" cellpadding="0" cellspacing="0" width="75%">
    <tr>
      <td width="4%"><input type="checkbox" name="c1" value="ON" checked onClick='check1()'></td>
      <td width="62%"><font face="Helvetica" size=+1 color="#FFFF00"><b>Enter the PDB-id code<br>(Protein Data Bank)</b></font></td>
      <td width="34%" valign="middle" align="left"><input type="text" name="id" size="5" value="" maxlength=24 onFocus="Javascript:if(document.pdbisoelectric.c1.checked==false) this.blur();"></td>
    </tr>
    <tr>
      <td width="4%"></td>
      <td width="62%" valign="middle" align="center"><br><font color="#FFFF00" face="Helvetica" size=+1><b>(or)</b></font><br><br></td>
      <td width="34%"></td>
    </tr>
    <tr>
      <td width="4%"><input type="checkbox" name="c2" value="ON" onClick='check2()'></td>
      <td width="62%"><font face="Helvetica" size=+1 color="#FFFF00"><b>Upload the PDB file<br>(from the client machine)</b></font></td>
      <td width="34%"><input type=file name=fname size=15></td>
    </tr>
  </table>
  </center>
</div>
<br><br><br>
  <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" width="50%">
      <tr>
        <td width="50%" valign="middle" align="center"><input type="radio" value="table" name="mode" checked>&nbsp;
          <b><font face=Helvetica size=+1>Tabular Format</font></b></td>
        <td width="50%" valign="middle" align="center"><input type="radio" value="table" name="mode">&nbsp;
          <b><font face=Helvetica size=+1>Graphical Format</font></b></td>
      </tr>
    </table>
    </center>
  </div>
  <br><br>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="50%">
    <tr>
      <td width="100%" valign="middle" align="center"><input type="button" value=" Go Ahead " name="Submit" onClick=Validate()>&nbsp;&nbsp;&nbsp;
        <input type="reset" value=" Clear " name="Clear"></td>
    </tr>
  </table>
  </center>
</div>
<br><center>
<table border="0" cellpadding="0" cellspacing="0" width="50%">
 <tr align=center>
  <td><b>Help&nbsp;:&nbsp;PDB-id Code is a 4 digit code that uniquely identifies a protein</b></td></tr>
 <tr>
   <td align=center><b>Example&nbsp;:&nbsp;1UNE,&nbsp;1JAC&nbsp;etc.,</b></td></tr>
 <tr><td>&nbsp;</td></tr>
 <tr>
<td align=center><b> <font color=yellow>&nbsp;(&nbsp;or&nbsp;)&nbsp;</font></b></td></tr>
 <tr><td>&nbsp;</td></tr>
 <tr>
   <td align=center><b>Upload your protein file in the PDB format</b> </td></tr>
</table></center>
<br>
</form>
<hr>
<br>
<!-- ImageReady Slices (OButton.psd) -->
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=0 align=right>
<TR>
<TD>
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/HButton_02.gif" WIDTH=3 HEIGHT=27></TD>
		<TD>
			<A accesskey=h HREF="index.shtml" TARGET="_self"
				ONMOUSEOVER="changeImages('HButton_03', 'images/HButton_03-over.gif'); return true;"
				ONMOUSEOUT="changeImages('HButton_03', 'images/HButton_03.gif'); return true;">
				<IMG NAME="HButton_03" SRC="images/HButton_03.gif" WIDTH=94 HEIGHT=24 BORDER=0></A></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/HButton_04.gif" WIDTH=2 HEIGHT=27>
		</TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/HButton_05.gif" WIDTH=94 HEIGHT=3></TD>
	</TR>
</TABLE>

</TD>
<TD>

<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=0>
	<TR>
		<TD COLSPAN=3>
			<IMG SRC="images/OButton_01.gif" WIDTH=100 HEIGHT=2></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/OButton_02.gif" WIDTH=3 HEIGHT=27></TD>
		<TD>
			<A accesskey=o HREF="PSST_Options.html" TARGET="_self"
				ONMOUSEOVER="changeImages('OButton_03', 'images/OButton_03-over.gif'); return true;"
				ONMOUSEOUT="changeImages('OButton_03', 'images/OButton_03.gif'); return true;">
				<IMG NAME="OButton_03" SRC="images/OButton_03.gif" WIDTH=94 HEIGHT=24 BORDER=0></A></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/OButton_04.gif" WIDTH=3 HEIGHT=27></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/OButton_05.gif" WIDTH=94 HEIGHT=3></TD>
	</TR>
</TABLE>

</TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
<br><br><br><hr><br>
<table border=0 width=100% height=20 bgColor=#000000>
<tr>
<td align=center>
<font face=helvetica color=#ffffff size=+1><b>&copy SERC, IISc, Bangalore - 12. </font>
</td>
</tr>
</table>
</body>
</html>
