function searchAdd(code){
	var s = document.createElement('script');
	s.src = "http://www.tak-eng.co.jp/publiclib/zipcode.php?zip="+code;
	s.type = 'text/javascript';
	s.charset = "euc-jp";
	document.body.appendChild(s);
}

function formReset(){
	var tags = ['INPUT','TEXTAREA','SELECT'];
	for(tagCounter=0;tagCounter<tags.length;tagCounter++){
		var inputs = document.getElementsByTagName(tags[tagCounter]);
		for(var no=0;no<inputs.length;no++){
			if(inputs[no].tagName.toLowerCase()=='textarea' || (inputs[no].tagName.toLowerCase()=='input' && (inputs[no].type.toLowerCase()=='text' || inputs[no].type.toLowerCase()=='password'))){
				inputs[no].value = "";
			}
			else if(inputs[no].tagName.toLowerCase()=='select'){
				inputs[no].selectedIndex = 0;
			}
			else if(inputs[no].tagName.toLowerCase()=='input' && (inputs[no].type.toLowerCase()=='checkbox' || inputs[no].type.toLowerCase()=='radio')){
				inputs[no].checked = false;
			}
		}
	}
}

function openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
}

