<script type="application/javascript">
function getYClientID() {
var match = document.cookie.match('(?:^|;)\\s*_ym_uid=([^;]*)');
return (match) ? decodeURIComponent(match[1]) : false;
}
function getGoogleClientID()
{
var match = document.cookie.match('(?:^|;)\\s*_ga=([^;]*)');
var raw = (match) ? decodeURIComponent(match[1]) : null;
if (raw)
{
match = raw.match(/(\d+\.\d+)$/);
}
var gacid = (match) ? match[1] : null;
if (gacid)
{
return gacid;
}
}
document.addEventListener('DOMContentLoaded', function(){
document.getElementById('cid').value=getGoogleClientID();
document.getElementById('ycid').value=getYClientID();
});