			document.write('<script src="http://www.cvautoshopper.com/javascript/prototype.js" type="text/javascript"></script>');
			document.write('<script src="http://www.cvautoshopper.com/javascript/scriptaculous.js" type="text/javascript"></script>');
			document.write('<script src="http://www.cvautoshopper.com/javascript/unittest.js" type="text/javascript"></script>');
			function SendContactInformation()
			{

			var DealerId = document.getElementById("DealerId").value
	
			if(!IsValidText(document.getElementById('txtname').value,"Name"))
				{
						//alert("Name should not be empty");
						document.getElementById('txtname').focus();
						return false;
				}
				
				if(!isEmail(document.getElementById('txtemail').value))
				{
						document.getElementById('txtemail').focus();
						return false;
				}
				
				if(!IsValidText(document.getElementById('txtsubject').value,"subject"))
				{
						//alert("Name should not be empty");
						document.getElementById('txtsubject').focus();
						return false;
				}
				
				if(!IsValidText(document.getElementById('txtcomments').value,"Comments"))
				{
						//alert("Comments should not be empty");
						document.getElementById('txtcomments').focus();
						return false;
				}
				
				document.getElementById("ContactSendStatus").style.display = "";
				document.getElementById("ContactSendStatus").innerHTML = "Sending...";
				var ReviewListingId = document.getElementById('ReviewListingId').value;
				var txtname = document.getElementById("txtname").value;
				var txtemail = document.getElementById("txtemail").value;
				var txtsubject = document.getElementById("txtsubject").value;
				var txtcomments = document.getElementById("txtcomments").value;
				document.cookie = "C_CSenderName="+txtname+"; path=/";
				document.cookie = "C_CSenderEmail="+txtemail+"; path=/";
				var qstr = "DealerId="+DealerId+"&txtname="+txtname+"&txtemail="+txtemail+"&txtsubject="+txtsubject+"&txtcomments="+txtcomments;
				//document.getElementById('txtcomments').value = "http://www.cvautoshopper.com/sendcontactinfo.php?"+qstr;
				
			//http.open("GET", "http://www.cvautoshopper.com/sendcontactinfo.php?"+qstr, true);
				var Values    ="d1";
			var success   = function(t){CompleteEvent(t, Values);}
				var failure   ="";
					
				
				var url       = "sendcontactinfo.php";
				var myAjax    = new Ajax.Request(url, {method:'post',postBody:qstr, onSuccess:success, onFailure:failure});
					
				
				Effect.Shrink('d1')

				
			}

			function CompleteEvent(t,Values){
		 //alert(t.responseText)
	}


			// The server-side script
			function handleHttpResponse()
			{
				if (http.readyState == 4)
				{
					// Split the comma delimited response into an array
					//results = http.responseText.split(",");
					document.getElementById("ContactSendStatus").innerHTML = "Thank you for contacting us";
					ShowGoogleMaps();
				}
			}
			function getHTTPObject() 
			{
				var xmlhttp;
				var browser = navigator.appName;
				if(browser == "Microsoft Internet Explorer")
				{
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				}
				else
				{
					xmlhttp = new XMLHttpRequest();
				}
				return xmlhttp;
			}
			var http = getHTTPObject(); // We create the HTTP Object
			function HideGoogleMaps(e,DealerId)
			{
				
				
				var posx = 0;
				var posy = 0;
				if (!e) var e = window.event;
				if (e.pageX || e.pageY)
				{
					posx = e.pageX;
					posy = e.pageY;
				}
				else if (e.clientX || e.clientY)
				{
					posx = e.clientX + document.body.scrollLeft;
					posy = e.clientY + document.body.scrollTop;
				}
				//alert("X= "+posx+" Y= "+posy);
				document.getElementById("d1").style.left = posx - (330 / 2);	//div width 430.
				document.getElementById("d1").style.top = posy  - (270 + 55);	//div width 270.  55 is to move top more for ponint arrow
				//alert("X= "+(posx - (330 / 2)));
				document.getElementById("GoogleMapTR").style.visibility = "hidden";
				if(document.getElementById("txtname")) document.getElementById("txtname").value = readCookie("C_CSenderName");
				if(document.getElementById("txtemail")) document.getElementById("txtemail").value = readCookie("C_CSenderEmail");
				if(document.getElementById("DealerId"))document.getElementById("DealerId").value = DealerId
				Effect.Grow('d1');; return false;
			}
			function readCookie(name)
			{
				var nameEQ = name + "=";
				var ca = document.cookie.split(';');
				for(var i=0;i < ca.length;i++)
				{
					var c = ca[i];
					while (c.charAt(0)==' ') c = c.substring(1,c.length);
					if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
				}
				return '';
			}
			function ShowGoogleMaps()
			{
				document.getElementById("GoogleMapTR").style.visibility = "visible";
				Effect.Shrink("d1");; return false;
			}
			//top: 75px;left: 520px;
			var output = '';
		output += '<div id="d1" style="display:none;position: absolute;width: 380px;height: 270px;">\n';
			output += '<table border="0" cellpadding="0" cellspacing="0" width="100%">\n';
			output += '<tr>\n';
			output += '<td width="1%"><input type="hidden" id="DealerId" name="DealerId">\n';
			output += '<img src="images/zoom_01.gif" width="24" height="24" alt="" border="0"></td>\n';
			output += '<td width="99%" align="right" background="images/zoom_02.gif" style="background-repeat:repeat-x;">\n';
			output += '</td>\n';
			output += '<td width="1%">\n';
			output += '<a href="#" onclick="ShowGoogleMaps();"><img src="images/zoom_03.gif" width="25" height="24" alt="" border="0"></a></td>\n';
			output += '</tr>\n';
			output += '<tr>\n';
			output += '<td width="1%" background="images/zoom_04.gif" style="background-repeat:repeat-y;">\n';
			output += '<img src="images/zoom_04.gif" width="24" height="146" alt="" border="0"></td>\n';
			output += '<td width="99%" bgcolor="#FFFFFF">\n';
			output += '<table width="100%"  border="0" cellpadding="0" cellspacing="0">\n';
			output += '<tr>\n';
			output += '<td>\n';
			output += '<table width="100%"  border="0" cellspacing="0" cellpadding="1" bgcolor="#FFFFFF">\n';
			output += '<tr>\n';
			output += '<td colspan="3" class="txtorg" height="25" align="center" id="ContactSendStatus" style="display:none"></td>\n';
			output += '</tr>\n';
			output += '<tr height="25">\n';
			output += '<td width="10%" align="right" class="txt2"><input type="hidden" name="hdIdent" id="hdIdent"><strong>Name</strong><b class="txtorg">*</b>&nbsp;&nbsp;</td>\n';
			output += '<td width="45%"><input type="text" name="txtname" id="txtname" class="txtbox1" maxlength="100"></td>\n';
			output += '<td width="35%" valign="top"><b class="txtorg">*</b><span class="txtorg">Required</span></td>\n';
			output += '</tr>\n';
			output += '<tr height="25">\n';
			output += '<td align="right" class="txt2"><strong>Email</strong><b class="txtorg">*</b>&nbsp;&nbsp;</td>\n';
			output += '<td colspan="2"><input type="text" name="txtemail" class="txtbox1" maxlength="100"></td>\n';
			output += '</tr>\n';
			output += '<tr height="25">\n';
			output += '<td align="right" class="txt2"><strong>Subject</strong><b class="txtorg">*</b>&nbsp;&nbsp;</td>\n';
			output += '<td colspan="2"><input type="text" name="txtsubject" class="txtbox1" maxlength="100"></td>\n';
			output += '</tr>\n';
			output += '<tr height="25">\n';
			output += '<td align="right" valign="top" class="txt2"><strong>Comments</strong><b class="txtorg">*</b>&nbsp;&nbsp;</td>\n';
			output += '<td colspan="2"><textarea name="txtcomments" rows="7" cols="45"  class="txtbox1"></textarea></td>\n';
			output += '</tr>\n';
			output += '<tr>\n';
			output += '<td>&nbsp;</td>\n';
			output += '<td><input type="button" name="btnSend" value="Send" class="button1" onClick="SendContactInformation()"></td>\n';
			output += '</tr>\n';
			output += '</table></td>\n';
			output += '</tr>\n';
			output += '</table>\n';
			output += '</td>\n';
			output += '<td width="1%" background="images/zoom_06.gif" style="background-repeat:repeat-y;">\n';
			output += '<img src="images/zoom_06.gif" width="25" height="146" alt="" border="0"></td>\n';
			output += '</tr>\n';
			output += '<tr>\n';
			output += '<td width="1%" valign="top">\n';
			output += '<img src="images/zoom_07.gif" width="24" height="87" alt="" border="0"></td>\n';
			output += '<td width="99%" background="images/zoom_08.gif" align="center" style="background-repeat:repeat-x;" valign="top">\n';
			output += '<img src="images/zoom_09.gif" width="75" height="87" alt="" border="0"></td>\n';
			output += '<td width="1%" valign="top">\n';
			output += '<img src="images/zoom_11.gif" width="25" height="87" alt="" border="0"></td>\n';
			output += '</tr>\n';
			output += '</table>\n';
			output += '</div>';
			
			document.write(output);
			

