//商材検索実行処理
function searchExecute(form){

	//キーワードテキスト内の透かし文字を消す(空検索用)
	$.Watermark.HideAll();
	
	form.submit();

}


//商材検索フォーム入力値クリア処理
function clearInputForm(){

	//大カテゴリ
	if (document.getElementById('large_category_id') != null){
		document.getElementById('large_category_id').selectedIndex = 0;
	}
	
	//中カテゴリ
	if (document.getElementById('middle_category_id') != null){
		document.getElementById('middle_category_id').selectedIndex = 0;
	}
	
	//顧客種別
	if (document.getElementById('supplier_kind_combo') != null){
		document.getElementById('supplier_kind_combo').selectedIndex = 0;
	}	
	
	//検索フリーテキスト
	if (document.getElementById('condition_text') != null){
		document.getElementById('condition_text').value = '';
	}
	
	//AND・ORコンボ
	if (document.getElementById('condition') != null){
		document.getElementById('condition').selectedIndex = 0;
	}
	
	//キーワードテキスト内の透かし文字設定
	$.Watermark.ShowAll();
	
}


/* コーナーの角を丸くする */
$(function(){
	$('div.search').corner();
});


/* 商材検索のキーワードテキスト内に透かし文字を設定する */
$(function(){
	$("#condition_text").Watermark("キーワード");
});

