var IE=document.all?true:false
function writediv(divx,html){
document.getElementById(divx).innerHTML=html;
}
function writeit_mailing(){
if(document.getElementById('name_mailing').value){}else{alert("Please fill in all fields");return false;}
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var address = document.forms['mailing_form1'].elements['mail_mailing'].value;
if(reg.test(address) == false) {
alert('Invalid Email Address');
return false;
}
document.getElementById('mailing_form1').submit();
document.getElementById('Thankyou-form').innerHTML= 'Thank you'; return true;
}
var mailing_urorbit_270 = new Object();
function dwac_urorbit_mailing_270(t) { document.write(t); }
mailing_urorbit_270.putObjects = function () {
dwac_urorbit_mailing_270('');
dwac_urorbit_mailing_270('');
dwac_urorbit_mailing_270('');
};
mailing_urorbit_270.putObjects();
function iecompattest_x(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function open_mailing(){
var myWidth;
var myHeight;
if(IE){
myWidth = document.body.clientWidth;
myHeight =(document.body.clientHeight - document.getElementById("form-loader-mailing").offsetHeight)/2;
document.getElementById("form-loader-mailing").style.top = myHeight + document.body.scrollTop + "px";
} else {
myWidth = window.innerWidth;
myHeight = window.innerHeight;
document.getElementById('form-loader-mailing').style.top = ((myHeight/2) - 100)+"px";
}
//Drag.init(document.getElementById("form-loader-mailing"));
document.getElementById('form-loader-mailing').style.display = 'block';
document.getElementById('form-loader-mailing').style.visibility = 'visible';
document.getElementById('form-loader-mailing').style.left = ((myWidth/2) - 150)+"px";
}
function close_mailing(){
document.getElementById('form-loader-mailing').style.display = 'none';
document.getElementById('form-loader-mailing').style.visibility = 'hidden';
}