function openImg(tmp_str_path)
{
    /* open the pop up for keyword selection */
    doc = "../show_img.php?get_str_path="+tmp_str_path;

    window.open(doc,"img","toolbar=0, location=0,directories=0,resizable=no,status=0,menubar=0,scrollbars=no,width=275,height=275,screenX=0,screenY=0");
}

function openPhoto(tmp_str_path)
{
    /* open the pop up for keyword selection */
    doc = "show_img.php?get_str_path="+tmp_str_path;
    window.open(doc,"img","toolbar=0, location=0,directories=0,resizable=no,status=0,menubar=0,scrollbars=no,width=275,height=275,screenX=0,screenY=0");
}

function openImg1(tmp_str_path)
{
    /* open the pop up for keyword selection */
    doc = "show_img.php?get_str_path="+tmp_str_path;

    window.open(doc,"img","toolbar=0, location=0,directories=0,resizable=no,status=0,menubar=0,scrollbars=no,width=275,height=275,screenX=0,screenY=0");
}

function val_frmSrch(thisDoc)
{
    /* call common function for validations */
    tmp_ret = validate_form(thisDoc);

    /* if validation is done successfully*/
    if(tmp_ret)
    {
    	tmp_dt_to   = thisDoc.frmFrom.value;
    	tmp_dt_from = thisDoc.frmTo.value;

    	if( tmp_dt_to != "" && tmp_dt_from != "" )
    	{
	    	tmp_dt_to   = cnvrtDt(tmp_dt_to);
	    	tmp_dt_from = cnvrtDt(tmp_dt_from);

		if (Date.parse(tmp_dt_to) >= Date.parse(tmp_dt_from))
		{
		     alert(tmp_str_to+" "+tmp_str_dtCmpErr+" "+tmp_str_from);
		     tmp_ret = false;
		}
		else
		{
		      tmp_ret = true;
		}
        }
        //alert("ok");
    }

    return tmp_ret;
}