function change_country() {
country = $(".sel_country").val();
document.location = '/'+country+'/';
}
function change_city() {
country = $(".sel_country").val();
city = $(".sel_city").val();
document.location = '/'+country+'/'+city+'/';
}
function change_country_kods() {
country = $(".sel_country_kods").val();
document.location = '/kods/'+country+'/';
}
function change_city_kods() {
country = $(".sel_country_kods").val();
city = $(".sel_city_kods").val();
document.location = '/kods/'+country+'/'+city+'/';
}
function change_color() {
city_id = $("#city_id").val();
c1 = $("#c1").val().substr(1,6);
c2 = $("#c2").val().substr(1,6);
c3 = $("#c3").val().substr(1,6);
c4 = $("#c4").val().substr(1,6);
$("#kods").val('');
window.frames['demo'].document.location.href = 'http://www.labslaiks.lv/widgets/f.php?size=1&city_id='+city_id+'&bg='+c1+'&city='+c2+'&temp='+c3+'&wind='+c4;
}
function change_page(page) {
city_id = 2337;
//mainam info
$("#7d").load("/js/ajax.php", {city_id: city_id,page: page} );
//mainam parslegsanas pogas
for(i=1;i<=6;i++) {
if(page == i) {
$("#p"+i).html('
');
} else {
$("#p"+i).html('
');
}
}
//bultinas
if(page > 1) $("#pl").html('
');
if(page < 6) $("#pr").html('
');
}
function rd(u) {var newWindow = window.open(u, "_blank");newWindow.focus();return false;}
function share(title,url){document.write('
');}
function DraugiemSay(title,url,titlePrefix){window.open('http://www.draugiem.lv/say/ext/add.php?title='+encodeURIComponent(title)+'&link='+encodeURIComponent(url)+
(titlePrefix?'&titlePrefix='+encodeURIComponent(titlePrefix):''),'','location=1,status=1,scrollbars=0,resizable=0,width=530,height=400');return false;}