﻿//Configs Begin
var AfAuthor = 'admin';
var BfBulletin = '';
var CfEmail = 'info@verotelecom.com';
var EfSubTitle = 'Two Way Radio Manufacturer';
var FfTheme = 'gwb';
var GfTitle = 'Chinese Two Way Radio(Walkie Talkie) Manufacturer';
var PfSiteURL = 'http://www.verotelecom.com/blog/';
//Configs End
//Status Begin
var Writings=81;
var Reviews=17;
var Trackbacks=0;
//Status End
//LatestReviews Begin
var LatestReviews = new Array(  
'<li>Leo: <a href="'+Path+'faq/howaboutthepayment.html#r17i"  title="Reviewing...">Reviewing...</a></li>',
'<li>Gary: <a href="'+Path+'faq/how-do-i-get-information.html#r16i"  title="Reviewing...">Reviewing...</a></li>',
'<li>shoenya: <a href="'+Path+'company_news/f_2_p63.html#r15i"  title="Reviewing...">Reviewing...</a></li>',
'<li>gerald: <a href="'+Path+'company_news/f_2_p63.html#r14i"  title="Reviewing...">Reviewing...</a></li>',
'<li>mauro: <a href="'+Path+'faq/how-do-order.html#r13i"  title="Reviewing...">Reviewing...</a></li>');//LatestReviews End
//Directories Begin
var Directories = new Array(  
new Directory('industrial_news/index.html','Industrial News',36,'industrial_news'),
new Directory('company_news/index.html','Company News',15,'company_news'),
new Directory('faq/index.html','FAQ Page',14,'faq'),
new Directory('product_list/index.html','Product List',16,'product_list'));//Directories End
//Menologies Begin
var Menologies = new Array(  
new Menology('2010-09',19,'2010-09.html'),
new Menology('2010-04',2,'2010-04.html'),
new Menology('2010-03',1,'2010-03.html'),
new Menology('2009-09',1,'2009-09.html'),
new Menology('2009-07',1,'2009-07.html'),
new Menology('2009-06',2,'2009-06.html'),
new Menology('2009-02',1,'2009-02.html'),
new Menology('2008-11',3,'2008-11.html'),
new Menology('2008-04',41,'2008-04.html'),
new Menology('2008-03',10,'2008-03.html'),
new Menology('Index &amp; Tags',-1,'index.html'));//Menologies End
//Resources Begin
var Resources = new Array( );//Resources End
//Specials Begin
var Specials = new Array(  
new Special('2010-9-27','company_news/6-way-multi-unit-chager-mc-132-for-icom-ic-v82-ic-.html','6 Way Multi Unit Chager MC-132 For ICOM IC-V82 IC-U82 IC-V8 IC-T3H IC-F30GT/GS IC-F40GT/GS IC-F31GT/GS IC-F41GT/GS IC-F11/S IC-F21/S IC-F12/S IC-F22/S'),
new Special('2010-9-18','industrial_news/difference-between-uhf-and-vhf-radios.html','Difference Between UHF and VHF Radios'),
new Special('2010-9-8','product_list/6-way-multi-unit-charger-for-gp-328gp-328plus.html','6 Way Multi-Unit Charger For GP-328,GP-328PLUS'),
new Special('2010-9-7','company_news/what-is-the-difference-between-a-long-and-a-stubby.html','What is the difference between a long and a stubby antenna?'),
new Special('2010-9-6','faq/203.html','How far can I talk with my two-way radio?'),
new Special('2010-9-3','product_list/342.html','6 Way Multi-Unit Charger For VR-200 and VR-230 Series'),
new Special('2010-4-2','company_news/384.html','New Writing'),
new Special('2010-3-23','company_news/2010-hong-kong-electronics-fairspring-edition.html','VERO will attend 2010 Hong Kong Electronics Fair(Spring Edition)'),
new Special('2009-9-23','company_news/hk-electronics-fair-autumn-edition-2009.html','HK Electronics Fair (Autumn Edition) 2009'),
new Special('2009-7-4','industrial_news/marine-vhf-radio.html','Marine VHF radio'),
new Special('2009-6-23','product_list/handheld-two-way-radio-vr-719.html','Handheld Two Way Radio VR-719'),
new Special('2008-11-28','product_list/vr-u200.html','VR-U200 Coming Soon'),
new Special('2008-11-29','product_list/vr-u100.html','New Arrival VR-U100 with FM Radio Function'),
new Special('2008-4-26','product_list/handheld_two_way_radio_vr-719.html','Handheld Two Way Radio VR-719'),
new Special('2008-4-25','company_news/new_vr-828_two_way_radio_come_with_vox_fm_radio.html','New VR-828 two way radio come with VOX ,FM Radio'),
new Special('2008-4-7','industrial_news/walkie_talkie_channels.html','Walkie Talkie Channels'),
new Special('2008-4-5','industrial_news/cb_radio.html','Citizens band radio(CB Radio)'),
new Special('2008-4-4','faq/how-long-will-it-take-to-receive-my-goods_2_p32.html','How long will it take to receive my goods?'),
new Special('2008-3-22','industrial_news/f_2_p26.html','What about a Frequency License?'),
new Special('2008-3-19','faq/how-do-order.html','How Do I Place An Order?'));//Specials End
//RandomWritings Begin
var RandomWritings =   new Array(  
'<li><a href="../product_list/handheld_two_way_radio_vr-8288.html">Handheld two way radio VR-8288</a></li>'       ,
'<li><a href="../company_news/new_vr-518_two_way_radio_come_with_400-470mhz.html">New VR-518 two way radio come with 400-470MHZ</a></li>'       ,
'<li><a href="../company_news/vero_in_canton_fair.html">VERO made a successful attendance at the “Canton Fair”</a></li>'       ,
'<li><a href="../industrial_news/what_is_dual-tone_multi-frequency_for_two_way_radi.html">what is Dual-tone multi-frequency for two way radio?</a></li>'       ,
'<li><a href="../company_news/f_2_p64.html">Vero walkie-talkie is Guangzhou International Dragon Boat Competition only designated communications equipment</a></li>'       ,
'<li><a href="../company_news/new_vr-828_two_way_radio_come_with_vox_fm_radio.html">New VR-828 two way radio come with VOX ,FM Radio</a></li>'       ,
'<li><a href="../industrial_news/what-is--the-range-of-a-two-way-radio.html">What is the range of a two-way radio?</a></li>'       ,
'<li><a href="../industrial_news/what_is_pmr446.html">What is PMR446?</a></li>'       ,
'<li><a href="../company_news/verotelecom_developed_lithium_battery_walkie-talki_2_p60.html">Verotelecom developed lithium battery walkie-talkie</a></li>'       ,
'<li><a href="../industrial_news/wha_is_marine_vhf_radio.html">What is Marine VHF radio?</a></li>'       ,
'<li><a href="../faq/verotelecom_developed_lithium_battery_walkie-talki.html">Verotelecom developed lithium battery walkie-talkie</a></li>'       ,
'<li><a href="../industrial_news/what-isa-two-way-radio_2_p21.html">What is a two-way radio?</a></li>'       ,
'<li><a href="../industrial_news/do_i_really_need_to_get_a_license.html">Can\'t I just buy a radio and start talking?</a></li>'       ,
'<li><a href="../faq/how_about_the_shippingment_2_p58.html">How about the shippingment?</a></li>'       ,
'<li><a href="../industrial_news/can_i_still_do_something_in_ham_radio.html">I live in an apartment (or condo). Can I still do something in ham radio?</a></li>'       );//RandomWritings End
//HottestWritings Begin
var HottestWritings =  new Array(  
'<li><a href="../faq/do-we-accept-the-free-sample.html">Do we accept the free sample?</a></li>'       ,
'<li><a href="../faq/how_about_the_shippingment_2_p58.html">How about the shippingment?</a></li>'       ,
'<li><a href="../faq/how-do-order.html">How Do I Place An Order?</a></li>'       ,
'<li><a href="../company_news/f_2_p63.html">Vero walkie-talkie is both sides across the Straits Dragon Boat Competition only designated communications equipment</a></li>'       ,
'<li><a href="../product_list/amateur-vhf-two-way-radio-vr-718.html">Amateur VHF Two Way Radio VR-718</a></li>'       ,
'<li><a href="../faq/howaboutthepayment.html">How about the payment?</a></li>'       ,
'<li><a href="../faq/how-do-i-get-information.html">How do i get information if i paid for the goods?</a></li>'       ,
'<li><a href="../company_news/hk-electronics-fair-autumn-edition-2009.html">HK Electronics Fair (Autumn Edition) 2009</a></li>'       ,
'<li><a href="../industrial_news/what_is_pmr446.html">What is PMR446?</a></li>'       ,
'<li><a href="../industrial_news/wha_is_marine_vhf_radio.html">What is Marine VHF radio?</a></li>'       );//HottestWritings End
//LastUpdateDate Begin
var LastUpdateDate=20100927;
//LastUpdateDate End
var Months = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var YunY_Calendar = "";
var Now = new Date();
var When = new Date( Now.getFullYear(),Now.getMonth(),1);
var Special ="-";
function FindSpecial(SpecialDate){for(var i=0;i<Specials.length;i++){if(Specials[i].UpdateDate==SpecialDate){return i;}}return -1;}
function setMonthYear(){YunY_Calendar.rows[0].cells[1].innerHTML=Months[When.getMonth()]+" "+When.getFullYear();for(var i=0;i<6;i++)for(var j=0;j<7;j++){YunY_Calendar.rows[2+i].cells[j].innerHTML="";}for(var i=0;i<6;i++)for(var j=0;j<7;j++){if(  (i*7+j-When.getDay()+1)>0 && (i*7+j-When.getDay()+1)<=(32-(new Date( When.getFullYear(),(When.getMonth()),32)).getDate()) ){if(FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))>-1){YunY_Calendar.rows[2+i].cells[j].innerHTML="<a href='"+Path+Specials[FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))].LinkID+"' title='"+Specials[FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))].Abstract+"' ><span class='tdStrong'>"+(i*7+j-When.getDay()+1)+"</span></a>";}else{YunY_Calendar.rows[2+i].cells[j].innerHTML=i*7+j-When.getDay()+1;}}}if((Now.getMonth()==When.getMonth())&&(Now.getFullYear()==When.getFullYear())){YunY_Calendar.rows[2+Math.floor((Now.getDate()+When.getDay()-1)/7)].cells[Now.getDay()].innerHTML="<font color='red'>"+Now.getDate()+"</font>";}}
function PreviousMonth(){if((When.getMonth()-1)<0){When = new Date( When.getFullYear()-1,(When.getMonth()+11)%12,1);}else{When = new Date( When.getFullYear(),(When.getMonth()+11)%12,1);}setMonthYear();}
function NextMonth(){if((When.getMonth()+1)>11){When = new Date( When.getFullYear()+1,(When.getMonth()+1)%12,1);}else{When = new Date( When.getFullYear(),(When.getMonth()+1)%12,1);}setMonthYear();}
function Directory(ID,Name,Quantity,Alias){this.ID=ID;this.Name=Name;this.Quantity=Quantity;this.Alias=Alias;}
function Menology(Name,Quantity,LinkID){this.Name=Name;this.Quantity=Quantity;this.LinkID=LinkID;}
function Special(UpdateDate,LinkID,Abstract){this.UpdateDate=UpdateDate;this.LinkID=LinkID;this.Abstract=Abstract;}
function DeleteReviewLink(ReviewID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'Process/ReviewDelete.asp?ID='+ReviewID+'">Delete</a>');}}
function DeleteReviewLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'Process/ReviewDelete.asp?ID='+ID+'">Delete</a>');}}
function indexOfD(dir){for(var i=0;i<Directories.length;i++){if(('/'+Directories[i].ID).indexOf('/'+dir+'/index.')==0)return i;}return -1;}
function E(ID){return document.getElementById(ID);}
function OKReviewLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">OK?</a>');}}
function ShowReviewLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">Show</a>');}}
function HideReviewLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?a=hide&id='+ID+'">Hide</a> ');}}
function EditLink(WritingID,AllowReview){if(AllowReview==1){document.write(' <span style="cursor:pointer" onclick="if(E(\'reviews\').style.display!=\'none\') {E(\'reviews\').style.display=\'none\';document.reviewform.author.focus();} else E(\'reviews\').style.display=\'block\';">[<strong>Review</strong>]</span>');} if (getCookie("blogYunY")!=""){document.write(' <a href="'+Path+'process/writingedit.asp?id='+WritingID+'">[Edit]</a>');}}
function Quote(ID){var qstr = E('C'+ID).innerHTML.replace(/<.*?>/mg,'').replace(/\[.*\]/mg,''); if(qstr.length>10)qstr = qstr.substring(0,10) +'...'; document.reviewform.content.value+= '['+E('A'+ID).innerHTML.replace(/<.*?>/mg,'')+':'+qstr+']\r\n'; document.reviewform.content.focus();}
function WriteDirectories(){ if(1==2 && location.href.indexOf("/index.html")==-1 && location.href.indexOf("/r/")==-1 && location.href.indexOf("/m/")==-1 ){ document.write('<select style="width:150px; display:block" id="drpdirectories" onchange="location.href=\'../\'+this.value;">'); for(var i=0;i<Directories.length;i++){ document.write('<option value="'+Directories[i].ID+'">'+Directories[i].Name+' ['+Directories[i].Quantity+']</option>'); } document.write('</select>'); var drp = E('drpdirectories'); for(var i=0;i<Directories.length;i++){ if( location.href.indexOf("/"+Directories[i].Alias+"/")!=-1 && location.href.indexOf("/"+Directories[i].Alias+"/")==location.href.lastIndexOf("/"+Directories[i].Alias+"/") ){ drp.options[i].selected = true; break; } } } else { document.write('<ul class="mul" id="muldirectories">');for(var i=0;i<Directories.length;i++){ if( location.href.indexOf("/"+Directories[i].Alias+"/")!=-1 && location.href.indexOf("/"+Directories[i].Alias+"/")==location.href.lastIndexOf("/"+Directories[i].Alias+"/") ){ document.write('<li>'+Directories[i].Name+' <span class="smallfont">['+Directories[i].Quantity+']</span></li>'); }else {document.write('<li><a href="'+Path+Directories[i].ID+'">'+Directories[i].Name+'</a> <span class="smallfont">['+Directories[i].Quantity+']</span></li>');}  }document.write('</ul>'); } }
function WriteResources(){document.write('<ul class="mul" id="mulresources">');for(var i=0;i<Resources.length;i++){document.write(Resources[i]);}document.write('</ul>');}
function WriteMenologies(){ if(1==2&& location.href.indexOf("/index.html")==-1){ document.write('<select style="width:150px; display:block" id="drpmenologies" onchange="location.href=\'../m/\'+this.value;">'); for(var i=0;i<Menologies.length-1;i++){ document.write('<option value="'+Menologies[i].LinkID+'">'+Menologies[i].Name+(Menologies[i].Quantity>-1?' ['+Menologies[i].Quantity+']':'')+'</option>'); } document.write('</select><a href="'+Path+'m/'+Menologies[Menologies.length-1].LinkID+'">'+Menologies[Menologies.length-1].Name+'</a>'); var drp = E('drpmenologies'); for(var i=0;i<Menologies.length-1;i++){ if(location.href.indexOf('/m/'+Menologies[i].LinkID)!=-1||document.documentElement.innerHTML.indexOf(' href="../m/'+Menologies[i].LinkID+'"')!=-1 ){ drp.options[i].selected=true; break; } } } else{ document.write('<ul class="mul" id="mulmenologies">');for(var i=0;i<Menologies.length;i++){document.write('<li><a href="'+Path+'m/'+Menologies[i].LinkID+'">'+Menologies[i].Name+'</a>'+(Menologies[i].Quantity>-1?' <span class="smallfont">['+Menologies[i].Quantity+']</span>':'')+'</li>');}document.write('</ul>'); } }
function WriteLastestReviews(){document.write('<ul class="mul" id="mullatestreviews">');for(var i=0;i<LatestReviews.length;i++){document.write(LatestReviews[i]);}document.write('</ul>');}
function createRandom(mv,len){if(len>mv+1) len=mv+1;var re ='';var i=0;while(i<len){	var t = Math.floor(Math.random( ) * (mv+1));if(re.indexOf('['+t+']')==-1) {re+='['+t+']';i++;}}return re;}
function WriteRandomWritings(){var rstr=createRandom(RandomWritings.length-1,5);document.write('<ul class="mul" id="mulrandomwritings">');for(var i=0;i<RandomWritings.length;i++){if(rstr.indexOf('['+i+']')!=-1)document.write(RandomWritings[i]);}document.write('</ul>');}
function WriteHottestWritings(){document.write('<ul class="mul" id="mulhottestwritings">');for(var i=0;i<HottestWritings.length;i++){document.write(HottestWritings[i]);}document.write('</ul>');}
function ResizeImg(imgID){if(imgID.width>500)imgID.width=500;}
function getCookie(arg_CookieName){fromN=document.cookie.indexOf(arg_CookieName+"=")+0;if((fromN)!=-1){		fromN+=arg_CookieName.length+1; toN=document.cookie.indexOf(";",fromN)+0;	if(toN==-1){		toN=document.cookie.length}	return unescape(decodeURI(document.cookie.substring(fromN,toN)))	}	return ""	}
function Search(event,oInput){var keyCode=(event)?event.keyCode:keyStroke.which;if(keyCode==13){top.location=Path+"Process/Search.asp?Keywords="+oInput.value;return false;}return true;}function Search2(oInputId){var oInput=E(oInputId);top.location=Path+"Process/Search.asp?Keywords="+oInput.value;return false;}
function Showdadv(){if(E('dadv').style.display=='none'){E('dadv').style.display='inline';E('code').src='../process/code.asp';}}
function LoadLastUser(){if((getCookie('YunYNickName')!='')&&(getCookie('YunYHomePage')!='')){document.reviewform.author.value=getCookie('YunYNickName');document.reviewform.link.value=getCookie('YunYHomePage');}}
function CheckSearchCache(key,N){if(LastUpdateDate==0) return; if(LastUpdateDate>N) location.href='../process/search.asp?keywords='+key;}
function MenologiesChart(){var maxy = 0;	var total = 12;	for(var i=Menologies.length-2;(i>-1 && i>Menologies.length-2-total);i--){	if(Menologies[i].Quantity>maxy) maxy=Menologies[i].Quantity;	}	 	var width = parseInt((Menologies.length-1)*45); 	var height = 100; 	var chd=""; 	var xl = ""; 	var chm=""; 	 	var t = 0; 	var totalv=0; 	for(var i=Menologies.length-2;(i>-1 && i>Menologies.length-2-total);i--){ 		var v = parseFloat(Menologies[i].Quantity*100/maxy).toFixed(4); 		chd +=v+','; 		xl +=Menologies[i].Name+'|'; 		chm +='o,FF9900,0,'+(Menologies.length-2-i)+',5.0|'; 		t++; 		totalv = totalv+parseFloat(Menologies[i].Quantity*100/maxy); 	} 	totalv = totalv/t/100; 	chm = 'h,dddddd,0,'+totalv.toFixed(4)+',1|'+chm; 	  	 	if(chd.length>0) chd = chd.substring(0,chd.length-1); 	if(xl.length>0) xl = xl.substring(0,xl.length-1);	 	if(chm.length>0) chm = chm.substring(0,chm.length-1); 	 	 	var yl = '|'+maxy/2+'|'+maxy; 	var chtt = 'Writings in the past months';	 	 	var url = 'http://chart.apis.google.com/chart?chs='+width+'x'+height+'&chd=t:'+chd+'&chtt='+chtt+'&chf=bg,s,f5f5f5&chm='+chm+'&cht=lc&chxt=x,y&chxl=0:|'+xl+'|1:|'+yl; 	if(t>5)document.write('<p><img src="'+url+'" /></p>');	 }function ShowCalendar(){document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" id="YunY_Calendar"><tr><td><div onclick="javascript:PreviousMonth()" style="cursor:pointer">«</div></td><td colspan="5" align="center"></td><td ><div onclick="javascript:NextMonth()" style="cursor:pointer;">»</div></td></tr><tr class="tdStrong"><td >Su</td><td >M</td><td >Tu</td><td >W</td><td >Th</td><td >F</td><td >Sa</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>');YunY_Calendar=E("YunY_Calendar");setMonthYear();}function OKMessageLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/p_messageaction.asp?id='+ID+'">OK?</a>');}}
function ShowMessageLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/p_messageaction.asp?id='+ID+'">Show</a>');}}
function ShowReplyLink(ID){if (getCookie("blogYunY")!=""){document.write('<span style="cursor:pointer;text-decoration: underline;" onclick="if(E(\'replyform'+ID+'\').style.display!=\'none\') E(\'replyform'+ID+'\').style.display=\'none\';else E(\'replyform'+ID+'\').style.display=\'block\';">Reply</span> ');}}
function HideMessageLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/p_messageaction.asp?a=hide&id='+ID+'">Hide</a> ');}}
function DeleteMessageLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'Process/p_messageDelete.asp?ID='+ID+'">Delete</a>');}}
function CheckReviewForm(ID){if(E('dadv').style.display=='none'){Showdadv(); return false;} return true;}
 function GetPages(cur,pages,prefix,endfix,padding, ri, rstr){ if(pages>1 && cur>0 && cur<pages+1){ var right =0; var posr = 0; if((cur+padding)>pages) { right = cur+padding-pages; posr = pages; }  else{ posr = cur+padding; }  var left = 0; var posl = 0;  if((cur-padding)<1) { left =1-cur+padding; posl=1; }else{ posl = cur-padding; }  if(right >0 && left==0) { if((posl-right)<1){  posl=1; }  else{  posl =posl-right; }  }  if(left>0 && right==0){ if(posr+left>pages){  posr = pages; }  else{  posr = posr+left; } }  var out=''; for(var i=posl;i<=posr;i++){ if(cur==i) out+=(' <strong>'+i+'</strong> '); else { out+=(' <a href="'+prefix+''+(i)+''+endfix+'">'+i+'</a> '); } } if(posl>2) out = ' ... '+out; if(out.indexOf('>1<')==-1) out = ' <a href="'+prefix+'1'+endfix+'">1</a> ' +out; if(posr<pages-1) out+=' ... '; if(out.indexOf('>'+pages+'<')==-1) out+=(' <a href="'+prefix+''+pages+''+endfix+'">'+pages+'</a> '); out=out.replace('<strong>','<strong>[').replace('</strong>',']</strong>'); if(ri!=-1){out = out.replace(prefix+ri+endfix,rstr);} return (' '+out+' ');  } return ''; }

