#contact_window {
font-size:10px;
background-color:black;
color:#A8A8A8;
overflow:hidden;padding:1px;
position:absolute;
font-family:Arial;
font-size-adjust:none;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:normal;
text-align:center;
width: 250px;
height: 210px;
left: 50%;
margin-left: -105px;
z-index: 9999;
display:none;
}
.jw_inner {
height:100%;
overflow:hidden;
width:100%;
}
.jw_header {
background-color:#6698FF;
color:white;
font-weight:bold;
font-size:10px;
height:10px;
margin-bottom:1px;
padding:3px;
}
.jw_body {
background-color:#DDDDDD;
height:100%;
margin-top:1px;
padding:5px;
}
#cont_sent_report {
display: none;
}
#sent_message {
position: absolute; top: 86px; left: 104px; color: green; font-size: 20px;
}
#cont_form {
background-color:#DDDDDD;height:100%;margin-top:1px;padding:5px;
}
if (typeof(jQuery) != 'function') {
document.write('');
}
var cont_window = ' '+
''+
''+
'Contact us'+
''+
'Sent!'+
''+
''+
''+
'Name:
'+
'
'+
'E-mail:
'+
'
'+
'Message:
'+
'
'+
''+
'
'+
''+
''+
''+
'';
function getDocHeight() {
var D = document;
return Math.max(
Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
Math.max(D.body.clientHeight, D.documentElement.clientHeight)
);
}
function close_cont()
{
$('#contact_window')[0].parentNode.removeChild($('#contact_window')[0]);
}
function show_cont() {
var height=getDocHeight() - 300;
$('body').append(cont_window);
$('#contact_window').css('top',height.toString()+'px');
//$('#cont_sent_report').hide();
//$('#cont_form').show();
//$('#cont_send_error').html('');
$('#contact_window').show();
}
function cont_send() {
var fields=$('#cont_form').find('.cont_input').get();
var error=false;
for (var key in fields)
{
if(!$(fields[key]).attr('value'))
{
$('#cont_send_error').text('All fields should be filled');
error=true;
break;
}
}
if(!error)
{
$.getJSON(location.href
+'?cont_name='+$('#cont_name').val()
+'&cont_email='+$('#cont_email').val()
+'&cont_message='+$('#cont_message').val()
+'&cont_location='+(window.location.href).replace(/#.*/, '')
+'&cont_uid=0000'
+'&cont_profile_name=+',
function (data)
{
}
);
$('#cont_form').hide();
$('#cont_sent_report').show();
}
}
Contact Us ' Privacy Policy ' Help
23 views
Usually answered in minutes!
×