/******************************
* @copyright: FlashMove.com
* @title: FM Security
* @file: security.js
* @Created: 3/7/2009
* @Updated: 11/18/2009
* @description: verification, authentication purposes
******************************/
$date=new Date;var Securi={};Securi.startTime=$date.getTime();Securi.timeLimit=10;Securi.minutes=1000*Securi.timeLimit;function showCaptcha(){var isLoaded=fmSwfObject2('/flash/security/Captcha.swf',{width:150,height:50},{id:'FMExtInt',version:8,bgcolor:'5990BE'});if(isLoaded){document.write('<b><a href="javascript:;" onclick="resetCaptcha()">Regenerate</a></b>');}};function resetCaptcha(){var _date=new Date;var newTime=_date.getTime();if((newTime-Securi.startTime)<Securi.minutes){alert('You can only regenerate the verification code after '+Securi.timeLimit+' second'+(Securi.timeLimit==1?'':'s'));return;}asProxy('FMExtInt','resetCaptcha');Securi.startTime=newTime;};