x = 230;

y = 20;

function setVisible(obj)

{

               obj = document.getElementById(obj);

               obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';

 

               document.getElementById('blanket').style.visibility= (document.getElementById('blanket').style.visibility == 'visible') ? 'hidden' : 'visible';

               //alert(  document.getElementById('blanket').style.visibility);

               //document.getElementById('blanket').style.visibility='hidden';

}

function placeIt(obj)

{

               obj = document.getElementById(obj);

               if (document.documentElement)

               {

                              theLeft = document.documentElement.scrollLeft;

                              theTop = document.documentElement.scrollTop;

               }

               else if (document.body)

               {

                              theLeft = document.body.scrollLeft;

                              theTop = document.body.scrollTop;

               }

               theLeft += x;

               //theLeft=x;

               theTop += y;

               //alert(theLeft + ':' + theTop );

 

               obj.style.left = theLeft + 'px' ;

               obj.style.top = theTop + 'px' ;

               setTimeout("placeIt('layer1')",500);

}

 

function blanket_size() {

               if (typeof window.innerWidth != 'undefined') {

                              viewportheight = window.innerHeight;

               } else {

                              viewportheight = document.documentElement.clientHeight;

               }

               if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {

                              blanket_height = viewportheight;

               } else {

                              if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {

                                             blanket_height = document.body.parentNode.clientHeight;

                              } else {

                                             blanket_height = document.body.parentNode.scrollHeight;

                              }

               }

               var blanket = document.getElementById('blanket');

               blanket.style.height = blanket_height + 'px';

               

}

 
function callEnquriyPage ()

{

// alert(p_code+ file_name);

 

 var framename='frame_genquiry';

 var subject;

 

 //subject = listing_page==1? 'property contact':'Property Detail Contact!';

 

blanket_size();

//document.getElementById('blanket').style.visibility='visible';

 //changed

 parent.frames[framename].location.href = 'upload-cv-for-jobs2.asp';

 

placeIt('layer1');

// alert( 'generalcontact_enquiry.php?p_id='+ p_id + "&p_code="+ p_code + "&file=" + file_name);

//alert(document.getElementById('blanket').style.visibility);

setVisible('layer1');

//alert(parent.frames[framename].location.href);

}

 

window.onscroll = setTimeout("placeIt('layer1')",500);
