﻿function quickSearchSubmit(){
	document.forms["quickSearchForm"].keyword.value = document.getElementsByName("quickSearchField")[0].value;
	
	var myV = new Validate();
	myV.denySQ(document.forms["quickSearchForm"].keyword.value, "快速搜尋", true);
	if (myV.msg != ""){
		alert(myV.msg);
		return false;
	}
	else{
		//window.open("./msg.htm", "msg", "width=150, height=100, location=no, menubar=no, toolbar=no, scrollbars=no");
		document.forms["quickSearchForm"].submit();
		return true;
	}
}

function getContentImgPath(name, path)
{
	var obj = document.getElementsByName(name);
	var objLen = obj.length;
	var aryPath;

	if(objLen != null)
	{
		for(var i=0;i<objLen;i++)
		{
			aryPath = obj[i].src.split("/");
			obj[i].src = path + aryPath[aryPath.length-1];
		}
	}
	else
	{
		aryPath = obj.src.split("/");
		obj.src = path + aryPath[aryPath.length-1];
	}
}