function openHTML(id,pos){
var random_no = Random();
if (pos == 'large'){
document.write('<table  border="0" cellspacing="0" cellpadding="0" >');
document.write('<tr><td>');
document.write("<a href=\"http://dbms.thailand.com/cgi-bin/adsendlink.cgi?idgroup=" + id + "&ram=" + random_no +"&pos="+pos+"\""+" target=\"_blank\">"+"<img src =\"http://dbms.thailand.com/cgi-bin/adsendimg.cgi?idgroup=" + id + "&ram=" + random_no +"&pos="+pos+"\""+"border=\"0\" width=\"468\" height=\"60\">"+"</a>");
document.write("</td></td>");
document.write('</table>');
}else{
document.write('<table  border="0" cellspacing="0" cellpadding="0" >');
document.write('<tr><td>');
document.write("<a href=\"http://dbms.thailand.com/cgi-bin/adsendlink.cgi?idgroup=" + id + "&ram=" + random_no +"&pos="+pos+"\""+" target=\"_blank\">"+"<img src =\"http://dbms.thailand.com/cgi-bin/adsendimg.cgi?idgroup=" + id + "&ram=" + random_no +"&pos="+pos+"\""+"border=\"0\">"+"</a>");
document.write("</td></td>");
document.write('</table>');
}
}

function Random() {
today = new Date();
num = today.getTime();
num = Math.round(Math.abs(Math.sin(num) * 1000000)) ;
return num;
}