function newpage(f,wn){
	w=window.open(f,wn,"scrollbars=yes,resizable=yes,toolbar=yes,menubar=0,location=0,directories=0,status=0");
}

function chgpage(count){
	if (count != 0)
		document.form1.count.value = count.toString();
		document.form1.submit();
}

function clorder(cfrom, order) {
	document.choice.cfrom.value = cfrom;
	document.choice.odr.value = order;
	document.choice.submit();
}

function np(kind,code){
	url = "http://www.towa-h.co.jp/meisai.html?BCode=" + code + "&Type=" + kind;
	w=window.open(url, "meisai", "scrollbars=yes,resizable=yes,toolbar=yes,menubar=0,location=0,directories=0,status=0");
}

function goquery(pr,md){
	document.form1.pr.value = pr;
	document.form1.md.value = md;
	document.form1.submit();
}

function subfrm1(){
	document.formU.count.value = "";
	document.formU.submit();
}

function estimate(code){
	url = "http://www.iesweb.jp/comm/towa/estimate.php?BCode=" + code;
	w=window.open(url, "estimate", "scrollbars=no,resizable=yes,toolbar=no,menubar=0,location=0,directories=0,status=0,width=600,height=500");
}

function qmailopenc(bcode,callid){
	var f = "http://www.iesweb.jp/CBMail.php?BCode=" + bcode + "&CallID=" + callid + "&type=c";
	wn = "ncmail";
	w=window.open(f,wn,"scrollbars=yes,resizable=yes,toolbar=yes,menubar=0,location=0,directories=0,status=1,width=640");
}

function qmailopenb(bcode,callid){
	var f = "http://www.iesweb.jp/CBMail.php?BCode=" + bcode + "&CallID=" + callid + "&type=b";
	wn = "nbmail";
	w=window.open(f,wn,"scrollbars=yes,resizable=yes,toolbar=yes,menubar=0,location=0,directories=0,status=1,width=640");
}
