
function allocateStickcard ( frontBack ) {

	document.form_allocateStickcard.productComponentID.value = "stickcard" + frontBack;
	document.form_allocateStickcard.st.value = "ls";

	document.form_allocateStickcard.submit();

}


function allocateSealbook ( pcid ) {

	document.form_allocateSealbook.st.value = "ls";
	document.form_allocateSealbook.productComponentID.value = pcid;

	document.form_allocateSealbook.submit();

}


function allocateSticker ( stickerType ) {

	document.form_allocateRoundsticker.st.value = "ls";
	document.form_allocateRoundsticker.productComponentID.value = stickerType;
	document.form_allocateRoundsticker.submit();

}


function allocateMediaprotector () {

	document.form_allocateMediaprotector.st.value = "ls";
	document.form_allocateMediaprotector.submit();

}


function allocateDownload () {

	document.form_allocateDownload.st.value = "ls";

	document.form_allocateDownload.submit();

}


function sheetCountChange(sc,tp) {
	document.getElementById("total_"+tp).innerHTML = sc+"枚";
}



function namesealSelect( gender ) {

	document.form_selectNameseal.st.value = 'nameConfirm';
	document.form_selectNameseal.productComponentID.value = "nameseal"+gender;
	document.form_selectNameseal.submit();

}


function selectSticker ( modelType ) {

	document.form_selectRoundsticker.productModelID.value = modelType;
	document.form_selectRoundsticker.submit();

}





function calAverage ( stickerMax ) {

	var ave  = Math.floor( productLogoLimitID.stickcardFront / stickcardFrontNumber.length);
	var aveF = ave + 1;
	var rest = productLogoLimitID.stickcardFront % stickcardFrontNumber.length;

	for ( i=0; i<stickcardFrontNumber.length; i++ ) {
		if ( i == rest ) {
			aveF = ave;
		}
		document.getElementsByName('pickedLogoList['+stickcardFrontNumber[i]+'][logoIDcount]')[0].value = aveF;
	}

}