function SelectRow(selection){
	location.replace("main.php?row=" + selection.value);
}
function SelectSeriese(selection){
	location.replace("main.php?seriese1=" + selection.value);
}
function SelectMaker(selection){
	location.replace("main.php?maker=" + selection.value);
}
function SelectBest(selection){
	location.replace("main.php?item=" + selection.value);
}
function SelectGroup(selection){
	location.replace("main.php?group1=" + selection.value);
}
function SelectSale(selection){
	location.replace("main.php?sale=" + selection.value);
} 
function InputKeyword(keyword,evt){
	FindKeyword();
	evt.returnValue = false;
} 
function FindKeyword(){
	var str = document.forms[0].elements['keyword'].value;
	str = str.replace("+","＋");
	location.replace("main.php?keyword=" + str);
} 
function IsDuplicate(doc){
	return confirm("既に同一商品が" + document.getElementsByName(doc).item(0).value + "枚選択されてます。よろしいですか？");
}
function ShowQueryForm(){
	var option = "location=no, menubar=no, status=no, scrollbars=no, resizable=no, toolbar=no";
	option += ",width=620px, height=350px";
	option += ", left=" + (window.screen.width-620) / 2 + "px";
	option += ", top=" + (window.screen.height-350) / 2 + "px";
	window.open("./sc_query.php", "query", option);
}
function ShowLoginForm(){
	window.showModalDialog('./sc_login.php', this, "help=no; scrollbars=no; status=no; dialogWidth=400px; dialogHeight=190px;");
}
function Login(){
	document.cookie = "UserId=" + document.forms[0].elements['id'].value + ";";
	document.cookie = "Password=" + document.forms[0].elements['password'].value;
	location.replace("./main.php?login=1");
}
