function AddReview(org_id)
{
	openedWindow = window.open("blocks/add_review.php?org_id=" + org_id, "addreview", "left=50,top=50,width=700,height=500,scrollbars=yes,status=no,toolbar=no,menubar=no");
	if (openedWindow.opener == null) openedWindow.opener = self;
	openedWindow.focus();
};

function AddOrg(org_type)
{
	openedWindow = window.open("blocks/add_org.php?org_type=" + org_type, "addorg", "left=50,top=50,width=700,scrollbars=yes,height=500,status=no,toolbar=no,menubar=no");
	if (openedWindow.opener == null) openedWindow.opener = self;
	openedWindow.focus();
};

function FeedBack()
{
	myWin = open("blocks/feedback.php", "feedback", "left=50,top=50,width=700,height=500,status=no,toolbar=no,menubar=no");
};

function Opinion()
{
	myWin = open("blocks/opinion.php", "opinion", "left=50,top=50,width=500,height=300,status=no,toolbar=no,menubar=no");
	myWin.opener = self;
}

function TrustMsg()
{
	myWin=open("blocks/trustmsg.php", "trustmsg", "left=50,top=50,width=500,height=330,status=no,toolbar=no,menubar=no");
};

 function AskTheExpert()
   {
    myWin=open("blocks/ask_question.php", "ask_question", "left=50,top=50,width=500,height=430,status=no,toolbar=no,menubar=no");
   };

 function SendRequest()
   {
    myWin=open("blocks/fill_form.php", "fill_form", "left=50,top=50,width=500,height=300,status=no,toolbar=no,menubar=no");
   };

	function AskDanilin()
	{
		myWin=open("blocks/ask_danilin.php", "ask_danilin", "left=50,top=50,width=500,height=300,status=no,toolbar=no,menubar=no");
	};

function iw(FileToOpen,W,H)
{W+=4;H+=4;
 tmp=window.open(FileToOpen,'','scrollbars=no,resizable=no,top=80, left=180, width='+W+',height='+H);
// tmp.document.write('');
 void(0);
}

function iw_direct(ImgToOpen,W,H)
{W+=4;H+=4;
 tmp=window.open('','','scrollbars=no,resizable=no,top=80, left=180, width='+W+',height='+H);
 tmp.document.write('<html><head><title></title></head><body leftmargin=2 topmargin=2><img src='+ImgToOpen+'></body></html>');
 void(0);
}

function iw_dir_huge(ImgToOpen,W,H)
{wW=400;wH=400;
 tmp=window.open('','','scrollbars=yes,resizable=yes,top=80, left=180, width='+wW+',height='+wH);
 tmp.document.write('<html><head><title></title></head><body leftmargin=2 topmargin=2><img src='+ImgToOpen+'></body></html>');
 void(0);
}

function iw_imgntxt(ImgToOpen,W,H,TxtLine)
{W+=4;H+=4;
 tmp=window.open('','','scrollbars=no,resizable=no,top=80, left=180, width='+W+',height='+H);
 tmp.document.write('<html><head><title></title></head><link rel="stylesheet" href="css/styles.css" type="text/css"><body leftmargin=2 topmargin=2><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='+ImgToOpen+'></td></tr><tr><td class=text><center>'+TxtLine+'</center></td></tr></table></body></html>');
 void(0);
}
