window.onload = Blast;
function Blast() {
        cnt = 0;
        cnta= 0;
        document.getElementById("button293").onclick = validate;
        
     
	for (var i=0; i<document.images.length; i++) {	
		if (document.images[i].parentNode.tagName == "A") {				
			setupRollover(document.images[i]);
			}	
	}
	
}
function setupRollover(thisImage) {
		
	thisImage.outImage = new Image();
	thisImage.outImage.src = thisImage.src;
	thisImage.onmouseout = rollOut;
	
	thisImage.onmouseup = rollUp;   
	
	thisImage.clickImage = new Image();
	thisImage.overImage = new Image();

	/*alert(thisImage.src.length);*/
	var lgth=thisImage.src.length;
	var path = thisImage.src.substring(0,lgth-4);
	var ext = thisImage.src.substring(lgth-4,lgth);
	/*alert(path);
	alert(ext);*/
	thisImage.clickImage.src = path + "_click" + ext;
	thisImage.overImage.src = path + "_on" + ext;
    /*alert(thisImage.overImage.src);
	alert(thisImage.clickImage.src);*/
	
	
	thisImage.onmousedown = rollClick;
	
	
	thisImage.onmouseover = rollOver; 
}	


function rollOver() {
	this.src = this.overImage.src;
}

function rollOut() {
	this.src = this.outImage.src;
}

function rollClick() {
	this.src = this.clickImage.src;
}
function rollUp() {
    this.src = this.outImage.src;
}




        
function someWhere() {
       window.location.href = "http://www.overmountainsams.com/memberpage001.htm";
       return false;
}



function validate() {
/*alert("click");*/
    if (document.form1.memberid.value != "StateOFranklin") {
   cnt++;
      if (cnt<3) {    
         alert("You have entered the wrong User Name. Please try again.");        
        return false;
     }
     alert("Contact: admin@overmountainsams.com");
     window.location.href = "http://www.overmountainsams.com";
     return false;
     }
     
     
    if (document.form1.memberpw.value != "KingsMountain") {
    cnta++;
    if (cnta<3) {
        alert("You have entered the wrong Password. Please try again.");
        return false;
    }
     alert("Contact: admin@overmountainsams.com");
     window.location.href = "http://www.overmountainsams.com";
     return false;
     }

    someWhere();
}
 