var countStyle = 1;
function changeStyleUp(){
	countStyle = countStyle + 1;
	if (countStyle > 3){
		countStyle = 3;
	}
	checkStyle();
}
function changeStyleDown(){
	countStyle = countStyle - 1;
	if (countStyle < 1){
		countStyle = 1;
	}
	checkStyle();
}
function checkStyle(){
	if (countStyle <= 1){
		styleNormal.disabled = false;
		styleLarge.disabled = true;
		styleXLarge.disabled = true;
	}else if (countStyle == 2){
		styleNormal.disabled = true;
		styleLarge.disabled = false;
		styleXLarge.disabled = true;
	}else{
		styleNormal.disabled = true;
		styleLarge.disabled = true;
		styleXLarge.disabled = false;
	}
}

function doQuoteFormSubmit(){
	var selectPage = getURLParam("selectPage");
	insertStockSymbol();
	document.quoteForm.selectPage.value = selectPage;
}

function getURLParam(strParamName){
	var strHref = window.location.href;
	return getParameter(strHref, strParamName);
}

function getParameter (queryString, parameterName ) {
	// Add "=" to the parameter name (i.e. parameterName=value)
	var parameterName = parameterName + "=";
	if ( queryString.length > 0 ) {
		// Find the beginning of the string
		begin = queryString.indexOf ( parameterName );
		// If the parameter name is not found, skip it, otherwise return the value
		if ( begin != -1 ) {
			// Add the length (integer) to the beginning
			begin += parameterName.length;
			// Multiple parameters are separated by the "&" sign
			end = queryString.indexOf ( "&" , begin );
			if ( end == -1 ) {
				end = queryString.length
			}
			// Return the string
			return unescape ( queryString.substring ( begin, end ) );
		}
		// Return "null" if no parameter has been found
		return "";
	}
}

function insertStockSymbol(){
	var a = document.quoteForm;
	if (a.txtSymbol.value == ' ใส่ชื่อย่อหุ้น'){
		a.txtSymbol.value='';
	}
}
function checkStockSymbol(){
	var a = document.quoteForm;
	if (a.txtSymbol.value == ''){
		a.txtSymbol.value = ' ใส่ชื่อย่อหุ้น';
	}
}
function doMemberLink(page){
	var randomNo = Math.floor(Math.random() * 1000000000000);
	var linkLocation = "/login.jsp?txtBrokerId=IPO";
	if (page == 1){
		linkLocation = "/S09_StockPrice.jsp?txtBrokerId=IPO&t=" + randomNo;
	}else if(page == 2){
		linkLocation = "/portfolio/stock_portfolio.jsp?t=" + randomNo;
	}else if(page == 3){
		linkLocation = "/corp/ipo/index.jsp?t=" + randomNo;
	}else if(page == 4){
		linkLocation = "/S17_MainAlertRule.jsp?t=" + randomNo;
	}
	location.replace(linkLocation);
}
document.writeln('<table width="1003" border="0" cellspacing="0" cellpadding="0">');
document.writeln('	<tr>');
document.writeln('		<td height="128"  valign="top"><iframe src="/brokerpage/IPO/template/top_panel/header.jsp" width="100%" height="78" align="top" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>');
document.writeln('			<!---Menu -->');
document.writeln('		<table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.writeln('			<tr>');
document.writeln('				<td width="853" background="/brokerpage/IPO/StaticPage/firstPage/images/home/menu_topbg.gif" height="25" valign="top">');
document.writeln('				<div><div><div style="display:none;"><ul id="imenus0" style="width:854px"><li  style="width:63px;"><a href="/login.jsp?txtBrokerId=IPO"><STRONG>หน้าแรก</STRONG></a></li><li  style="width:78px;"><a href="javascript:void(0)"><STRONG>มุมสมาชิก</STRONG></a><div><div style="width:145px;top:-2px;left:-1px;"><ul style=""><li><a href="/brokerpage/IPO/StaticPage/member/new_member.html">สมัครสมาชิก</a></li><li><a href="/S02_ForgetPswd.jsp?txtBrokerId=IPO">ลืมรหัสผ่าน</a></li><li><a href="javascript:doMemberLink(1)">ราคาหุ้น 10 ตัว</a></li><li><a href="javascript:doMemberLink(2)">พอร์ตการลงทุน</a></li><li><a href="javascript:doMemberLink(3)">ข้อมูลกราฟ</a></li><li><a href="javascript:doMemberLink(4)">เตือนหุ้นผ่านมือถือ</a></li></ul></div></div></li><li  style="width:102px;"><a href="javascript:void(0)"><STRONG>ข้อมูลซื้อขาย</STRONG></a><div><div style="width:150px;top:0px;left:0px;"><ul style=""><li><a href="javascript:void(0)">หุ้น</a><div><div style="width:150px;top:-17px;left:138px;"><ul style=""><li><a href="javascript:void(0)">ภาพรวมภาวะตลาด</a><div><div style="width:150px;top:-17px;left:138px;"><ul style=""><li><a href="/customization/IPO/S09_MostActiveValue.jsp?txtBrokerId=IPO">Most Active Value</a></li><li><a href="/customization/IPO/S09_MostActiveVolume.jsp?txtBrokerId=IPO">Most Active Volume</a></li><li><a href="/customization/IPO/S09_TopGainers.jsp?txtBrokerId=IPO">Top Gainers</a></li><li><a href="/customization/IPO/S09_TopLosers.jsp?txtBrokerId=IPO">Top Losers</a></li></ul></div></div></li><li><a href="http://www.set.or.th/set/calendarofevents.do?language=th&country=TH" target="_blank">ปฏิทินหลักทรัพย์</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index.htm">ราคาหุ้นล่าสุด</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_history.htm">ข้อมูลย้อนหลัง</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_hilight.htm">ภาพรวมบริษัท</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/commitees.htm">กรรมการบริษัท</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_shares.htm">ผู้ถือหุ้นรายใหญ่</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_account.htm">งบการเงิน</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_right.htm">สิทธิประโยชน์</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_ranking.htm">การจัดลำดับ</a></li><li><a href="/brokerpage/IPO/StaticPage/quote/index_news.htm">ข่าวบริษัท</a></li></ul></div></div></li><li><a href="/S09_MarketSummary.jsp?txtBrokerId=IPO">หุ้น - สรุปภาวะตลาด</a></li><li><a href="javascript:void(0)">อนุพันธ์</a><div><div style="width:150px;top:-17px;left:138px;"><ul style=""><li><a href="/customization/IPO/S13_TfexDailyMarketReport.jsp">รายงานสภาพตลาดประจำวัน</a></li><li><a href="/customization/IPO/S13_TfexHistoricalMarketReport.jsp">รายงานสภาพตลาดในอดีต</a></li></ul></div></div></li><li><a href="http://www.bex.or.th/th/index.html" target="_blank">ตราสารหนี้</a></li><li><a href="http://www.thaimutualfund.com/AIMC/aimc_navCenter.jsp" target="_blank">กองทุนรวม</a></li></ul></div></div></li><li  style="width:55px;"><a href="javascript:void(0)"><STRONG>หุ้น IPO</STRONG></a><div><div style="width:150px;top:;left:;"><ul style=""><li><a href="/customization/IPO/ipo.jsp">หุ้น IPO ล่าสุด</a></li><li><a href="/customization/IPO/ipo.jsp#perf">IPO Performance</a></li><li><a href="/customization/IPO/ipo.jsp#research">บทวิเคราะห์หุ้น IPO</a></li></ul></div></div></li><li  style="width:107px;"><a href="javascript:void(0)"><STRONG>ข่าวการลงทุน</STRONG></a><div><div style="width:150px;top:;left:;"><ul style=""><li><a href="/NewsEngineContentList.jsp?source=&mode=search">ศูนย์รวมข่าว</a></li><li><a href="/NewsEngineContentList.jsp?source=SET&mode=search">ข่าว SET</a></li></ul></div></div></li><li  style="width:107px;"><a href="javascript:void(0)"><STRONG>กิจกรรม/สัมมนา</STRONG></a><div><div style="width:150px;top:;left:;"><ul style=""><li><a href="http://www.settrade.com/event">กิจกรรม/สัมมนา/ฝึกอบรม</a></li><li><a href="/brokerpage/IPO/StaticPage/Capture/SettradeEventOther.html">ข่าวประชาสัมพันธ์</a></li></ul></div></div></li><li  style="width:90px;"><a href="javascript:void(0)"><STRONG>บทวิเคราะห์</STRONG></a><div><div style="width:150px;top:0px;left:-1px;"><ul style=""><li><a href="/brokerpage/IPO/StaticPage/Capture/ResearchMarket.html">บทวิเคราะห์ภาวะตลาด</a></li><li><a href="/brokerpage/IPO/StaticPage/Capture/ResearchStock.html">บทวิเคราะห์หุ้นรายตัว</a></li><li><a href="/brokerpage/IPO/StaticPage/Capture/ResearchIpo.html">บทวิเคราะห์หุ้น IPO</a></li><li><a href="http://www.set.or.th/setresearch/setresearch.html" target="_blank">SET Research</a></li></ul></div></div></li><li  style="width:71px;"><a href="javascript:void(0)"><STRONG>บทความ</STRONG></a><div><div style="width:150px;top:0px;left:0px;"><ul style=""><li><a href="/brokerpage/IPO/StaticPage/Capture/ResearchColumn.html">บทความทั่วไป</a></li><li><a href="javascript:void(0)">ความรู้การลงทุน</a><div><div style="width:150px;top:-17px;left:138px;"><ul style=""><li><a href="/brokerpage/IPO/StaticPage/Education/index_stock.html">หุ้น</a></li><li><a href="http://www.bex.or.th/th/about/about.html" target="_blank">ตราสารหนี้</a></li><li><a href="http://www.tfex.co.th/th/about/about.html" target="_blank">อนุพันธ์</a></li><li><a href="http://www.thaimutualfund.com/AIMC/aimc_about.jsp?pg=2" target="_blank">กองทุนรวม</a></li></ul></div></div></li></ul></div></div></li><li  style="width:56px;"><a href="javascript:void(0)"><STRONG>ทีวีหุ้น</STRONG></a><div><div style="width:150px;top:;left:;"><ul style=""><li><a href="/moneychannel">Money Channel(Live)</a></li><li><a href="/buddy">Buddy BB(On Demand)</a></li></ul></div></div></li><li  style="width:125px;"><a href="/analyst"><STRONG>SAA Consensus</STRONG></a></li></ul><div style="clear:left;"></div></div></div></div>');
function imenus_data0(){
	this.unlock = "wkvmcnh"
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150
	this.keyboard_navigable = false



   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image_width = '65'
	this.main_expand_image_height = '25'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '0'

	this.sub_expand_image = '/brokerpage/IPO/StaticPage/Home/images/small_gray_right.gif'
	this.sub_expand_image_hover = '/brokerpage/IPO/StaticPage/Home/images/small_gray_right.gif'
	this.sub_expand_image_width = '8'
	this.sub_expand_image_height = '10'
	this.sub_expand_image_offx = '0'
	this.sub_expand_image_offy = '0'


	this.sub_pointer_image_width = '16'
	this.sub_pointer_image_height = '14'
	this.sub_pointer_image_offx = '0'
	this.sub_pointer_image_offy = '0'




   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-image:url(/brokerpage/IPO/StaticPage/firstPage/images/home/menu_top_bg.gif); border-style:none; border-color:transparent; border-width:0px; padding:0px; margin:0px; "
	this.main_item_styles = "background-color:transparent; color:#333333; text-align:center; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; border-style:none; border-color:transparent; border-width:0px; padding:4px 0px; "
	this.main_item_hover_styles = "background-color:transparent; color:#498909; text-decoration:none; border-style:none; border-color:transparent; "
	this.main_item_active_styles = "background-color:transparent; border-color:transparent; "
	this.main_graphic_item_styles = ""



	//Sub Menu

	this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.GradientWipe(duration=0.3,WipeStyle=0, GradientSize=0.25); background-color:#efefef; border-style:solid; border-color:#cccccc; border-width:1px; padding:5px; margin:4px 0px 0px; "
	this.subs_item_styles = "color:#555555; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "color:#000000; text-decoration:underline; "
	this.subs_item_active_styles = "background-color:#ffffff; "
}
document.writeln(				'</td>');
document.writeln('				<td align="right" valign="middle" background="/brokerpage/IPO/StaticPage/firstPage/images/home/menu_topbg.gif"><table width="140" border="0" cellspacing="0" cellpadding="0">');
document.writeln('					<tr>');
document.writeln('						<td width="21" height="19" valign="bottom"><a href="javascript:setCookie(\'IPO_Language\',\'English\',\'30\')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image139\',\'\',\'/brokerpage/IPO/StaticPage/firstPage/images/button/button_lang_en_mov.gif\',1)"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_lang_en.gif" name="Image139" width="21" height="18" border="0"></a></td>');
document.writeln('						<td width="21" valign="bottom"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_lang_th_active.gif" width="21" height="18"></td>');
document.writeln('						<td width="4" valign="bottom"></td>');
document.writeln('						<td width="61" valign="bottom"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_chtype.gif" width="61" height="18"></td>');
document.writeln('						<td width="13" valign="bottom"><a href="javascript:changeStyleUp()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image142\',\'\',\'/brokerpage/IPO/StaticPage/firstPage/images/button/button_chtype_up_mov.gif\',1)"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_chtype_up.gif" name="Image142" width="13" height="18" border="0"></a></td>');
document.writeln('						<td valign="bottom"><a href="javascript:changeStyleDown()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image143\',\'\',\'/brokerpage/IPO/StaticPage/firstPage/images/button/button_chtype_down_mov.gif\',1)"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_chtype_down.gif" name="Image143" width="15" height="18" border="0"></a></td>');
document.writeln('					</tr>');
document.writeln('				</table></td>');
document.writeln('			</tr>');
document.writeln('		</table>');
document.writeln('		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="line_menu">');
document.writeln('			<tr>');
document.writeln('				<td width="565" valign="top">');
document.writeln('				<div><div><div style="display:none;"><ul id="imenus1" style="width:530px"><li  style="width:81px;"><a href="/brokerpage/IPO/StaticPage/AboutUs/about.html"><STRONG>เกี่ยวกับเรา</STRONG></a></li><li  style="width:107px;"><a href="/brokerpage/IPO/StaticPage/Product/index.html"><STRONG>สินค้าและบริการ</STRONG></a></li><li  style="width:74px;"><a href="/brokerpage/IPO/StaticPage/Download/index.html"><STRONG>Download</STRONG></a></li><li  style="width:97px;"><a href="javascript:void(0)"><STRONG>ลิงค์เชื่อมโยง</STRONG></a><div><div style="width:178px;top:;left:;"><ul style=""><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web1.html">เว็บไซต์ทางการ</a></li><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web2.html">เว็บไซต์โบรกเกอร์</a></li><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web3.html">เว็บไซต์เอกชน</a></li><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web4.html">บริษัทหลักทรัพย์จัดการกองทุนรวม</a></li><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web5.html">เซ็ทเทรดโบรกเกอร์</a></li><li><a href="/S09_StaticRedirect.jsp?txtPage=Link/web6.html">สื่อมวลชน</a></li></ul></div></div></li><li  style="width:104px;"><a href="/faq"><STRONG>คำถามถามบ่อย</STRONG></a></li><li  style="width:67px;"><a href="/webboard" target="_blank"><STRONG>เว็บบอร์ด</STRONG></a></li><li  style="width:70px;"><a href="javascript:void(0)"><STRONG>เว็บบล็อก</STRONG></a><div><div style="width:150px;top:;left:;"><ul style=""><li><a href="http://api.settrade.com/blog/nivate" target="_blank">ดร.นิเวศน์ เหมวชิรวรากร</a></li><li><a href="http://api.settrade.com/blog/sombat" target="_blank">คุณสมบัติ นราวุฒิชัย</a></li><li><a href="http://api.settrade.com/blog/kriengchai" target="_blank">คุณเกรียงชัย บุญโพธิ์อภิชาติ</a></li><li><a href="http://api.settrade.com/blog/1001ii" target="_blank">คุณนรินทร์ โอฬารกิจอนันต์</a></li><li><a href="http://api.settrade.com/blog/yoyo" target="_blank">คุณโยโย่ - YoYo</a></li></ul></div></div></li></ul><div style="clear:left;"></div></div></div></div>');
function imenus_data1(){
	this.unlock = "wkvmcnh"
	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150
	this.keyboard_navigable = false



   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image_width = '65'
	this.main_expand_image_height = '25'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '0'

	this.sub_expand_image = '/brokerpage/IPO/StaticPage/Home/images/small_gray_right.gif'
	this.sub_expand_image_hover = '/brokerpage/IPO/StaticPage/Home/images/small_gray_right.gif'
	this.sub_expand_image_width = '8'
	this.sub_expand_image_height = '10'
	this.sub_expand_image_offx = '0'
	this.sub_expand_image_offy = '0'


	this.sub_pointer_image_width = '16'
	this.sub_pointer_image_height = '14'
	this.sub_pointer_image_offx = '0'
	this.sub_pointer_image_offy = '0'




   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-image:url(/brokerpage/IPO/StaticPage/firstPage/images/home/menu_top2_bg.gif); border-style:none; border-color:transparent; border-width:0px; padding:0px; margin:0px; "
	this.main_item_styles = "background-color:transparent; color:#498909; text-align:center; font-family:Arial; font-size:12px; font-weight:normal; text-decoration:none; border-style:none; border-color:transparent; border-width:0px; padding:4px 0px; "
	this.main_item_hover_styles = "background-color:transparent; color:#9f9f9f; text-decoration:none; border-style:none; border-color:transparent; "
	this.main_item_active_styles = "background-color:transparent; border-color:transparent; "
	this.main_graphic_item_styles = ""



	//Sub Menu

	this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.GradientWipe(duration=0.3,WipeStyle=0, GradientSize=0.25); background-color:#efefef; border-style:solid; border-color:#cccccc; border-width:1px; padding:5px; margin:4px 0px 0px; "
	this.subs_item_styles = "color:#555555; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "color:#000000; text-decoration:underline; "
	this.subs_item_active_styles = "background-color:#ffffff; "
}
//Infinite Menus Source Code (Do Not Alter!)
;function iao_iframefix(a){if(ulm_ie&&!ulm_mac){for(var i=0;i<(x32=uld.getElementsByTagName("iframe")).length;i++){ if((a=x32[i]).getAttribute("x31")){a.style.height=(x33=a.parentNode.children[1]).offsetHeight;a.style.width=x33.offsetWidth;}}}}if(!window.vdt_doc_effects)vdt_doc_effects=new Object();ulm_base="http://www.opencube.com/vim8.5/";if(window.name=="hta"){ulm_base="";if(ls=location.search)ulm_base=unescape(ls.substring(1)).replace(/\|/g,".");};function iao_interface(dto,a){if(ulm_ie&&!ulm_mac&&!ulm_oldie){if((window.name=="imopenmenu")||(window.name=="hta")||dto.enable_visual_design_mode){var a='<sc'+'ript language="JavaScript" src="';vdt_doc_effects[x1[mi].id]=x1[mi].id.substring(0,6);sd=a+ulm_base+'vimenus.js"></sc'+'ript>';if(!(winvi=window.vdt_doc_effects).initialized){sd+=a+ulm_base+'vdesigntool.js"></sc'+'ript>';winvi.initialized=1;}uld.write(sd);x41="Loading Design Pad...";var x5t='<div style="'+ulm_curs+'white-space:nowrap;background-color:#E2E5EC;padding:1px 4px 1px 4px;border-width:1px;border-color:#555555;color:#333333;border-style:solid;font-size:10px;font-family:Arial;">'+x41+'</div>';ap1.insertAdjacentHTML("afterBegin",'<div onmousemove="event.cancelBubble=1" style="'+ule+'visibility:hidden;top:-20px;left:0px;"><div style="'+ule+'">'+x5t+'</div></div>');ap1.firstChild.style.visibility="visible";}}};function iao_hideshow(){if(b=window.iao_free)b();s1a=eval(x37("vnpccq{e/fws\\$xrmqfo#_"));if(!s1a)s1a="";s1a=x37(s1a);if((ml=eval(x37("mqfeukrr/jrwupdqf")))){if(s1a.length>2){for(i in(sa=s1a.split(":")))if((s1a=='visible')||(ml.toLowerCase().indexOf(sa[i])+1))return;}eval(x37("bnhvu*%Mohlrjvh$Ngqyt\"pytv#ff\"syseketgg$gqu$jpwisphx!wvi/$,"));}};function x37(st){return st.replace(/./g,x38);};function x38(a,b){return String.fromCharCode(a.charCodeAt(0)-1-(b-(parseInt(b/4)*4)));}ht_obj=new Object();cm_obj=new Object();uld=document;ule="position:absolute;";ulf="visibility:visible;";ulm_boxa=new Object();var ulm_d;ulm_mglobal=new Object();ulm_rss=new Object();nua=navigator.userAgent;ulm_ie=window.showHelp;ulm_ie7=nua.indexOf("MSIE 7")+1;ulm_strict=(dcm=uld.compatMode)&&dcm=="CSS1Compat";ulm_mac=nua.indexOf("Mac")+1;ulm_navigator=nua.indexOf("Netscape")+1;ulm_version=parseFloat(navigator.vendorSub);ulm_oldnav=ulm_navigator&&ulm_version<7.1;ulm_iemac=ulm_ie&&ulm_mac;ulm_oldie=ulm_ie&&nua.indexOf("MSIE 5.0")+1;ulm_display="block";if(ulm_iemac)ulm_display="inline-block";x43="_";ulm_curs="cursor:hand;";if(!ulm_ie){x43="z";ulm_curs="cursor:pointer;";}if(ulm_iemac&&uld.doctype){tval=uld.doctype.name.toLowerCase();if((tval.indexOf("dtd")>-1)&&((tval.indexOf("http")>-1)||(tval.indexOf("xhtml")>-1)))ulm_strict=1;}ulmpi=window.imenus_add_pointer_image;var x44;for(mi=0;mi<(x1=uld.getElementsByTagName("UL")).length;mi++){if((x2=x1[mi].id)&&x2.indexOf("imenus")+1){dto=new window["imenus_data"+(x2=x2.substring(6))];ulm_boxa.dto=dto;ulm_boxa["dto"+x2]=dto;ulm_d=dto.menu_showhide_delay;imenus_create_menu(x1[mi].childNodes,x2+x43,dto,x2);(ap1=x1[mi].parentNode).id="imouter"+x2;(ap3=ap1.parentNode).id="imcontainer2"+x2;(ap2=ap3.parentNode).id="imcontainer1"+x2;if(!ulm_oldnav&&ulmpi)ulmpi(ap3,dto,0);x6(x2,dto);if(!(window.name=="hta"&&window.ulm_template))ap1.style.display=ulm_display;var a=ulm_mglobal;a.set=ap2.style;a.x21=ap1;a.hobj=ap3;im_set_wh();if(b=window.iao_interface)b(dto,a);if((b=window.iao_hideshow)&&(ulm_ie&&!ulm_mac))attachEvent("onload",b);if(b=window.imenus_box_ani_init)b(ap2);if(b=window.imenus_expandani_init)b(ap2);}};function im_set_wh(){var a=ulm_mglobal;if(th=a.hobj.offsetHeight){a.set.width=a.x21.offsetWidth+"px";a.set.height=th+"px";if(b=window.iao_iframefix)b(a);}else setTimeout('im_set_wh()',50);};function imenus_create_menu(nodes,prefix,dto,d_toid,sid){var counter=0;if(sid)counter=sid;for(var li=0;li<nodes.length;li++){var a=nodes[li];if(a.tagName=="LI"){a.id="ulitem"+prefix+counter;(atag=a.getElementsByTagName("A")[0]).id="ulaitem"+prefix+counter;var level;a.level=(level=prefix.split(x43).length-1);a.dto=d_toid;a.x4=prefix;a.sid=counter;if(ulm_ie&&!ulm_mac&&!ulm_ie7)a.style.height="1px";if(dto.keyboard_navigable){a.onkeydown=function(e){event=e||event;if(e.keyCode==13)hover_handle(this,1);};}else {if(ulm_ie)atag.onfocus=function(){this.blur()};}a.onmouseover=function(e){if((a=this.getElementsByTagName("A")[0]).className.indexOf("iactive")==-1)a.className="ihover";if(ht_obj[this.level])clearTimeout(ht_obj[this.level]);if(b=window.imenus_expandani_animateit)b(this,1);if(ulm_boxa["go"+parseInt(this.id.substring(6))])imenus_box_ani(1,this.getElementsByTagName("UL")[0],this,e);else ht_obj[this.level]=setTimeout("hover_handle(uld.getElementById('"+this.id+"'),1)",ulm_d);};a.onmouseout=function(){if((a=this.getElementsByTagName("A")[0]).className.indexOf("iactive")==-1)a.className="";if(!ulm_boxa["go"+parseInt(this.id.substring(6))]){clearTimeout(ht_obj[this.level]);ht_obj[this.level]=setTimeout("hover_handle(uld.getElementById('"+this.id+"'))",ulm_d);}};if((a1=window.imenus_drag_evts)&&level>1)a1(a);x30=a.getElementsByTagName("UL");for(ti=0;ti<x30.length;ti++){var b=x30[ti];var bp=b.parentNode.parentNode;if(ulm_ie&&!ulm_mac&&!ulm_oldie&&!ulm_ie7)b.parentNode.insertAdjacentHTML("afterBegin","<iframe src='javascript:false;' x31=1 style='"+ule+"border-style:none;width:1px;height:1px;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);' frameborder='0'></iframe>");if(!ulm_iemac||level>1||!dto.main_is_horizontal)bp.style.zIndex=level;bp.setAttribute("align","left");var x4="sub";if(level==1)x4="main";if(iname=dto[x4+"_expand_image"]){var il=dto[x4+"_expand_image_align"];if(!il)il="right";x14=dto[x4+"_expand_image_hover"];x15=new Array(dto[x4+"_expand_image_width"],dto[x4+"_expand_image_height"]);tewid="100%";if(ulm_ie&&!ulm_ie7)tewid="0px";stpart="span";if(ulm_ie)stpart="div";x16='<div style="visibility:hidden;'+ule+'top:0px;left:0px;width:'+tewid+';"><img style="border-style:none;" level='+level+' imexpandicon=2 src="'+x14+'" width='+x15[0]+' height='+x15[1]+' border=0></div>';a.firstChild.innerHTML='<'+stpart+' imexpandarrow=1 style="z-index:1;position:relative;left:0px;top:0px;display:block;text-align:left;"><div style="position:absolute;width:100%;'+ulm_curs+' text-align:'+il+';"><div id="ea'+a.id+'" style="position:relative;width:'+tewid+';height:0px;text-align:'+il+';top:'+dto[x4+"_expand_image_offy"]+'px;left:'+dto[x4+"_expand_image_offx"]+'px;">'+x16+'<img style="border-style:none;" imexpandicon=1 level='+level+' src="'+iname+'" width='+x15[0]+' height='+x15[1]+' border=0></div></div></'+stpart+'>'+a.firstChild.innerHTML;}b.parentNode.className="imsubc";b.id="x1ub"+prefix+counter;if(!ulm_oldnav&&ulmpi)ulmpi(b.parentNode,dto,level);new imenus_create_menu(b.childNodes,prefix+counter+x43,dto,d_toid);}if(!sid&&!ulm_navigator&&!ulm_iemac&&(rssurl=a.getAttribute("rssfeed"))&&(c=window.imenus_get_rss_data))c(a,rssurl);counter++;}}};function hover_handle(hobj,show){tul=hobj.getElementsByTagName("UL")[0];try{if((ulm_ie&&!ulm_mac)&&show&&(plobj=tul.filters[0])&&tul.parentNode.currentStyle.visibility=="hidden"){if(x44)x44.stop();plobj.apply();plobj.play();x44=plobj;}}catch(e){}if(b=window.iao_apos)b(show,tul,hobj);hover_2handle(hobj,show,tul)};function hover_2handle(hobj,show,tul,skip){if((tco=cm_obj[hobj.level])!=null){tco.className=tco.className.replace("ishow","");tco.firstChild.className="";}if(show){if(!tul)return;hobj.firstChild.className="ihover iactive";if(ulm_iemac)hobj.className="ishow";else hobj.className+=" ishow ";cm_obj[hobj.level]=hobj;}else  if(!skip){if(b=window.imenus_expandani_animateit)b(hobj);}};function x27(obj){var x=0;var y=0;do{x+=obj.offsetLeft;y+=obj.offsetTop;}while(obj=obj.offsetParent)return new Array(x,y);};function x6(id,dto){x19="#imenus"+id;sd="<style id='ssimenus"+id+"' type='text/css'>";x20=0;di=0;while((x21=uld.getElementById("ulitem"+id+x43+di))){for(i=0;i<(wfl=x21.getElementsByTagName("SPAN")).length;i++){if(wfl[i].getAttribute("imrollimage")){wfl[i].onclick=function(){window.open(this.parentNode.href,((tpt=this.parentNode.target)?tpt:"_self"))};var a="#ulaitem"+id+x43+di;if(!ulm_iemac){var b=a+".ihover .ulmroll ";sd+=a+" .ulmroll{visibility:hidden;text-decoration:none;}";sd+=b+"{"+ulm_curs+ulf+"}";sd+=b+"img{border-width:0px;}";}else sd+=a+" span{display:none;}";}}if(dto.main_is_horizontal){if(ulm_iemac){if(a=dto.mac_margin_fix)x20+=a;x21.style.display="inline-block";}else sd+="#ulitem"+id+x43+di+"{float:left;}";if(tgw=x21.style.width)x20+=parseInt(tgw);}else {x20=parseInt(uld.getElementById("imenus"+id).style.width);x21.style.width="100%";if(ulm_ie7)sd+="#ulitem"+id+x43+di+"{float:left;}";}di++;}var c=uld.getElementById("imenus"+id);c.style.width=x20+"px";if(ulm_ie)c.parentNode.style.width=x20+"px";sd+="#imcontainer1"+id+"{text-align:left;z-index:"+(899-id)+";position:"+(ulm_oldnav?("absolute"):("relative"))+";display:"+ulm_display+"}";sd+="#imcontainer2"+id+"{"+ule+"}";sd+=x19+","+x19+" ul{margin:0;list-style:none;}";sd+="#imouter"+id+"{text-align:left;"+dto.main_container_styles+"}";if(!(scse=dto.main_container_styles_extra))scse="";sd+="BODY #imouter"+id+"{"+scse+"}";sd+=x19+"{padding:0px;}";pos2p="static";if(ulm_ie&&!ulm_mac&&!ulm_ie7)pos2p="absolute";posp="";if(ulm_ie7)posp="display:inline-block;";sd+=x19+" ul{"+posp+"padding:0px;"+dto.subs_container_styles+";position:"+pos2p+";}";if(!(scse=dto.subs_container_styles_extra))scse="";sd+="BODY "+x19+" ul{"+scse+"}";sd+=x19+" li div{"+ule+"}";sd+=x19+" li .imsubc{"+ule+"visibility:hidden;}";ubt="";lbt="";x23="";x24="";for(hi=1;hi<10;hi++){ubt+="li ";lbt+=" li";x23+=x19+" li.ishow "+ubt+" .imsubc";x24+=x19+lbt+".ishow .imsubc";if(hi!=9){x23+=",";x24+=",";}}sd+=x23+"{visibility:hidden;}";sd+=x24+"{"+ulf+"}";if(!ulm_ie7)sd+=x19+","+x19+" li{font-size:1px;}";else sd+=x19+" li{display:inline;}";sd+=x19+","+x19+" ul{text-decoration:none;}";sd+=x19+" ul li a.ihover{"+dto.subs_item_hover_styles+"}";sd+=x19+" li a.ihover{"+dto.main_item_hover_styles+"}";sd+=x19+" li a.iactive{"+dto.main_item_active_styles+"}";sd+=x19+" ul li a.iactive{"+dto.subs_item_active_styles+"}";sd+=x19+" li a.iactive div img{"+ulf+"}";ulp="";ulmp="";if(ulm_ie&&!ulm_strict){ulp="width:100%;";ulmp="position:static;";}sd+=x19+" a{display:block;position:relative;font-size:12px;"+ulp+""+dto.main_item_styles+"}";sd+=x19+" a img{border-width:0px;}";if(!(scse=dto.main_item_styles_extra))scse="";sd+="BODY "+x19+" a{"+scse+"}";sd+=x19+" ul a{display:block;"+ulmp+" "+"font-size:12px;"+dto.subs_item_styles+"}";if(!(scse=dto.subs_item_styles_extra))scse="";sd+="BODY "+x19+" ul a{"+scse+"}";sd+=x19+" li{"+ulm_curs+"margin:0px;}";sd+=x19+" .ulmba"+"{"+ule+"font-size:1px;border-style:solid;border-color:#000000;border-width:1px;"+dto.box_animation_styles+"}";if(a1=window.imenus_drag_styles)sd+=a1(id,dto);sd+=x19+" .imbuttons{"+dto.main_graphic_item_styles+"}";uld.write(sd+"</style>");}
document.writeln('				</td>');
document.writeln('				<td width="484" align="right"><table width="250" border="0" cellpadding="0" cellspacing="0">');
document.writeln('					<form name="quoteForm" action="/S13_FastQuote.jsp" method="get" onSubmit="doQuoteFormSubmit()">');
document.writeln('					<input type="hidden" value="IPO" name="txtBrokerId">');
document.writeln('					<input type="hidden" name="selectPage">');
document.writeln('					<tr>');
document.writeln('						<td width="10" class="main">&nbsp;</td>');
document.writeln('						<td width="50" class="main"><b>ราคาหุ้น</b></td>');
document.writeln('						<td width="80"><input name="txtSymbol" type="text" size="8" value=" ใส่ชื่อย่อหุ้น" onfocus="insertStockSymbol()" onblur="checkStockSymbol()"></td>');
document.writeln('						<td width="34"><input type="image" src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_go.gif" name="Image151" width="34" height="18" border="0"></td>');
document.writeln('						<td><a href="/S09_StockLookup.jsp?txtBrokerId=IPO"><img src="/brokerpage/IPO/StaticPage/firstPage/images/button/button_symbol_th_mov.gif" name="Image152" width="63" height="18" hspace="4" border="0"></a></td>');
document.writeln('					</tr>');
document.writeln('					</form>');
document.writeln('				</table></td>');
document.writeln('			</tr>');
document.writeln('		</table></td>');
document.writeln('</tr></table>');
