function popup(str)
{
var son = window.open(str,'Sacla','scrollbars=yes,resizable=no,width=540,height=600,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function newsletter(str)
{
var son = window.open(str,'sacla','scrollbars=yes,resizable=no,width=540,height=495,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function video(str)
{
var son = window.open(str,'video','scrollbars=no,resizable=no,width=240,height=218,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function artedisacla(str)
{
var son = window.open(str,'artedisacla','scrollbars=no,resizable=no,width=320,height=278,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function beitipi(str)
{
var son = window.open(str,'beitipi','scrollbars=no,resizable=no,width=320,height=294,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function brand(str)
{
var son = window.open(str,'beitipi','scrollbars=no,resizable=no,width=320,height=219,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function videonew(str)
{
var son = window.open(str,'Sacla','scrollbars=no,resizable=no,width=360,height=260,status=no,location=no,toolbar=no, menubar=no');
son.focus();
}

function allarga(){
	document.getElementById('contentselect').style.width="280px";
	document.getElementById('selectname').style.width="280px";

}
function stringi(){
	document.getElementById('contentselect').style.width="145px";
	document.getElementById('selectname').style.width="145px";
}

function allarga2(){
	document.getElementById('contentselect2').style.width="280px";
	document.getElementById('selectname2').style.width="280px";
}
function stringi2(){
	document.getElementById('contentselect2').style.width="150px";
	document.getElementById('selectname2').style.width="150px";
}

function printPage()
 {
if (window.print)window.print()
else alert("Sorry! You can't print the page!");
}



function lung(f,k){
n=50;//number of max allowed words
var v = new String();
s = k.split(' ');
for(i=0;i<n;i++){v += (s[i]+' ')}
if(s.length>=n+1){f.elements['slogan'].value=v;
f.elements['lun'].value = n+1-v.length;
}
else{f.elements['lun'].value = n+1-s.length;}
if(f.elements['lun'].value==-9){f.elements['lun'].value=0}
}
