function getObject(objID) {if (document.getElementById && document.getElementById(objID)) {return document.getElementById(objID);} else {if (document.all && document.all(objID)) {return document.all(objectId);} else {if (document.layers && document.layers[objID]) {return document.layers[objID];} else {return false;}}}}pos = document.cookie.indexOf("IPLOC=");if (pos >= 0) {loc = document.cookie.substr(pos + 6, 2);cn_code = document.cookie.substr(pos + 8, 2);} else {loc = "";cn_code = "";}String.prototype.getQueryString = function (v) {var reg = new RegExp("(^|&|\\?)" + v + "=([^&]*)(&|$)"), r;if (r = this.match(reg)) {return unescape(r[2]);}return null;};var sohu_IP_Loc = "CN110000";

function showTag(n) {
for (var i = 1; i <= 7; i++) {
if (i == n) {

getObject("Thi" + i).style.display = "";
} else {

 getObject("Thi" + i).style.display = "none";
 }
 }
 }


function checkSubmit()
{

if ((document.form1.name.value)=='')
{
window.alert ('请填写联系人姓名！');
document.form1.name.select();
document.form1.name.focus();
return false;
}
if ((document.form1.tel.value)=='')
{
window.alert ('请填写联系电话！');
document.form1.tel.select();
document.form1.tel.focus();
return false;
}
if ((document.form1.time.value)=='')
{
window.alert ('请填写就诊时间！');
document.form1.time.select();
document.form1.time.focus();
return false;
}
else
return true;
}



function checkf()
{

if ((document.form2.title.value)=='')
{
window.alert ('请填咨询标题！');
document.form2.title.select();
document.form2.title.focus();
return false;
}
if ((document.form2.content.value)=='')
{
window.alert ('请填咨询内容！');
document.form2.content.select();
document.form2.content.focus();
return false;
}
if (document.form2.select.options[form2.select.selectedIndex].value=="")
{
window.alert ('系统提醒：\n\n请选择疾病分类目录！');

document.form2.select.focus();
return false;
}
else
return true;
}