Sorry if this isn't the right place to put this.
I need to know what this code does, i have very basic html knowledge .If anyone can help me any info is very appreciated.
The full code can be seen at
www.undermore.com by going to contact section and opening the source code from firefox.
The Homepage is all fake.
Some site is hidden behind this code and want to enter it.
I also found out that two input boxes are hidden, and when i set them to be visible (by removing the hidden tag), it shows two boxes, one with a number (name=ID), and other with a pair of words (name=subject). If i press the submit button with the default ID number (16110) it says that the email has been sent, but if i change the number a bit, it opens other website depending on the number i wrote in. Changing the SUBJECT doesn't do anything.
Here is the code:
function SwapImage()
{
var doc=document, args=arguments;
doc.$imgSwaps = new Array();
for(var i=2; i<args.length; i+=2)
{
var elem=FindObject(args[i]);
if(elem)
{
doc.$imgSwaps[doc.$imgSwaps.length]=elem;
elem.$src=elem.src;
elem.src=args[i+1];
}
}
}
function FindObject(id, doc)
{
var child, elem;
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
{
for(var i=0; i<child.length; i++)
{
elem=FindObject(id,child[i]);
if(elem)
return elem;
}
}
var frm=doc.forms;
if(frm)
{
for(var i=0; i<frm.length; i++)
{
var elems=frm[i].elements;
for(var j=0; j<elems.length; j++)
{
elem=FindObject(id,elems[i]);
if(elem) return elem;
}
}
}
return null;
}
<td><a href="http://undermore.com/"><img id="bv01005" src="info_files/bv01005.gif" alt="http://undermore.com" onmouseover="SwapImage(1,1,'bv01005','bv01005_over .gif')" onmouseout="SwapImage(0,1,'bv01005','bv01005.gif') " ></a></td>
<form name="EMailForm" method="POST" action="http://formmail.servage.net/" enctype="multipart/form-data">
<input name="id" value="16110" type="hidden">
<input name="subject" value="FORM SUBJECT" type="hidden">
<input name="realname" type="text">
<input name="email" type="text">
Nombre:
E-Mail:
<input name="enviar" value="Enviar" type="submit">
</form>