/*---------- form ----------*/
function clearForm(){
if(document.search.q){
	document.search.q.value="";
}
}
/*lostpassword window*/
function lossPass(uri){
window.open(uri+"lostpass.php","","width=620,height=320");
}
//ＵＴＦ
/*---------- shop ----------*/
agt = window.navigator.userAgent.toLowerCase();
isIE = (agt.indexOf('msie') >= 0 && agt.indexOf('opera') < 0) ? true : false;

function showmenu(num) {

	var menu = document.getElementById('menu_'+num);

	if (isIE) {
		var a = menu.attributes.getNamedItem('class');
		a = (a) ? a.value : menu.attributes['class'];
	} else {
		var a = menu.getAttribute('class');
	}

	var newCls = (a != 'submenu hide') ? 'submenu hide' : 'submenu';

	if (isIE) {
		var a = menu.attributes.getNamedItem('class');
		a.value = newCls;
	} else {
		menu.setAttribute('class',newCls);
	}
}
/*---------- order sendto ----------*/
function plid(id){
	return opener.document.getElementById(id);
}
var order_sendto_list = new Array('sendtoname1','sendtoname2','sendtonamekana1','sendtonamekana2','sendtozip','sendtocity','sendtoaddress1','sendtoaddress2');
// sendto1sendtotel0 ~ 2
function import_order_sendto(id,sendto_name1,sendto_name2,sendto_namekana1,sendto_namekana2,sendto_zip,sendto_city,sendto_address1,sendto_address2,sendto_tel){
	f = "sendto"+id;
	plid(f+"sendtoname1").value=sendto_name1;
	plid(f+"sendtoname2").value=sendto_name2;
	plid(f+"sendtonamekana1").value=sendto_namekana1;
	plid(f+"sendtonamekana2").value=sendto_namekana2;
	plid(f+"sendtozip").value=sendto_zip;
	plid(f+"sendtocity").value=sendto_city;
	plid(f+"sendtoaddress1").value=sendto_address1;
	plid(f+"sendtoaddress2").value=sendto_address2;
	plid(f+"sendtotel").value=sendto_tel;
	window.close();
}
function order_sendto_window(url,id){
	window.open(url+"order_sendto_list.php?id="+id,"","width=620,height=600");
}