//<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

//フレーム内に読み込まれたら解除
if(self!=top){top.location.href=self.location.href;}


/*----------------------------------------------------------------------------------*/
var PROTOCOL=location.protocol;
var DOMAIN='babamakoto.com';
var HOSTNAME='www';
var URL=PROTOCOL+'//'+HOSTNAME+'.'+DOMAIN+'/';
var	REF=document.referrer;
/*----------------------------------------------------------------------------------*/





function acclog($a){

	if($a != 'undefined' && $a != null && $a != ""){
		filePath=$a;
	}else{
		filePath=getFile();
	}

	document.write("<img src="
	+URL+"cgi-bin/acclog/set.cgi"
	+"?"+filePath+","+location.href+","+REF+">");

}





function getFile(){
	var lc=document.location.href;
	var dlength=DOMAIN.length;
	
	if(lc.indexOf(DOMAIN)){
		var tmp=lc.indexOf(DOMAIN,0)+dlength;
		var tmp=lc.substring(tmp);
		if(tmp.substring(tmp.length-1)=="/"){
			//tmp+="root";
		}
		return(tmp);
	}
}



function disableForm(form) {
	if (document.all || document.getElementById) {
		for (i=0;i<form.elements.length;i++) {
			var obj=form.elements[i];
			if (obj.type.toLowerCase()=="submit") {
				obj.disabled=true;
			}
		}
	}
}



function printTel(){
 document.open();
 document.write('080-34');
document.write('87-67');
document.write('3');
document.write('2');
 document.close();
}






