/*function ImgPopUp (string, width, height){
	eval('window.open(\'../includes/imgpopup.php?filen='+string+'\', \'ImgPopUpWin\', \'scrollbars=yes, status=no, width='+width+', height='+height+', resizable=yes\')');
}
*/	

function ImgPopUp(string, width, height, linkurl, mode){
	if(mode == "links")
	{
		//alert(mode);
	//alert(mid);
	//window.location="../member/viewmodels.php?id="+mid;
	//eval('window.open(\'../member/viewmodels.php?filen='+string+'\', \'ImgPopUpWin\', \'scrollbars=yes, status=no, width='+width+', height='+height+', resizable=yes\')');
	//window.location="../member/viewmodels.php?filen='+string+'\',width='+width+',height='+height+',mid='+mid+'";
	if(linkurl != "")
		eval('window.open(\''+linkurl+'\', \'ImgPopUpWin\', \'scrollbars=yes, status=no, width=500, height=500, resizable=yes\')');

}
	else
	{ 
		
		eval('window.open(\'../includes/imgpopup.php?filen='+string+'\', \'ImgPopUpWin\', \'scrollbars=yes, status=no, width='+width+', height='+height+', resizable=yes\')');
	}
}