// JavaScript Document

function popform(){
	var new_form = '<div id="boxA" class="box content" align="center" style="position:absolute;  z-index:999;  margin:auto; padding-top:95px; right:2%;"  >    <table class="emailform" border="0" id="emailtable" align="left" cellpadding="0" cellspacing="0" width="294">    <tbody>    <tr>      <td width="2"><img src="images/form/pix.gif" height="50" width="1"></td>      <td width="292" height="22" align="right" background="images/form/toolboxtop.png"><a href="#" onClick="toggleDisplay()"><img src="images/form/close.png" border="0" style="padding-right:20px" alt="" width="20" height="20"  align="top" /></a><img src="images/form/pix.gif" height="20" width="1"><br>          </td>    </tr>    <tr valign="top">      <td><img src="images/form/pix.gif" height="200" width="1"></td>      <td align="center" background="images/form/toolboxmid.png"><table align="center" class="emailform" border="0" cellpadding="0" cellspacing="0" width="80%"  style="color:#000000">        <tbody>          <tr>            <td colspan="2" valign="top" ><h2 align="left">Contact Us! </h2>    <a href="#" onClick="toggleDisplay()">close this form</a>                  <form action="http://static.aimediagroup.com/scripts/email.php" method="post">              Name<br />                <input type="text" name="name" />                <br />				Company Name<br />                <input type="text" name="company_name" />				<br />				Phone Number<br />                <input type="text" name="phone" />                <br />               Email<br />                <input type="text" name="email" />                <br />                    Notes<br />                                    <textarea style="width:153px" rows="6" name="comments" ></textarea>   <br />How Did You Hear About Us?<br />                <input type="text" name="how_did_you_hear_about_us" /> <br /> Best Way To <br />Contact You:<br />               Email: <input type="radio" name="best_way_to_contact" value="email" />Phone: <input type="radio" name="best_way_to_contact" value="phone" />                <br />                             <input name="submit" type="submit" value="Send">                </form>                  <br>            </td>          </tr>        </tbody>      </table></td>    </tr>    <tr>      <td></td>      <td><img src="images/form/toolboxlow.png" width="292" height="22"><br>          <br></td>    </tr>  </tbody></table></div>';
var d = document.getElementById('popHolder');
	var n = new_form + d.innerHTML ;
	d.innerHTML = n;
	document.getElementById('emailLink').style.display="none";
}
function toggleDisplay()
	{
		if (!document.getElementById) {	return;	}
		var el = document.getElementById('emailtable');
		if (el.style.display == '')
		{
		el.style.display = 'none';
		document.getElementById('emailLink').style.display="";
		}
		else
		{
			el.style.display = '';
			document.getElementById('emailLink').style.display="";
		}
}





