var min=8;
var max=18;
function increaseFontSize() {
var p = document.getElementsByTagName('p');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=max) {
s += 1;
}
p[i].style.fontSize = s+"px"
}
}
function decreaseFontSize() {
var p = document.getElementsByTagName('p');
for(i=0;i<p.length;i++) {
if(p[i].style.fontSize) {
var s = parseInt(p[i].style.fontSize.replace("px",""));
} else {
var s = 12;
}
if(s!=min) {
s -= 1;
}
p[i].style.fontSize = s+"px"
}   
}
function Yahoo(adresa)
{
window.location=encodeURI('ymsgr:im?msg='+'http://constructii.camex.ro'+escape(adresa)+' ');
}
function schimba_clasa()
{
var val=document.getElementById('txt_articol').style.className;
alert(val);
if (val=="style3")
{
document.getElementById('txt_articol').style.className="style3_mare";
}
else
{
document.getElementById('txt_articol').style.className="style3";
}	
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function openSubWin(url, nm, x, y, w, h, atts) {
nm = nm || "subwindow";
atts = atts || "menubar,resizable,scrollbars";
w = w || 600; h = h || 450;
x = (typeof x=="number")? x: window.opera? 100: Math.round( (screen.availWidth - w)/2 );
y = (typeof y=="number")? y: window.opera? 20: Math.round( (screen.availHeight - h)/2 );
atts += ',width='+w+',height='+h+',left='+x+',top='+y;
var win = window.open(url, nm, atts); 
if (win) {
if (!win.closed) { win.resizeTo(w,h); win.moveTo(x,y); win.focus(); return false; }
} 
return true;
}
function activ_but()
{
var val=document.getElementById("termeni").checked;
if (val==true)
{
document.getElementById("but").disabled=false ;
}
if (val==false)
{
document.getElementById("but").disabled=true ;
}
}