function chk_isMail(ID,Description){var m_value=new String();m_value=document.all(ID).value;var m_at=m_value.indexOf("@")+1;var m_point=m_value.indexOf(".")+1;if(m_value.indexOf("'")>0){alert("Wrong e-mail address.");return false;}if(m_value.indexOf('"')>0){alert("Wrong e-mail address.");return false;}if(m_at<2){alert("Wrong e-mail address.");return false;}if(m_point<1){alert("Wrong e-mail address.");return false;}if(m_value.length==m_point){alert("Wrong e-mail address.");return false;}return true;};function Replace(string,oldstr,newstr){var m_new_string=new String("");var m_old_string=new String(string);var m_oldstr=new String(oldstr);var m_newstr=new String(newstr);var m_start_index=new Number(0);var m_end_index=new Number(m_old_string.indexOf(m_oldstr,m_start_index));if(m_end_index== -1)m_new_string=m_old_string;else{while(m_end_index!= -1){m_new_string+=m_old_string.substring(m_start_index,m_end_index)+m_newstr;m_start_index=m_end_index+m_oldstr.length;m_end_index=m_old_string.indexOf(m_oldstr,m_start_index);}m_new_string+=m_old_string.substr(m_start_index);}return m_new_string;};function AlertStr(string){alert(string);};function chk_isDate(ID,Description){var m_value=new String();m_value=document.all(ID).value;if(m_value==null){alert("\""+Description+"\"time is error!");return false;}Dilimeter='-';var tempy='';var tempm='';var tempd='';var tempArray;if(m_value.length<8&&m_value.length>10){alert("\""+Description+"\"time is error!");return false;}tempArray=m_value.split(Dilimeter);if(tempArray.length!=3){alert("\""+Description+"\"time is error!");return false;}if(tempArray[0].length==4){tempy=parseInt(tempArray[0],10);tempm=parseInt(tempArray[1],10);tempd=parseInt(tempArray[2],10);}else{tempy=parseInt(tempArray[2],10);tempm=parseInt(tempArray[0],10);tempd=parseInt(tempArray[1],10);}var tDateString=tempy+'/'+tempm+'/'+tempd+' 8:0:0';var tempDate=new Date(tDateString);if(isNaN(tempDate)){alert("\""+Description+"\"time is error!");return false;}if(((tempDate.getUTCFullYear()).toString()==tempy)&&(tempDate.getMonth()==parseInt(tempm)-1)&&(tempDate.getDate()==parseInt(tempd)))return true;else{alert("\""+Description+"\"time is error!");return false;}};function BasicAjax(Name,ID,Conditions){if(typeof(Name)=="undefined"){Name="";}if(typeof(Conditions)=="undefined"){Conditions="";}var ajax=new AJAXRequest;ajax.get("/ajax/"+Name+".asp"+Conditions,function(obj){document.getElementById(ID).innerHTML=obj.responseText;});};function body_info(Name,Conditions){if(typeof(Conditions)=="undefined"){Conditions="";}var ajax=new AJAXRequest;ajax.get("/ajax/"+Name+".asp"+Conditions,function(obj){document.getElementById("body_info").innerHTML="";var ua=navigator.userAgent.toLowerCase();if(ua.indexOf('msie')>=0&&ua.indexOf('opera')<0){setInnerHTML(document.getElementById('body_info'),obj.responseText);}else{set_innerHTML("body_info",obj.responseText,0);}});};function fontSizeChange(size){if(document.getElementById('fontSizeClass').value!=""){document.getElementById('fontSize'+document.getElementById('fontSizeClass').value).className="";}document.getElementById('fontSize'+size).className="textsize_selected";document.getElementById('fontSizeClass').value=size;document.getElementsByTagName('body')[0].style.fontSize=size;};function MostChange(type,Ul_ID,Image_ID,Asp_name){document.getElementById(Ul_ID).innerHTML='';document.getElementById(Image_ID).style.display='block';document.getElementById(Image_ID).src='/images/ajax-loader.gif';var ajax=new AJAXRequest;ajax.get("/ajax/"+Asp_name+".asp?type="+type,function(obj){document.getElementById(Image_ID).style.display='none';document.getElementById(Ul_ID).innerHTML=obj.responseText;});}