function AddFavorite()
    {
       window.external.addFavorite('http://www.sylr.gov.cn/','三亚市国土环境资源局');
    }
function SetHome()
    {
        iehomepage.style.behavior='url(#default#homepage)';
		if(!(iehomepage.isHomePage('http://www.sylr.gov.cn/')))
		iehomepage.setHomePage('http://www.sylr.gov.cn/');
    }
function attachXMenu(objid){
	var tds=objid.getElementsByTagName('td');
	for(var i=0;i<tds.length;i++){
		with(tds[i]){
			onmouseover=function(){
				with(this){
					filters[0].apply();
                    style.color='#fff';
					filters[0].play();
				}
			}
			onmouseout=function(){
				with(this){
					filters[0].apply();
					style.color='#0a5f04';
					filters[0].play();
				}
			}
		}
	}
}
function writeDate(){
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
year= tmpDate.getYear();
document.write(year);
document.write("年");
document.write(month);
document.write("月");
document.write(date);
document.write("日 ");
myArray=new Array(6);
myArray[0]="星期日"
myArray[1]="星期一"
myArray[2]="星期二"
myArray[3]="星期三"
myArray[4]="星期四"
myArray[5]="星期五"
myArray[6]="星期六"
weekday=tmpDate.getDay();
if (weekday==0 | weekday==6)
{
document.write(myArray[weekday])
}
else
{document.write(myArray[weekday])
};
}

function linkChangelinkSelect1()
{
	var linkObj = document.all("linkSelect1");
	if(linkObj==null)
		return;
	var link = linkObj.options[linkObj.selectedIndex].value;
	if(link!='0')
		window.open(link);
}
function linkChangelinkSelect2()
{
	var linkObj = document.all("linkSelect2");
	if(linkObj==null)
		return;
	var link = linkObj.options[linkObj.selectedIndex].value;
	if(link!='0')
		window.open(link);
}
function linkChangelinkSelect3()
{
	var linkObj = document.all("linkSelect3");
	if(linkObj==null)
		return;
	var link = linkObj.options[linkObj.selectedIndex].value;
	if(link!='0')
		window.open(link);
}
function linkChangelinkSelect4()
{
	var linkObj = document.all("linkSelect4");
	if(linkObj==null)
		return;
	var link = linkObj.options[linkObj.selectedIndex].value;
	if(link!='0')
		window.open(link);
}
