/////////////////////////////////////////////////////////
function onscroll(){
var nov = document.getElementById('nov')
var fon = document.getElementById('fon')
if(nov && fon){
nov.style.top = document.body.scrollTop
nov.style.left = document.body.scrollLeft
fon.style.top = document.body.scrollTop
fon.style.left = document.body.scrollLeft
}
}
/////////////////////////////////////////////////////////
function onresize(){
var nov = document.getElementById('nov')
var fon = document.getElementById('fon')
var width = document.body.clientWidth
var height = document.body.clientHeight
if(nov && fon){
nov.style.width = width
nov.style.height = height
nov.style.left = document.body.scrollLeft
fon.style.width = width
fon.style.height = height
fon.style.left = document.body.scrollTop
}
}
////////////////////////////////////////////////
function prosmotr(img){
var nov = document.createElement('div')
nov.setAttribute("id","nov")
nov.style.position = 'absolute'
nov.style.zIndex = '100'
nov.style.width = document.body.clientWidth
nov.style.height = document.body.clientHeight
nov.style.left = document.body.scrollLeft
nov.style.top = document.body.scrollTop
nov.innerHTML = '
 |
'
document.body.appendChild(nov)
fon()
}
/////////////////////////////////////////////////////////
function fon(){
var fon = document.createElement('div')
fon.setAttribute("id","fon")
fon.style.position = 'absolute'
fon.style.backgroundColor = '#000'
fon.style.opacity = '.6'
fon.style.filter = 'alpha(opacity=60)'
fon.style.width = document.body.clientWidth
fon.style.height = document.body.clientHeight
fon.style.left = document.body.scrollLeft
fon.style.top = document.body.scrollTop
document.body.appendChild(fon)
var selectList = document.getElementsByTagName("SELECT");
for(var i = 0; i' +
'' +
'' +
' | Send message | ' +
' | ' +
' ' +
'' +
'| ' +
' ' +
' | '+
' |
'
document.body.appendChild(nov)
document.forms['nov_form'].fName.focus()
fon()
}
function check(form_name){
var form = document.forms[form_name]
if(form.fName.value && form.fText.value && form.fContacts.value){
form.submit()
} else {
alert('Fill in all fields')
form.fName.focus()
}
}
function symbol_counter(form_name,counter_id,number){
document.getElementById(counter_id).innerHTML = '('+document.forms[form_name].fText.value.length+'/'+number+')'
if(document.forms[form_name].fText.value.length>number){document.forms[form_name].fText.value = document.forms[form_name].fText.value.substr(0,number)}
}