function zymetiVisus(pgbox, boxpav){
	var elems = pgbox.form.elements;
	var elemnum = elems.length;

	for(i=0; i < elemnum; i++){
		if(elems[i].name == boxpav){
			elems[i].checked = pgbox.checked;
		}
	}
}

function resize(){
	if($(window).width() < 1110){/*jei mazas*/
		$('div#nav-tab').css('width', '800px');
		$('#container').css('width', '1000px');
		$('div#nav-main').css('width', '1000px');
		$('#container').css('background', 'transparent url(../images/bg_container.gif) repeat-y scroll left top');
		$('form.darbdav-form').css('width', '660px');
		$('div#mainColumn').css('width', '670px');
		$('div#nav-tab a#tab-yellow').css('width', '226px');
		$('div#leftColumn').css('width', '300px');
		$('div#login').css('width', '300px');
		$('div#leftColumn table.simple').css('width', '300px');
		$('#cv-main').css('width', '660px');
		$('form.cv-form').css('width', '630px');
		$('table.info-content').css('width', '670px');
		$('ul.page-top').css('width', '470px');
		$('form.darbdav-form div#col2').css('width', '320px');
		$('form.darbdav-form div#col2').css('margin-left', '10px');
		$('form.darbdav-form div#col1').css('width', '320px');
		$('#darbdav-main').css('width', '670px');
		$('table.shop-content').css('width', '670px');
		$('div#leftColumn table.shop').css('width', '300px');
		$('textarea.full1').css('width', '640px');
		$('form#main-form div').css('width', '670px');
		$('form#main-form div.image').css('width', 'auto');
		$('form#main-form input.field, form#main-form input.file').css('width', '220px');
		$('form#main-form textarea').css('width', '220px');
		$('.important-info4').css('width', '610px');
		$('table#ad').css('width', '670px');
		$('form#filter-form').css('width', '640px');
		$('form#filter-form fieldset.first2').css('margin-left', '15px');
		$('p.descript').css('width', '340px');
		$('form.darbdav-form .important-info2').css('width', '250px');
		$('table.cv-content').css('width', '650px');
		$('table.cv-content2').css('width', '650px');
		$('table.events').css('width', '650px');
		$('.sub-info').css('width', '620px');
		$('form.simple-form').css('width', '660px');
		$('div.bg-sand').css('width', '630px');
		$('.content h1').css('width', '622px');
		$('.content h1#reg_title').css('width', '631px');
		$('#adv-template .body .right-col h2').css('margin-left', '10px');
		$('#adv-template2 .body .right-col h2').css('margin-left', '10px');
		$('#adv-template .body .left-col').css('width', '240px');
		$('#adv-template2 .body .left-col').css('width', '240px');
		$('#adv-template .body .right-col').css('width', '390px');
		$('#adv-template2 .body .right-col').css('width', '390px');
		$('#adv-template .body').css('background', 'transparent url(../images/cv_ad2_bg1_small.gif) repeat-y scroll 0 0');
		$('#adv-template2 .body').css('background', 'transparent url(../images/cv_ad2_bg1_small.gif) repeat-y scroll 0 0');
		$('#adv-template div#head table').css('width', '620px');
		$('#adv-template2 div#head table').css('width', '620px');
		$('#adv-template div#body table').css('width', '620px');
		$('#adv-template2 div#body table').css('width', '620px');
		$('#adv-template div#body table .cell1-first').css('width', '165px');
		$('#adv-template div#body table .cell1-first').css('width', '165px');
		$('#adv-template2 div#body table .cell1').css('width', '165px');
		$('#adv-template2 div#body table .cell1-first').css('width', '178px');
		$('form.darbdav-form div#col4').css('margin-left', '30px');
		$('div.cv-design1').css('margin-left', '20px');
		$('div.cv-design2').css('margin-left', '20px');
		$('form#main-form label.text-center').css('width', '590px');
		$('#neutral1').css('width', '10%');
		$('#neutral2').css('width', '10%');
		$('#bank2').css('width', '50%');
		$('#cv-main1').css('width', '660px');
		$('form#main-form fieldset.button-field').css('width', '640px');
		$('.button_send').css('margin-left', '200px');
		$('#success-registration').css('width', '640px');
		$('#unsuccess-registration').css('width', '640px');
		$('div#footer #copyright').css('width', '1000px');
		$('.adv1_left_col').css('width', '240px');
		$('.adv1_right_col').css('width', '390px');
		$('.adv1_body').css('background', 'transparent url(../images/cv_ad2_bg1_small.gif) repeat-y scroll 0 0');
		$('.adv1_h2_2').css('margin-left', '11px');
	}else{/*jei didelis*/
		$('div#nav-tab').css('width', '910px');
		$('#container').css('width', '1110px');
		$('div#nav-main').css('width', '1110px');
		$('#container').css('background', 'transparent url(../images/bg_container2.gif) repeat-y scroll left top');
		$('form.darbdav-form').css('width', '770px');
		$('div#mainColumn').css('width', '780px');

		$('div#nav-tab a#tab-yellow').css('width', '336px');
		$('div#leftColumn').css('width', '300px');
		$('div#login').css('width', '300px');
		$('div#leftColumn table.simple').css('width', '300px');
		$('#cv-main').css('width', '760px');
		$('form.cv-form').css('width', '740px');
		$('table.info-content').css('width', '780px');
		$('ul.page-top').css('width', '580px');
		$('form.darbdav-form div#col2').css('width', '360px');
		$('form.darbdav-form div#col2').css('margin-left', '40px');
		$('form.darbdav-form div#col1').css('width', '360px');
		$('#darbdav-main').css('width', '780px');
		$('table.shop-content').css('width', '780px');
		$('div#leftColumn table.shop').css('width', '300px');
		$('textarea.full1').css('width', '750px');
		$('form#main-form div').css('width', '780px');
		$('form#main-form div.image').css('width', 'auto');
		$('form#main-form input.field, form#main-form input.file').css('width', '250px');
		$('form#main-form textarea').css('width', '250px');
		$('.important-info4').css('width', '720px');
		$('table#ad').css('width', '780px');
		$('form#filter-form ').css('width', '750px');
		$('form#filter-form fieldset.first2').css('margin-left', '40px');
		$('p.descript').css('width', '450px');
		$('form.darbdav-form .important-info2').css('width', '290px');
		$('table.cv-content').css('width', '760px');
		$('table.cv-content2').css('width', '760px');
		$('table.events').css('width', '760px');
		$('.sub-info').css('width', '700px');
		$('form.simple-form').css('width', '770px');
		$('div.bg-sand').css('width', '740px');
		$('.content h1').css('width', '732px');
		$('.content h1#reg_title').css('width', '741px');
		$('#adv-template .body .right-col h2').css('margin-left', '0px');
		$('#adv-template2 .body .right-col h2').css('margin-left', '0px');
		$('#adv-template2 .body .left-col').css('width', '290px');
		$('#adv-template .body .right-col').css('width', '450px');
		$('#adv-template2 .body .right-col').css('width', '450px');
		$('#adv-template .body').css('background', 'transparent url(../images/cv_ad2_bg1.gif) repeat-y scroll 0 0');
		$('#adv-template2 .body').css('background', 'transparent url(../images/cv_ad2_bg1.gif) repeat-y scroll 0 0');
		$('#adv-template div#head table').css('width', '730px');
		$('#adv-template2 div#head table').css('width', '730px');
		$('#adv-template div#body table').css('width', '730px');
		$('#adv-template2 div#body table').css('width', '730px');
		$('#adv-template div#body table .cell1-first').css('width', '193px');
		$('#adv-template2 div#body table .cell1-first').css('width', '193px');
		$('#adv-template div#body table .cell1').css('width', '180px');
		$('#adv-template2 div#body table .cell1').css('width', '180px');
		$('form.darbdav-form div#col4').css('margin-left', '40px');
		$('div.cv-design1').css('margin-left', '60px');
		$('div.cv-design2').css('margin-left', '60px');
		$('form#main-form label.text-center').css('width', '700px');
		$('#neutral1').css('width', '20%');
		$('#neutral2').css('width', '20%');
		$('#bank2').css('width', '40%');
		$('#cv-main1').css('width', '770px');
		$('form#main-form fieldset.button-field').css('width', '750px');
		$('.button_send').css('margin-left', '250px');
		$('#success-registration').css('width', '750px');
		$('#unsuccess-registration').css('width', '750px');
		$('div#footer #copyright').css('width', '1100px');
		$('.adv1_left_col').css('width', '290px');
		$('.adv1_right_col').css('width', '450px');
		$('.adv1_body').css('background', 'transparent url(../images/cv_ad2_bg1.gif) repeat-y scroll 0 0');
		$('.adv1_h2_2').css('margin-left', '2px');
	}
}