var ccgmpKey = "ABQIAAAAJ6mIVblMv0dCJq0bdyzRDhR-ClXg28P-eL0pDCSeBsSkrPmUtxTheKrWiAsZLrxw6lkN2w6jIdkEwA";
var ccgmpSensor = "false";
var ccgmpGURL = "http://maps.google.com/staticmap?";

function ccStatGMap(ccGMpJAR,pupZoom,pupW,pupH,pupFormat,pupMapType,pupCenterLAT,pupCenterLONG,pupMarkerString,pupPathDesign,pupPathString) {
if (!document.getElementById || !document.getElementById(ccGMpJAR)) return
this.ccGMpJAR=document.getElementById(ccGMpJAR)
var ccgmpPath = "";
if (pupPathString != ""){
	ccgmpPath = "&path=" + pupPathString;
	if (pupPathDesign != ""){
		ccgmpPath = "&path=" + pupPathDesign + "|" + pupPathString;
}}
this.ccGMpJAR.innerHTML="<img src='http://maps.google.com/staticmap?center=" + pupCenterLAT + "," + pupCenterLONG + "&zoom=" + pupZoom + "&size=" + pupW + "x" + pupH + "&format=" + pupFormat + "&maptype=" + pupMapType + "&markers=" + pupMarkerString + ccgmpPath + "&key=" + ccgmpKey + "&sensor=" + ccgmpSensor + "' alt='' height='" + pupH + "' width='" + pupW + "' border='0'>";
}

function CCMap(CCTool,CCStreet,CCity,CCState,CCZip) {

	var DD_Street=CCStreet;
	var DD_City=CCity;
	var DD_State=CCState;
	var DD_Zip=CCZip;
	var DD_GZoom="12";
	var DD_YHZoom="4";
	var DD_MQZoom="10";
	
	var GG= "http://maps.google.com/maps?f=q&hl=en&geocode=&q=" + DD_Street + "+" + DD_City + "+" + DD_State + "+" + DD_Zip + "&ie=UTF8&z=" + DD_GZoom + "&iwloc=addr&om=0&zoom=" + DD_GZoom + "";
  	var YY= "http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=" + DD_Street + "&csz=" + DD_City + "+" + DD_State + "+" + DD_Zip + "&resize=l&trf=0&mag=" + DD_YHZoom;
   	var MQ= "http://atlas.mapquest.com/maps/map.adp?formtype=address&address=" + DD_Street + "&city=" + DD_City + "&state=" + DD_State + "&zipcode=" + DD_Zip + "&geodiff=1&zoom=" + DD_MQZoom;
   
   if (CCTool=='Google'){
   	window.open(GG);
   }
   if (CCTool == 'Yahoo'){
   	window.open(YY);
   }
   if (CCTool == 'MapQuest'){
   	window.open(MQ);
   }
  }