function openWindow1(imgUrl,name)
{
	window.open("pop.php","winPlay","width=260,height=69,scrollbars=0,status=1,toolbars=0,top=300,left=300,resizable=0")

}

function openWindow2(imgUrl,name)
{
	photo = window.open("cm700.htm","manjilas2","width=350,height=400,top=130,left=200,scrollbars=no")
	photo.focus();
}

function openWindow3(imgUrl,name)
{
	photo = window.open("cm900.htm","manjilas3","width=350,height=400,top=130,left=200,scrollbars=no")
	photo.focus();
}

function openWindow4(imgUrl,name)
{
	photo = window.open("ecolog.htm","manjilas4","width=450,height=400,top=130,left=200,scrollbars=no")
	photo.focus();
}
function OpenWindow(wintype, turl, wd, ht) {

        var windowFeatures =  '';
        if(wintype == 'tablename') {
                window_width = 450;
                window_height = 300;
                window_top = (screen.availHeight-window_height)/2
                window_left = (screen.availWidth-window_width)/2
                windowFeatures += "width=" + window_width + ",height=" + window_height + ",top="
                windowFeatures += window_top
                windowFeatures += ",left="
                windowFeatures += window_left
                windowFeatures += ',status=1'
                windowFeatures += ',scrollbars=yes'
        }
        else if (wintype == 'general') {
          window_width = wd;
          window_height = ht;
          window_top = (screen.availHeight-window_height)/2
          window_left = (screen.availWidth-window_width)/2
          windowFeatures += "width=" + window_width + ",height=" + window_height + ",top="
          windowFeatures += window_top
          windowFeatures += ",left="
          windowFeatures += window_left
          windowFeatures += ',scrollbars=yes'
       }
       else {
          window_width = wd;
          window_height = ht;
          window_top = (screen.availHeight-window_height)/2
          window_left = (screen.availWidth-window_width)/2
          windowFeatures += "width=" + window_width + ",height=" + window_height + ",top="
          windowFeatures += window_top
          windowFeatures += ",left="
          windowFeatures += window_left
          windowFeatures += ',scrollbars=n'
     }
window.open(turl,wintype,windowFeatures);

}
