﻿// JScript File
function showResults(){ 
    document.getElementById('results').style.display='block';
    document.getElementById('resultsLocations').style.display='block';
    document.getElementById('noFindText').style.display='block';
    document.getElementById('introText').style.display='none'; 
}
function getDirections(){
    whichone=document.getElementById
    whichone('results').style.display='none';
    whichone('resultsLocations').style.display='none';
    whichone('introText').style.display='none';
    whichone('searchFormContent').style.display='none';
    whichone('directions').style.display='block';
    whichone('directionsIFrame').src='http://maps.google.com/maps?f=l&hl=en&geocode=&time=&date=&ttype=&q=Pep+Boys&near=howell,+nj&ie=UTF8&z=9&om=1';
  
}
function onlyNumbers(evt){
	var e = event || evt; 
	var charCode = e.which || e.keyCode;
	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;
	return true;
}
function createMarker(point,html, imgSrc, imgShadowSrc) {
 var icon = new GIcon(); 
    icon.image = imgSrc;
    icon.shadow = imgShadowSrc;
    icon.iconSize = new GSize(37, 24);
    icon.shadowSize = new GSize(37, 24);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(12, 10);  
    
    var marker = new GMarker(point, {icon:icon});
    GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
    })

    return marker;
}
/*function textChange(eventTarget, eventArgument) {
    if (typeof(Page_ClientValidate) == 'function')
    {
       Page_ClientValidate();
       if (Page_IsValid)
          __doPostBack(eventTarget,eventArgument);
          return Page_IsValid;
    }
    else
    {
          __doPostBack(eventTarget,eventArgument);
          return true;
    }
}
*/


