function changeframe(frameid)
{
var searchwin = window.open(frameid,"searchpage","height=500,width=550,top=150,left=150,scrollbars","");
searchwin.window.focus("searchpage");
}

function showimg(imgid)
{
var nw = window.open("","photo","height=350,width=300","");
nw.window.focus("photo");
var d = nw.document;
d.write('<html><head><title>Photo</title></head>');
d.write('<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" name="photo">');
d.write('<img src="pics/',imgid,'l.jpg" height="300" width="300" alt="',imgid,'" />');
d.write('<div align="center"><form><input type="button" value="close" onclick="window.close()"></form></div>');
d.write('</body></head>');
d.close();
}

function popit(eadd,fnm,count,reg)
{

var popwin = window.open("","Contact","width=300,height=400","");

var popwri = popwin.document;
popwri.write('<html><head><title>Confirmation</title>');
popwri.write('<link rel="stylesheet" href="mystyle.css" type="text/css" />');
popwri.write('</head><body bgcolor="#2D39D3">');
popwri.write('<div class="heading">Are you sure you want to contact<br />');
popwri.write('<span class="stdmail">'+fnm+'</span><br />')
popwri.write('in<span class="stdmail"><br />'+reg+', '+count+'</span>');
popwri.write('</div><form id="form1" name="form1" action="mailto:heemish@cableinet.co.uk" enctype="text/plain" method="post">');
//popwri.write('</div><form id="form1" name="form1" action="mailto:elsphil@anglofilipino.freeserve.co.uk" enctype="text/plain" method="post">');
popwri.write('<div class="std">Your e-mail address</div><input type="text" name="e-mail" size="30"><br /><br />');
popwri.write('<div class="std">Your home address:<br />OPTIONAL - unless if you have no e-mail</div><textarea name="home" cols="32" rows="4"></textarea><br />');
popwri.write('<div style="visibility:hidden;position:absolute;top:0;left:0;">');
popwri.write('<input type="text" value="'+eadd+'" name="Contact Number">');
popwri.write('<input type="text" value="'+fnm+'" name="Contact Number">');
popwri.write('<input type="text" value="'+count+'" name="Contact Number">');
popwri.write('<input type="text" value="'+reg+'" name="Contact Number">');
popwri.write('</div><br />');
popwri.write('<div align="center"><input type="submit" value="Click to E-mail your contact" /></form>');
popwri.write('<form><input type="submit" value="Close" onClick="self.close()" id=button1 name=button1></form>');
popwri.write('</div>');
popwri.write('</body></html>');
popwri.close();
}

function writelist(emailadd,fname,country,region,info,imgloc)
{
document.write('<tr><td width="500">');
document.write('<table width="490" border="0"><tr><td width="195"><table width="190" border="0">');
document.write('<tr height="50"><td width="95" height="50">');
document.write('<span class="std">',fname,'</span>');
document.write('<div style="visibility:hidden;position:absolute;top:0;left:0;">');
document.write('<input type="text" value="'+emailadd+'" name="contactnumber" size="30" id="contactnumber">');
document.write('<input type="text" name="contactnumber" id="contactnumber" value="'+fname+'" size="0">');
document.write('<input type="text" name="country" value="'+country+'" size="0">');
document.write('<input type="text" name="region" value="'+region+'" size="0"></div>');
document.write('</td><td width="100" height="50">');
document.write('<input type="button" Value="Contact" ');
document.write('onclick="popit(\''+emailadd+'\',\''+fname+'\',\''+country+'\',\''+region+'\')" id="submit1" name="submit1">');

document.write('</td></tr><tr height="50"><td width="90" height="50">');
document.write('<span class="std">',region,'</span>');
document.write('</td><td width="100" height="50">');
document.write('<span class="std">',country,'</span>');
document.write('</td></tr></table></td>');
document.write('<td width="250">');
document.write('<span class="std">',info,'</span>');
document.write('</td>');
document.write('<td width="50">');
document.write('<a href=javascript:showimg("'+imgloc+'")><img src="pics/'+imgloc+'.jpg" height="100" width="100" alt="Click for larger image" /></a>');
document.write('</td></tr></table></td></tr>');
}

function contactme()
{
var nw = window.open("contactconf.html","","resizable=no,width=300,height=300");
var d = nw.document;
}

function agree()
{
alert("Please verify your details before clicking on the SUBMIT button. Remember that ALL your details will be available for anyone to see EXCEPT for your e-mail address and Last Name");
document.all['hidden'].style.visibility="visible";
}

function detailspage()
{
var dw = window.open("details.html","details","height=450,width=470,top=150,left=150","");
dw.window.focus("details");
}



