﻿function G(id){
	
    return document.getElementById(id);
}
function GC(t){
   return document.createElement(t);
}

function isIE(){
      return (document.all && window.ActiveXObject && !window.opera) ? true : false;
} 
 
function cancelSign(){
    G("Msg_Div").style.display = 'none';
    G("bgn_Div").style.display = 'none';
   document.body.style.overflow = '';
}

function popCoverDiv(){
var  coverDiv=G("bgn_Div");
with(coverDiv.style) {
     position='absolute';
background='#CCCCCC';
left=0;
top=0;
var bodySize = getBodySize();
     width = bodySize[0] + 'px'
     height = bodySize[1] + 'px';
zIndex=98;
     if (isIE()) {
      filter = "Alpha(Opacity=60)";
     } else {
      opacity = 0.6;
     }
    }
    G("bgn_Div").style.display = '';
}
function getBodySize(){
   var bodySize = [];
   with(document.documentElement) {
    bodySize[0] = (scrollWidth>clientWidth)?scrollWidth:clientWidth;
    bodySize[1] = (scrollHeight>clientHeight)?scrollHeight:clientHeight;
   }
   return bodySize;
}
function popSign(){
    
 var sign_in_flow = '<div id="Results" style="width:496px;margin-left:10px;margin-top:10px;text-align:left;font-size:12px;"><div style="cursor:hand;height:16px;width:27px;background-image: url(image/gb.gif);margin-left:450px;"onclick="cancelSign();" ></div><span style="margin-right:10px;"><strong><iframe id="ifr" name="ifr"  height="180px" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes" width="496px" src="public_procity.aspx"></iframe></strong></span>';
//var sign_in_flow = document.getElementById("Results");
//alert(sign_in_flow);
var signDiv=G("Msg_Div");

with (signDiv.style) {
     position = 'absolute';
     left = G("Xindex").value ;
     top = G("Yindex").value;
     width = 520 + 'px';
height=200+'px';
     zIndex = 99;
     background = '#FFFFFF';
     border = '#66CCFF solid 1px';
    }
    G("Msg_Div").innerHTML = sign_in_flow;
    G("Msg_Div").style.display='';

    
 
  
}
function popSignFlow(az_id) { 
popCoverDiv();

   popSign(az_id);
  
   document.body.style.overflow = "hidden";}