﻿// JScript 檔
function trim(strText){
    return strText.replace(/^\s+|\s+$/g, '');
}
function clrHtmlTag(strHTML){
    strHTML = strHTML.replace(/[/]/g, '∕');
    return strHTML.replace(/<[^<>]+>/g, '')
}
function repSpecialWord(strText){
	strText = trim(strText);
	strText = strText.replace(/'/g, '');
	strText = strText.replace(/"/g, '');
	strText = strText.replace(/</g, '＜');
	strText = strText.replace(/>/g, '＞');
	return strText;
}
function getRadom(intMax){
	var intR = Math.floor(Math.random() * (intMax + 1));
	if (intR == 0)
		intR = 1;
	return intR;
}
