function clickAdHit(id)  
{
 var postTo = "/inc/AdHit.aspx?adid="+id;
 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
 xmlhttp.open("GET", postTo,false);
 try 
  { 
 xmlhttp.send();
 } 
  catch(e)
  {  	
  } 
}

function InsertFlash(Flash,Width,Height,Alt,ID){
 document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
 document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ");
 document.write("width=\"" + Width + "\" height=\"" + Height + "\" title=\"" + Alt + "\" id=\"" + ID + "\">");
 document.write("<param name=\"movie\" value=\"" + Flash + "\">");
 document.write("<param name=\"quality\" value=\"high\">");
 //document.write("<param name=\"wmode\" value=\"transparent\">");
 document.write("<embed src=\"" + Flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ");
 document.write("type=\"application/x-shockwave-flash\" width=\"" + Width + "\" height=\"" + Height + "\"></embed>");
 document.write("</object>");
} 
function InsertPicture(Pic,Width,Height,LinkUrl,Alt)
{
    if (LinkUrl=="")
    {
    document.write("<img src=\"" + Pic + "\" alt=\"" + Alt +"\" ");
    document.write("border=\"0\" width=\"" + Width + "\" height=\"" + Height + "\" />");
    }
    else
    {
    document.write("<a href=\""+LinkUrl+"\" target=\"_blank\">");
    document.write("<img src=\"" + Pic + "\" alt=\"" + Alt +"\" ");
    document.write("border=\"0\" width=\"" + Width + "\" height=\"" + Height + "\" />");
    document.write("</a>");
    }
}