function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i
function ClearQuestions(obj)
{
if(!getmiden())
{
location.href="http://www.xifuquan.com/Login/Login.aspx?PostUrl=http://www.xifuquan.com/meili/quheitou/";
return false;
}
if(obj.value=="有“去黑头”相关的问题?我要提问...")
{
obj.value="";
}
}
function checkMaxInput(id,maxLen,alterid) {
if (document.getElementById(id).value.length > maxLen) // if too long.... trim it!
document.getElementById(id).value = document.getElementById(id).value.substring(0, maxLen);
// otherwise, update 'characters left' counter
else document.getElementById(alterid).innerHTML = maxLen - document.getElementById(id).value.length;
}
function Tw()
{
if(!getmiden())
{
location.href="http://www.xifuquan.com/Login/Login.aspx?PostUrl=http://www.xifuquan.com/meili/quheitou/";
return false;
}
var q=jQuery("#textarea1").val();
if(q=="有“去黑头”相关的问题?我要提问...")
{
alert("请输入提问内容");
return false;
}
if(q.length<4)
{
alert("提问内容不能少于4个字");
return false;
}
jQuery.ajax({
type:"post",
url:"/ajax.aspx",
data:"mode=AddQuestions&cid=10&q="+escape(q),
async:false,
success:function(data){
alert(data);
if(data=="提问成功,请耐心等待回复")
{
jQuery("#textarea1").val("");
}
},
cache:false
});
}
function getmiden()
{
var na = "";
jQuery.ajax({
type:"post",
url:"/ajax.aspx",
data:"mode=getMemberLogin",
async: false,
success:function(data){
na = data;
}
});
return na;
}