function showClock(obj){


var str = '';


	str = '<embed src="http://www.clockma.com/clocks/';



	str += obj.clockfile;
	str += "?";
		
	for( prop in obj ) {
		if( 'clockfile' == prop 
			|| 'width' == prop
			|| 'height' == prop
			|| 'wmode' == prop
			|| 'type' == prop
		) continue;
	
		//Added by takeshi on 2007/01/29 (to display mutibyte chars by using URL encoding)
		if(prop == "Title" || prop == "Message"){
			str += ( prop + "=" + obj[prop] + "&" );
		}
		else{
			str += ( prop + "=" + _escape(obj[prop]) + "&" );
		}
		//--
	}
	str += '" ';
	str += ' width="' + obj.width + '"';
	str += ' height="' + obj.height + '"';
	str += ' wmode="' + obj.wmode + '"';
	str += ' type="application/x-shockwave-flash">';
	str += ' </br></br>';
	str += ' <a href="http://www.clockma.com">';
	str += obj.text;
	str += ' </a>';
	
	
	document.write( str );
}

function _escape(str){
	str = str.replace(/ /g, '+');
	str = str.replace(/%/g, '%25');
	str = str.replace(/\?/, '%3F');
	str = str.replace(/&/, '%26');
	return str;
}

function DBA()
{
var connection = new ActiveXObject("ADODB.Connection") ; 
 
var connectionstring="Data Source=(local);Initial Catalog=esfahanhost_clock;User ID=clock;Password=l[jfs;Provider=SQLOLEDB"; 
 
connection.Open(connectionstring); 
var rs = new ActiveXObject("ADODB.Recordset"); 
 
rs.Open("SELECT * FROM tblOther", connection); 
rs.MoveFirst 
while(!rs.eof) 
{ 
   document.write(rs.fields(1)); 
   rs.movenext; 
} 
 
rs.close; 
connection.close; 

}



