	
 var PDV_POLLRAND104621 = 0;

 var PDV_a104621 = "";
 var PDV_o104621 = "";
 var PDV_id104621 = 104621;
 var PDV_pt104621 = 0;
 var PDV_po104621 = 0;
 var PDV_s104621 = 4;
 var PDV_b104621 = 1;
 
 var PDV_server104621 = 'http://ipoll.ru';
 var PDV_html104621 = '<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form104621" id="PDI_form104621"><div class="pds-box"><div class="pds-box-outer"><div class="pds-box-inner"><div class="pds-box-top"><div class="pds-question"><div class="pds-question-outer"><div class="pds-question-inner"><div class="pds-question-top">Есть ли у вас собственных блог?</div></div></div></div><div class="pds-answer"><span id="pds-answer104621"></span>';
 

  PDV_html104621 += '</div><div class="pds-vote"><div class="pds-votebutton-outer"><input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="http://ipoll.ru/images/spacer.gif" onclick="PD_vote104621(0);"><a href="javascript:PD_vote104621(1);">&gt; Результаты</a><br><a href="http://www.skazkipro.com/code/NV320" target="_blank" style="display:inline;visibility:visible;">&gt; Подарки!</a><br></div></div></div></div></div></div></div>';  

 var AA104621=new Array();
 
		AA104621[0]='<input class="pds-radiobutton" type="radio" id="PDI_answer31174" value="31174" name="PDI_answer104621"><label for="PDI_answer31174">Да</label><br>';
				AA104621[1]='<input class="pds-radiobutton" type="radio" id="PDI_answer31175" value="31175" name="PDI_answer104621"><label for="PDI_answer31175">Пока нет, скоро будет</label><br>';
				AA104621[2]='<input class="pds-radiobutton" type="radio" id="PDI_answer31176" value="31176" name="PDI_answer104621"><label for="PDI_answer31176">Нет и не будет</label><br>';
				AA104621[3]='<input class="pds-radiobutton" type="radio" id="PDI_answer31177" value="31177" name="PDI_answer104621"><label for="PDI_answer31177">А что это такое?</label><br>';
		
function PDF_a104621()
{
  PDF_o104621();
  var r;
  if(PDV_pt104621 == 1) 
  {
    for(i=0; i < AA104621.length; i++)
    {
      r = document.getElementById(AA104621[i].substring(AA104621[i].indexOf('id=')+4, AA104621[i].indexOf('"', AA104621[i].indexOf('id=')+4)));
      if (r.type == "checkbox" && r.checked)
		  {
        PDV_a104621 = PDV_a104621 + r.value + ",";
      }
    }
    return PDV_a104621;
  }
  else
  {
    for(var i = 0; i < AA104621.length; i++)
    {
      r = document.getElementById(AA104621[i].substring(AA104621[i].indexOf('id=')+4, AA104621[i].indexOf('"', AA104621[i].indexOf('id=')+4)));
      if(r.checked)
      {
        return r.value + ",";
      }
  }
  r = document.getElementById("PDI_answerOther104621");
  if(r){if(r.checked){return r.value + ",";}else{return '';}}else{return "";}}}
  function  PDF_o104621(r){if(PDV_po104621 == 1){PDV_o104621 = document.getElementById("PDI_OtherText104621").value;}}
function PDI_checkOther104621()
{
	if(PDV_pt104621 == 0)
	{
		document.getElementById("PDI_answerOther104621").checked = true;
	}
}
function PD_vote104621(R)
{
	var randomnumber=Math.floor(Math.random()*11);
	if(R==1)
	{
		var s = document.createElement("SCRIPT");
		s.src = PDV_server104621 + "/vote.php?s="+ PDV_s104621 +"&vr=1&b="+ PDV_b104621 +"&p="+ PDV_id104621 +"&pt="+ PDV_pt104621 +"&cookie=" + PD_ck104621 + "&rdm="+  randomnumber + "&url=" + escape(location.href);
  var h = document.getElementsByTagName("head").item(0);
  h.appendChild(s);
  }
  else
  {
  if(PDV_b104621> 0)
		{
			Set_Cookie104621('PD_poll_104621', 'true', 30, '/', '', '' );
		}
		PDV_a104621 = ''; 
		PDV_a104621 = PDF_a104621(document.getElementById("PDI_form104621"));
		if(PDV_a104621.length == 0 && PDV_o104621.length == 0)
		{
			alert("Пожалуйста, выберите один из пунктов!")
		}
		else
		{
			var s = document.createElement("SCRIPT");
			s.src = PDV_server104621 + "/vote.php?s="+ PDV_s104621 +"&b="+ PDV_b104621 +"&p="+ PDV_id104621 +"&a="+ PDV_a104621 +"&o="+ PDV_o104621 +"&pt="+ PDV_pt104621 +"&cookie=" + PD_ck104621 + "&rdm=" + randomnumber + "&url=" + escape(location.href);
  var h = document.getElementsByTagName("head").item(0);
  h.appendChild(s);
  }
  }
  }
  var PD_pollString104621 = PDV_html104621;
var PD_ck104621 = 0;

function PDV_rand104621 ( myArray ) {
  var i = myArray.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = myArray[i];
     var tempj = myArray[j];
     myArray[i] = tempj;
     myArray[j] = tempi;
   }
   return myArray;
}


function PDV_go104621()
{
	if(!document.getElementById('poll_style104621'))
	{
		fileref=document.createElement("style");
		fileref.setAttribute("type", "text/css");
		fileref.setAttribute("id", "poll_style104621");
		var def = '/* PD01 CSS Document "Simple Grey" *//* ----------- Background Box Div styles ----------- */#PDI_container104621 .pds-box { width: 250px; /* for fixed width enter value here, max width 700px */ color: #333; background: #ccc; font-family: Verdana, Arial, Helvetica, sans-serif; text-align: left; } #PDI_container104621 .pds-box-outer { /*background: url(http://ipoll.ru/poll/images/pdb01-bottom-right.gif) no-repeat right bottom;*/ }#PDI_container104621 .pds-box-inner { /*background: url(http://ipoll.ru/poll/images/pdb01-top-left.gif) no-repeat left top;*/ } #PDI_container104621 .pds-box-top { /*background: url(http://ipoll.ru/poll/images/pdb01-top-right.gif) no-repeat right top;*/ padding: 10px 10px 10px 10px; } /* ----------- Question Box Div styles ----------- */#PDI_container104621 .pds-question { /*background: url(http://ipoll.ru/poll/images/pdq01-bottom-left.gif) no-repeat left bottom; */ } #PDI_container104621 .pds-question-outer { /*background: url(http://ipoll.ru/poll/images/pdq01-bottom-right.gif) no-repeat right bottom;*/ padding-bottom: 5px; }#PDI_container104621 .pds-question-inner { /*background: url(http://ipoll.ru/poll/images/pdq01-top-left.gif) no-repeat left top;*/ } #PDI_container104621 .pds-question-top { /*background: url(http://ipoll.ru/poll/images/pdq01-top-right.gif) no-repeat right top;*/ padding: 5px 5px 0px 5px; font-size: 12px; color: #333; text-align: center; } /* ----------- Answer Box Div styles ----------- */#PDI_container104621 .pds-answer { font-size: 10px; /*line-height: 20px; */ color: #333; padding: 10px 10px 15px 10px; } #PDI_container104621 .pds-answer label{ /* currently left unstyled to maximise compatibilty */ }#PDI_container104621 .pds-radiobutton { /* currently left unstyled to maximise compatibilty */ } #PDI_container104621 .pds-checkbox { /* currently left unstyled to maximise compatibilty */ } #PDI_container104621 .pds-textfield { width: 100%; font-size: 10px; color: #ccc; background-color: #666; border: 1px; border-color: #666; padding: 1px 1px 1px 1px; margin: 5px 0px 0px 0px; } #PDI_container104621 .pds-answer-feedback { /*background-color: #666;*/ border: 1px solid #888; padding: 0px 0px 0px 0px; height:12px; margin: 2px 0px 5px 0px; } .pds-answer-feedback-bar { background: #666; margin: 3px; padding: 0px; height:6px; border: 0px; }#PDI_container104621 .pds-answer-feedback img { background: #666; margin: 3px; padding: 0px; height:6px; border: 0px; } /* ----------- Vote Box Div styles ----------- */#PDI_container104621 .pds-vote { font-size: 9px; color: #c3C4c7; line-height: 17px; padding: 0px 10px 10px 10px; } #PDI_container104621 .pds-votebutton-outer { /*height:21px;*/ }#PDI_container104621 .pds-vote a { font-size: 9px; color: #555; text-decoration: none; border-top: 1px; border-bottom: 1px; border-top-color: #fff; border-bottom-color: #fff; border-top-style: solid; border-bottom-style: solid; padding: 2px 0px 2px 0px; } #PDI_container104621 input.pds-votebutton { width: 55px; height: 21px; background: url(http://ipoll.ru/poll/images/pdsimple-votebutton.gif) no-repeat; outline: none; float: right; margin: 0px 0px 10px 0px;}#PDI_container104621 input.pds-votebutton:hover { /*background: url(http://ipoll.ru/poll/images/pdsimple-votebutton.gif) no-repeat 0 -60px;*/}#PDI_container104621 input.pds-votebutton-pack { float: right; font-size: 10px;}#PDI_container104621 .pds-totalvotes-outer { } #PDI_container104621 .pds-totalvotes-inner { font-size: 9px; color: #fff; background-color: #666; padding: 2px 2px 2px 4px; margin: 0px 0px 10px 0px; text-transform: uppercase; letter-spacing: 1px; }';
		if (fileref.styleSheet) // IE
		{fileref.styleSheet.cssText = def;} 
		else // the world
		{fileref.appendChild(document.createTextNode(def));}	  
    document.getElementsByTagName("head").item(0).appendChild(fileref);
	}

	if(!document.getElementById('PDI_container104621'))
	{document.write('<a name="pd_a_104621"></a><div class="PDS_Poll" id="PDI_container104621"></div>');}
	if(Get_Cookie104621('PD_poll_104621') == 'true')
	{PD_ck104621=1;}
	document.getElementById('PDI_container104621').innerHTML = PD_pollString104621;
	if(PDV_POLLRAND104621){AA104621 = PDV_rand104621(AA104621);}
	y104621 = '';
	for(x104621=0; x104621 < AA104621.length; x104621++){y104621 = y104621 + AA104621[x104621];}
	document.getElementById('pds-answer104621').innerHTML = y104621;	

}
function Set_Cookie104621( name, value, expires, path, domain, secure ) 
{
	var today = new Date();
	today.setTime( today.getTime() );
	if ( expires )
	{expires = expires * 1000 * 60 * 60 * 24;}

	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
	( ( path ) ? ";path=" + path : "" ) + 
	( ( domain ) ? ";domain=" + domain : "" ) +
	( ( secure ) ? ";secure" : "" );
}

function Get_Cookie104621( check_name ) 
{
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false;

	for ( i = 0; i < a_all_cookies.length; i++ )
	{
		a_temp_cookie = a_all_cookies[i].split( '=' );
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
		if ( cookie_name == check_name )
		{
			b_cookie_found = true;
			if ( a_temp_cookie.length >  1 )
			{
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}
			return cookie_value;
			break;
		}		
		a_temp_cookie = null;
		cookie_name = '';
	}	
	if ( !b_cookie_found )
	{return null;}
}	

PDV_go104621();

