function faq(answer,faqNo){
	faqObj = document.getElementById('con_' + answer);

	if(faqObj.style.display == "block"){
		faqObj.style.display = "none";
	} else {
		faqObj.style.display = "block";
		goCount(faqNo, 'viewCount');
	}
}

function goQnAForm(){
    window.open("http://erms.samsungelectronics.com/customer/form/formmail/common/common_new_2.jsp?SITE_ID=107&PROD_ID=79", "", "width=590,height=640,scrollbars=yes");
}

function goContactus(){
	var form = document.getElementById("frm_act");
	form.action = urlRoot + "/footer/contact-us.do";		
	form.submit();	
}

function goSearch(){
	var form = document.getElementById("frm_act");
	form.action = urlRoot + "/support/faq.do";		
	form.submit();	
}

function goSetting(type){
	if(type == 'category'){
		if( document.getElementById("phoneModel") ) {
			document.getElementById("phoneModel").selectedIndex = 0;
		}
		if( document.getElementById("searchText") ) {
			document.getElementById("searchText").value = "";
		}
	}else if(type == 'phone'){
		if( document.getElementById("categoryCd") ) {
			document.getElementById("categoryCd").selectedIndex = 0;
		}
		if( document.getElementById("searchText") ) {
			document.getElementById("searchText").value = "";
		}
	}else if(type == 'text'){
		if( document.getElementById("categoryCd") ) {
			document.getElementById("categoryCd").selectedIndex = 0;
		}
		if( document.getElementById("phoneModel") ) {
			document.getElementById("phoneModel").selectedIndex = 0;
		}
	}
	
	document.getElementById("searchType").value = type;
	goSearch();
}

function goCount(faqNo, type){
	if(type != 'viewCount' ){
		alert("Thank you for helping us improve the FAQ site.");
	}
	FaqMainDwrAction.updateGSupportFaq(faqNo,type);
}

function goPopup(imgFileName) {
	var option = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,left=10,top=10";
	FFWindowOpen("5","","sfcFaqImg","550","600",option);
	
	document.getElementById("imgFileName").value = imgFileName;
	frm_img.target = "sfcFaqImg";
	frm_img.submit();
	
}

function evalPointChange(listNo, point) {
	document.getElementById("hiddenPoint_" + listNo).value = point;
}

