function cDiv(id,classname,content) { var dt = document.createElement("div"); dt.id = id; dt.setAttribute("align","center"); dt.className = classname; dt.innerHTML = content; document.body.appendChild(dt); } function survey() { var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = '/css/survey.css'; cssNode.media = 'screen'; headID.appendChild(cssNode); // open survey box cDiv('fs_overlay','fs_overlay',''); // open survey box var content=""; content+="
[Close Window]
แบบสำรวจความพึงพอใจเว็บไซต์ www.sourcecode.in.th
"; cDiv('fs_surveyWrapper','fs_surveyWrapper',content); } function close_survey() { document.getElementById('fs_surveyWrapper').style.display='none'; document.getElementById('fs_overlay').style.display='none'; } function _gsc(b,s,t){ if (!b || b=="" || !s || s=="" || !t || t=="") return false; var i1,i2,i3,c="-"; i1=b.indexOf(s); if (i1 < 0) return false; i1 += s.length; i2=b.indexOf(t,i1); if (i2 < 0) i2=b.length; return b.substring(i1,i2); } var _cookie = document.cookie; var check_survey = _gsc(_cookie,"submit_truehits_survey=",';'); if(check_survey != 1){ survey(); var _exp2=" expires="+ (new Date((new Date()).getTime()+43200000)).toGMTString() +";"; document.cookie="submit_truehits_survey=1; path=/; "+_exp2+""; }