/* 
	文件名: flashjs.js.
	功  能: flash使用的js方法.
	日  期: 2008-12-30.
	描  述: coolmouse.
*/ 

// 连接中断.
function LinkBreak(url)
{
	window.location.href=url; 
}

// 加入收藏夹 coolmouse 2009-6-22.
function AddFavorite()
{
	window.external.AddFavorite('http://www.7shan.com','奇山宠物乐园');
}

// 将文本添加到剪切板 coolmouse 2009-6-25.
function ClipBoard(content)
{
   clipboardData.setData('text',content); 
} 

/*
function getTime1()   
{   
	var Days = 1;   
	var exp = new Date();    
	exp.setTime(exp.getTime() + Days*24*60*60*1000);   
//	document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();   
	alert(exp.toGMTString())
	return exp.toGMTString();
}  
*/

// 获取当前时间 coolmouse 2009-7-8.
function GetTime()   
{  
	var now= new Date();
	var hour=now.getHours();
	var minute=now.getMinutes();
	var second=now.getSeconds();
	
	var sHour = hour, sMinute = minute, sSecond =second;
	if(hour < 10)
		sHour= "0"+hour;
	if(sMinute < 10)
		sMinute= "0"+minute;
	if(sSecond < 10)
		sSecond= "0"+second;
	var str = sHour+":"+sMinute+":"+sSecond;
	return str;
}
// 获取当前日期 coolmouse 2009-7-8.
function GetDate()   
{  
	var now= new Date();
	var year=now.getYear();
	var month=now.getMonth()+1;
	var day=now.getDate();

	var str = year+":"+month+":"+day;
	return str;
}

// 获取当前的url coolmouse 2009-10-9.
function GetUrl()   
{  
	return window.location.href;
}
