﻿var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}
//function PreviewPhoto(imageId)
//{
    //$('#basicModalContent_PollPreview'+surveyId).modal();
  //  $('#SurveyPreviewWindow iframe').attr("src",'previewImage.aspx?pid='+imageId);
    //$('#SurveyPreviewWindow').modal();
    //alert($('#SurveyPreviewWindow').modal)
//   $("a.modalCloseImg").append("<img src='/web/images/buttons/x.png' alt='CLOSE' border='0' />");
//}  
//function PreviewProfile(imageId)
//{
    //$('#basicModalContent_PollPreview'+surveyId).modal();
  //  $('#SurveyPreviewWindow iframe').attr("src",'previewImage.aspx?profileId='+imageId);
    //$('#SurveyPreviewWindow').modal();
    //alert($('#SurveyPreviewWindow').modal)
// $("a.modalCloseImg").append("<img src='/web/images/buttons/x.png' alt='CLOSE' border='0' />");
//} 
//function PreviewNews(imageId)
//{
    //$('#basicModalContent_PollPreview'+surveyId).modal();
  //  $('#SurveyPreviewWindow iframe').attr("src",'previewImage.aspx?newsId='+imageId);
    //$('#SurveyPreviewWindow').modal();
    //alert($('#SurveyPreviewWindow').modal)
// $("a.modalCloseImg").append("<img src='/web/images/buttons/x.png' alt='CLOSE' border='0' />");
//} 
//function resize(iframe)
//{
  //  $(iframe).css("height",400)
    //.css("width",600);
//}


