﻿

/*#############################################################################
###############################################################################
##                                                                           ##
##                                                                           ##
##  PROGRAMMED BY IRAN-PHP.COM TEAMS,                                        ##
##  HTTP://WWW.IRAN-PHP.COM                                                  ##
##  Copyright (c) 2005-2007 IranPHP                                          ##
##  MODIFIED AT 2007.07.12                                                   ##
##  MC.INSTALLER VERSION 4.6                                                 ##
##                                                                           ##
##                                                                           ##
###############################################################################
##############################################################################*/



//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________
function BrowserCheck() {
	var b = navigator.appName;
	if (b == "Netscape") this.b = "NS";
	else if (b == "Microsoft Internet Explorer") this.b = "IE";
	else this.b = b;
	this.v = parseInt(navigator.appVersion);
	this.NS = (this.b == "NS" && this.v>=4);
	this.NS4 = (this.b == "NS" && this.v == 4);
	this.NS5 = (this.b == "NS" && this.v == 5);
	this.IE = (this.b == "IE" && this.v>=4);
	this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.IE5 || this.NS5) this.VER5 = true;
	if (this.IE4 || this.NS4) this.VER4 = true;
	this.OLD = (! this.VER5 && ! this.VER4) ? true : false;
	this.min = (this.NS||this.IE);
}
//is = new BrowserCheck();
//document.write("Browser="+is.b);







//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________
function HighLight(id){
	document.getElementById(id).style.filter = "alpha(opacity=70, finishopacity=70, style=2, startx=0, starty=0, finishx=140, finishy=270);";
}


//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________
function HighLight_OFF(id){
	document.getElementById(id).style.filter = "";
}





//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________Time2U
function Time2U(T){

var Y = T.substring(0, 4);Y++;Y--;
var m = T.substring(5, 7);m++;m--;
var d = T.substring(8, 10);d++;d--;

var H = T.substring(11, 13);H++;H--;
var i = T.substring(14, 16);i++;i--;
var s = T.substring(17, 19);s++;s--;

if( (m>03 || (m==3 && d>20)) && m<9)
	if(H>0) H--;
	else {H+=23; d--;}
	

switch( m ){
	case 1	:{ d+=0; break;}
	case 2	:{ d+=31; break;}
	case 3	:{ d+=59; break;}
	case 4	:{ d+=90; break;}
	case 5	:{ d+=120; break;}
	case 6	:{ d+=151; break;}
	case 7	:{ d+=181; break;}
	case 8	:{ d+=212; break;}
	case 9	:{ d+=243; break;}
	case 10	:{ d+=273; break;}
	case 11	:{ d+=304; break;}
	case 12	:{ d+=334; break;}
}

S = (Y - 1970) * 31554850  +  d*3600*24  +  H*3600  +  i*60  +  s  ;


return S;
}




//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________addZiro
function addZiro(Q){if(Q<10)return '0'+Q;else return Q;}









//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________IS_NUMERIC
function IS_NUMERIC(FLD){
	
	var val = FLD;
	val++;val--;
	
	if(FLD==val)return true;

	return false;	
}










//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>__________________SERVER_DIGITAL_CLOCK
function SERVER_DIGITAL_CLOCK(TIME){
	
	var H = TIME.substring(0,2);H++;H--;
	var i = TIME.substring(3,5);i++;i--;
	var s = TIME.substring(6,8);s++;s--;

	s++;
	if(s==60)
		{s=0;i++;}
	if(i==60)
		{i=0;H++;}
	if(H==24)
		{H=0;}
	
	TIME= addZiro(H) + ":" + addZiro(i) + ":" + addZiro(s) ;
	
	
	document.getElementById('SERVER_DIGITAL_CLOCK').innerText=TIME;
	
	setTimeout('SERVER_DIGITAL_CLOCK("'+TIME+'")',1000);

}
































