function switchBx(c){

	function popHid(b, bs){
		var bNum=b.substring(7);
		//alert(bs+', '+bNum+' ');
		document.getElementById('bx'+bNum+'99').value=bs;
	}

	var e=document.getElementById(c).src;
	var b=document.getElementById(c).id;
	//alert(c+', '+e+', '+b);
	if(e.indexOf("bx.gif")>0){
		document.getElementById(c).src="img/chk.gif";
		popHid(b, 'true');
	}else if(e.indexOf("chk.gif")>0){
		document.getElementById(c).src="img/bx.gif";
		popHid(b, 'false');
	}

}

function switchBx2(c){

	document.getElementById('bxClick1').src="img/bx.gif";
	document.getElementById('bxClick2').src="img/bx.gif";
	document.getElementById('bxClick3').src="img/bx.gif";

	function popHid(b, bs){
		var bNum=b.substring(7);
		//alert(bs+', '+bNum+' ');
		document.getElementById('bx'+bNum+'00').value=bs;
	}

	var e=document.getElementById(c).src;
	var b=document.getElementById(c).id;
	//alert(c+', '+e+', '+b);
	if(e.indexOf("bx.gif")>0){
		document.getElementById(c).src="img/chk.gif";
		popHid(b, 'true');
	}else if(e.indexOf("chk.gif")>0){
		document.getElementById(c).src="img/bx.gif";
		popHid(b, 'false');
	}

}

function echeck(str) {

	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   return false
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	   return false
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		return false
	}
	 if (str.indexOf(at,(lat+1))!=-1){
		return false
	 }
	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		return false
	 }
	 if (str.indexOf(dot,(lat+2))==-1){
		return false
	 }
	 if (str.indexOf(" ")!=-1){
		return false
	 }
	 return true					
}


function indInq(){
	if(echeck(emailID.value)==true){
		
	}else{

	}

	indexQuote.submit();
}

function swImg(a, b) {
  var s="img/"+b+".gif";
  document.getElementById(a).src=s;
}